Ask Your Question
0

Possible error in 'Quaternions' tutorial

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

Ranjit Kathiriya gravatar image

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

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

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: 2021-05-21 07:55:02 -0600

Seen: 73 times

Last updated: May 21