[ROS2] ModuleNotFoundError: No module named 'tf2_ros'

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

beck gravatar image

updated 2018-12-12 12:24:02 -0500

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

Comments

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

mgangl gravatar imagemgangl ( 2019-01-30 08:15:45 -0500 )edit

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

beck gravatar imagebeck ( 2019-01-30 09:32:54 -0500 )edit

Looks like it is really close.... https://github.com/ros2/geometry2/pul...

rukie gravatar imagerukie ( 2019-04-29 16:09:27 -0500 )edit