Ask Your Question
0

odom z pose.orientation to degree

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

Beni gravatar image

Hello!

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
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 635 times

Last updated: Mar 04 '15