Open TZ2016 opened 9 years ago
Given q as the result returned from link->GetWorldPose().rot, to rotate a vector in world frame to body frame, we should use q.RotateVectorReverse(.) instead of RotateVector(.). In gazebo_ros_imu.cpp, angular velocity is calculated incorrectly.
q
link->GetWorldPose().rot
q.RotateVectorReverse(.)
RotateVector(.)
gazebo_ros_imu.cpp
@TZ2016 can you open a pull-request?
Given
q
as the result returned fromlink->GetWorldPose().rot
, to rotate a vector in world frame to body frame, we should useq.RotateVectorReverse(.)
instead ofRotateVector(.)
. Ingazebo_ros_imu.cpp
, angular velocity is calculated incorrectly.