geometry2 icon indicating copy to clipboard operation
geometry2 copied to clipboard

ModuleNotFoundError: No module named 'tf2_sensor_msgs'

Open YoushaaMurhij opened this issue 4 years ago • 4 comments

Is there any plan to include tf2_sensor_msgs?

YoushaaMurhij avatar Oct 22 '21 17:10 YoushaaMurhij

Eventually, yes. But it is blocked by https://github.com/ros2/orocos_kinematics_dynamics/pull/19

clalancette avatar Oct 22 '21 17:10 clalancette

Same with tf2_geometry_msgs.

Flova avatar Mar 04 '22 14:03 Flova

Sorry for the basic question, but I find it quite challenging to understand what is ported and what is not from ROS1 to ROS2. Since I already see the tf2_geometry_msgs in this repo, I thought it was already available. Also sudo apt-get install ros-foxy-tf2-geometry-msgs says that the package is already the newest version. What is the easy way of understanding if a package in a repo is already ported or not? Is it the missing setup.py file?

ozangungor12 avatar Mar 18 '22 16:03 ozangungor12

The python part of the tf2_geometry_msgs was excluded by deleting its part from the CMakeLists.txt file, which disables the build of this part of the package. It is not very obvious that this part of the code is not being build. I agree with you. The code is already ported by deactivated due to an upstream dependency issue. This should be resolved by dropping the dependency as proposed in this PR #509.

Flova avatar Mar 18 '22 19:03 Flova

just use the command: sudo apt-get install ros-foxy-tf2-sensor-msgs It worked fine for me

HenryPCardoso avatar Oct 18 '23 20:10 HenryPCardoso

Imo. this issue can be closed as #509 is merged for a while now.

Flova avatar Oct 19 '23 07:10 Flova

just use the command: sudo apt-get install ros-foxy-tf2-sensor-msgs It worked fine for me

It could not be build due to a missing dependency prior to #509 iirc.. It was therefore no binary was released.

Check your package.xml dependency definitions and run rosdep again if you need to install it explicitly like you did.

Flova avatar Oct 19 '23 07:10 Flova

Yes, this was long ago enabled, and is currently available in all of our supported distributions. I'm going to close this one out.

clalancette avatar Oct 23 '23 16:10 clalancette