ModuleNotFoundError: No module named 'sensor_msgs.point_cloud2'
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.
Asked by wls on 2023-06-13 07:04:05 UTC
Answers
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).
Asked by gvdhoorn on 2023-06-14 02:55:42 UTC
Comments