Ask Your Question

RosAria_pose orientation

asked 2013-05-18 03:28:51 -0500

acp gravatar image

updated 2014-01-28 17:16:33 -0500

ngrennan gravatar image

I am using /RosAria/pose to get position (x,y) and orientation (w).

Does anyone knows how to convert the w to grades?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-18 05:05:11 -0500

davinci gravatar image

updated 2013-05-20 04:43:43 -0500

You mean degrees probably

You need a quaternion to degrees conversion tool. Or use for instance the bullet class.


  tf::Pose pose;
  tf::poseMsgToTF(odom->pose.pose, pose);
  double yaw_angle = tf::getYaw(pose.getRotation());

from here

edit flag offensive delete link more


Aha :), sorry for the mistake, yea, I mean degrees, do you have a piece of code I can use? :)

acp gravatar image acp  ( 2013-05-20 04:31:32 -0500 )edit

Thank you for the piece of code :)

acp gravatar image acp  ( 2013-05-22 01:41:53 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2013-05-18 03:28:51 -0500

Seen: 558 times

Last updated: May 20 '13