Skip to content
Snippets Groups Projects
Commit 484516be authored by Idril-Tadzio Geer Cousté's avatar Idril-Tadzio Geer Cousté
Browse files

added TODOs to try and fix the problem

parent b5ac3144
No related branches found
No related tags found
4 merge requests!39release after RAL,!38After 2nd RAL submission,!33Imu2d static initialization,!31Imu2d static initialization
...@@ -81,6 +81,7 @@ TEST_F(ProcessorImuStaticInitTest, static) ...@@ -81,6 +81,7 @@ TEST_F(ProcessorImuStaticInitTest, static)
data_cov *= 1e-3; data_cov *= 1e-3;
data << 1, 2, 3, 4, 5, 6; data << 1, 2, 3, 4, 5, 6;
Vector6d bias_groundtruth; Vector6d bias_groundtruth;
//TODO: Fix this, it works because initial position and extrinsics are 0, but gravity has to be preceded by the quaternion that takes it to the IMU reference
bias_groundtruth.head(3) = data.head(3) -wolf::gravity(); bias_groundtruth.head(3) = data.head(3) -wolf::gravity();
bias_groundtruth.tail(3) = data.tail(3); bias_groundtruth.tail(3) = data.tail(3);
...@@ -123,6 +124,8 @@ TEST_F(ProcessorImuStaticInitTest, static) ...@@ -123,6 +124,8 @@ TEST_F(ProcessorImuStaticInitTest, static)
n_frames++; n_frames++;
last_frame_ = processor_motion_->getOrigin()->getFrame(); last_frame_ = processor_motion_->getOrigin()->getFrame();
// TODO: We have to impose that the position is the same as for the first frame and fix it, and do the same for the orientation
// impose zero velocity // impose zero velocity
last_frame_->getV()->setZero(); last_frame_->getV()->setZero();
last_frame_->getV()->fix(); last_frame_->getV()->fix();
......
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