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

Quaternion to Radians

asked 2015-03-23 13:14:39 -0600

End-Effector gravatar image

Hello,

I'm writing a node to control my robot, but the odom orientation is in quaternions and the algorithm I have uses angles(radians). How do I convert this? There probably is some function that does this?

Anyone knows?

Thx so much.

edit retag flag offensive close merge delete

Comments

Have you tried Google? Something like "ros quaternion to euler"? We do expect a little effort of your own here ..

ipso gravatar image ipso  ( 2015-03-23 13:18:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-23 13:44:27 -0600

Thomas D gravatar image

See this answer. It has examples of nodes in roscpp and rospy that do the conversion. If you just want to run the conversion in your code you can strip out the relevant function calls.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-23 13:14:39 -0600

Seen: 8,642 times

Last updated: Mar 23 '15