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

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
0

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.

edit:

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

from here

edit flag offensive delete link more

Comments

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

Question Tools

Stats

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

Seen: 719 times

Last updated: May 20 '13