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

[ROS2] ModuleNotFoundError: No module named 'tf2_ros'

asked 2018-12-03 19:57:53 -0600

beck gravatar image

updated 2018-12-12 12:24:02 -0600

Using ROS2 Bouncy, I cannot import tf2_ros in my python scripts. I can import tf2_msgs, and I can use TF2 just fine in C++ executables, for example using #include <tf2_ros/transform_listener.h>. What do I need to do to access the same functionality in python? How do I fix this?

Edit: I have confirmed the same issue exists on another computer with a clean install of Bouncy.

Edit 2: It seems that tf2_ros and some related modules are not being built, according to this pull request.

Edit 3: I have opened an issue here.

edit retag flag offensive close merge delete


@beck. Do you know if tf2_ros (python) works in "Crystal Clemmys"?

mgangl gravatar image mgangl  ( 2019-01-30 08:15:45 -0600 )edit

It does not. I will leave this question as unanswered until it is fixed.

beck gravatar image beck  ( 2019-01-30 09:32:54 -0600 )edit

Looks like it is really close....

rukie gravatar image rukie  ( 2019-04-29 16:09:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-13 04:30:01 -0600

mgangl gravatar image

updated 2019-12-13 04:30:14 -0600

The Functionality is finally included in Eloquent, but it is not backward compatible to Dashing.

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



Asked: 2018-12-03 19:57:53 -0600

Seen: 2,487 times

Last updated: Dec 13 '19