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

[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 image mgangl  ( 2019-01-30 08:15:45 -0500 )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 -0500 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

mgangl gravatar image

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

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

https://github.com/ros2/geometry2/pul...

https://github.com/ros2/geometry2/blo...

edit flag offensive delete link more

Question Tools

3 followers

Stats

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

Seen: 3,082 times

Last updated: Dec 13 '19