ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Quaternion to Radians

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

End-Effector gravatar image


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


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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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

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


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

Seen: 8,419 times

Last updated: Mar 23 '15