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

Possible error in 'Quaternions' tutorial

asked 2021-05-21 07:55:02 -0500

sdoering gravatar image

Hi, I tried transforming roll, pitch, yaw angles to a quaternion in python following this tutorial (http://wiki.ros.org/tf2/Tutorials/Qua...). In subtopic 3 "Think in RPY then convert to quaternion" the import statement is from tf_conversions.transformations import quaternion_from_euler. When trying to run my node python said that it can't find the module tf_conversions.transformations. I tried many things and finally looked into the source code of the package. Turns out that the import has to be from tf.transformations import quaternion_from_euler, because the quaternion_from_eulerfunction is located in this file: https://github.com/ros/geometry/blob/....

I am not sure how to correct the tutorial page but maybe this help somebody to change it or at least get the import right. I was struggling with this for 2 straight hours thinking the tutorial was right...

edit retag flag offensive close merge delete

Comments

1

Please correct it! I think you just need to click the Login button then make an account.

AndyZe gravatar image AndyZe  ( 2021-05-21 11:23:06 -0500 )edit

I requested access to edit the ROS wiki and will correct to article once I got it.

sdoering gravatar image sdoering  ( 2021-05-22 08:26:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-21 10:27:51 -0500

Ranjit Kathiriya gravatar image

updated 2021-05-21 10:31:35 -0500

I was struggling with this for 2 straight hours thinking the tutorial was right

I know you are completely true.

From next time follow these links for documentation for the enhancement document. http://docs.ros.org/en/melodic/api/tf...

http://docs.ros.org/en/noetic/api/

Over here you can get a list of all packages that are launched with particular distribution and their functions.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-05-21 07:55:02 -0500

Seen: 375 times

Last updated: May 21 '21