Skip to content

Commit

Permalink
fix vision quaternion transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
EliaTarasov authored and TSC21 committed May 18, 2018
1 parent cd91ef4 commit 651ca35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gazebo_mavlink_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ void GazeboMavlinkInterface::VisionCallback(OdomPtr& odom_message) {
// transform orientation from body FLU to body FRD frame:
// q_nb is the quaternion that represents a rotation from NED earth/local
// frame to XYZ body FRD frame
ignition::math::Quaterniond q_nb = q_ng * q_gr * q_ng.Inverse();
ignition::math::Quaterniond q_nb = q_ng * q_gb;

// transform linear velocity from local ENU to body FRD frame
ignition::math::Vector3d linear_velocity = q_ng.RotateVector(
Expand Down

0 comments on commit 651ca35

Please sign in to comment.