Skip to content
Snippets Groups Projects
Commit 51254fe2 authored by Dinesh Atchuthan's avatar Dinesh Atchuthan
Browse files

correction

parent 5a73bd20
No related branches found
No related tags found
No related merge requests found
...@@ -271,6 +271,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _ ...@@ -271,6 +271,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _
jacobian_delta_preint0 = jacobian_delta_preint; jacobian_delta_preint0 = jacobian_delta_preint;
jacobian_delta0 = jacobian_delta; jacobian_delta0 = jacobian_delta;
std::cout << "size test : delta_\n" << delta_ << std::endl;
//We compute all the jacobians wrt deltas and noisy deltas //We compute all the jacobians wrt deltas and noisy deltas
for(int i=0; i<3; i++) //for 3 first and 3 last components we just add to add noise as vector component since it is in the R^3 space for(int i=0; i<3; i++) //for 3 first and 3 last components we just add to add noise as vector component since it is in the R^3 space
{ {
...@@ -281,7 +282,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _ ...@@ -281,7 +282,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _
delta_noisy_vect(i) = delta_; delta_noisy_vect(i) = delta_;
delta_ = delta0; delta_ = delta0;
delta_(i+6) = delta_(i+6) + _delta_noise(i+6); //noise has been added delta_(i+7) = delta_(i+7) + _delta_noise(i+6); //noise has been added
delta_noisy_vect(i+6) = delta_; delta_noisy_vect(i+6) = delta_;
} }
...@@ -310,7 +311,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _ ...@@ -310,7 +311,7 @@ inline IMU_jac_deltas ProcessorIMU_UnitTester::finite_diff_noise(const Scalar& _
Delta_noisy_vect(i) = Delta_; Delta_noisy_vect(i) = Delta_;
Delta_ = _Delta0; Delta_ = _Delta0;
Delta_(i+6) = Delta_(i+6) + _Delta_noise(i+6); //noise has been added Delta_(i+7) = Delta_(i+7) + _Delta_noise(i+6); //noise has been added
Delta_noisy_vect(i+6) = Delta_; Delta_noisy_vect(i+6) = Delta_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment