0
$\begingroup$

Rosanswers logo

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


Originally posted by CroCo on ROS Answers with karma: 155 on 2022-09-08

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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/rotationconverter/.


Originally posted by Ronoman with karma: 48 on 2022-09-08

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.