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

ModuleNotFoundError: No module named 'sensor_msgs.point_cloud2'

asked 2023-06-13 07:04:05 -0500

wls gravatar image

updated 2023-06-14 02:57:17 -0500

gvdhoorn gravatar image

Ubuntu: 22.04 ROS2: Humble

ros-humble-common-interfaces is installed & ros-humble-sensor-msgs is also installed

But when running the ros2 program, sensor_msgs.point_cloud2 package could not be found.

How to solve it? Thanks a lot in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-14 02:55:42 -0500

gvdhoorn gravatar image

updated 2023-06-14 04:43:31 -0500

I believe that has been refactored into a separate package.

See whether sensor_msgs_py contains the functionality you're looking for.

The tests have a sufficient example to show how to update your import statements (ie: from sensor_msgs_py import point_cloud2).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2023-06-13 07:04:05 -0500

Seen: 641 times

Last updated: Jun 14 '23