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

odom z pose.orientation to degree

asked 2015-03-04 05:09:51 -0500

Beni gravatar image


I have the odom pose.orientation data:

orientation: x: 0.0 y: 0.0 z: -0.00128386864513 w: 0.99999917584

And i want the YAW (Z) data in degree format. How can i transform it to degree?

Thanks for your help! Bence

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-04 06:12:01 -0500

dornhege gravatar image

This is a quaternion. The z component of a quaternion is NOT the yaw. You need to convert this to euler angles or similar. tf::getYaw can do that for you. The angles package has angles::to_degrees to convert the resulting radians to degrees.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-03-04 05:09:51 -0500

Seen: 997 times

Last updated: Mar 04 '15