ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

on uwsim, orientation from topic pose and topic imu is different. Why?

asked 2016-02-29 18:21:31 -0500

ZYS gravatar image

on uwsim, orientation from topic pose and topic imu is different. I set the initial yaw of auv as 0 by modifying yaml file. Quaternion from topic pose is x=0 y=0 z=0 w=1. Quaternion from topic imu is x=0 y=0 z=1 w=0. They are different! why??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-01 05:28:13 -0500

Javier Perez gravatar image

Hi,

The pose topic (I guess you are talking about /g500/pose) is used to send information between dynamics and simulator. So the dynamics is sending the pose to the visualizer. This pose is referenced from robot initial position (stated in the URDF, or 3D file). Meanwhile IMU topic is a simulated sensor that provides rotation with respect to the simulated world (plus some noise), so the quaternion you obtain from here has an additional rotation which is dependant on the world to initial robot position (offsetr inside simParams in config .xml files).

Short answer is they are different because they mean different things.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-29 18:21:31 -0500

Seen: 171 times

Last updated: Mar 01 '16