Skip to content

Commit

Permalink
[aerial_robot_estimation][imu] bug fix for singularity pose: yaw angl…
Browse files Browse the repository at this point in the history
…e from groundtruth
  • Loading branch information
sugikazu75 committed Jul 18, 2024
1 parent 07f9bc7 commit 778b509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerial_robot_estimation/src/sensor/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace sensor_plugin
// 2. experiment estimate mode
if(estimator_->getStateStatus(State::CoG::Rot, aerial_robot_estimation::GROUND_TRUTH))
{
tf::Matrix3x3 gt_cog_rot = estimator_->getOrientation(Frame::COG, aerial_robot_estimation::GROUND_TRUTH);
tf::Matrix3x3 gt_cog_rot = estimator_->getOrientation(Frame::BASELINK, aerial_robot_estimation::GROUND_TRUTH) * cog2baselink_tf.getBasis().inverse();
double r,p,y;
gt_cog_rot.getRPY(r, p, y);
cog_euler[2] = y;
Expand Down

0 comments on commit 778b509

Please sign in to comment.