ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Quaternion to Radians

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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

Stats

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

Seen: 8,419 times

Last updated: Mar 23 '15