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

/gazebo/model_states yields incorrect orientation for cube

asked 2022-09-08 11:33:22 -0500

CroCo gravatar image

I'm trying to access the pose of cube in gazebo using /gazebo/model_states. There is a large error between the reported result by /gazebo/model_states and Gazebo GUI. Take a look at the following picture. The GUI shows 0.758 and /gazebo/model_states gives 0.369. I need to use this data as ground truth but from what I'm noticing, I need to make sure there is no discrepancy. Any suggestions?

Melodic, Gazebo 9, Ubuntu 18.04.

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-09-08 12:03:27 -0500

Ronoman gravatar image

These look correct to me. Gazebo is reporting axis-angle in radians, while /gazebo/model_states is reporting quaternions. You can do a manual transform here to see that they are the same: https://www.andre-gaschler.com/rotati....

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-09-08 11:33:22 -0500

Seen: 41 times

Last updated: Sep 08 '22