I cant import sensor_msgs.point_cloud2
I am trying to read the data from a pointcloud2 on ros2 foxy. I am successfully subscribing to a topic containing pointcloud2 data, but I cant import sensor_msgs.point_cloud2 to use the method read_points. I just need to read the data to filter out the points that are not white. I only want the point cloud to contain white points.
when I try to import sensor_msgs.point_cloud2 it give me this error "Import "sensor_msgs_py.point_cloud2" could not be resolved Pylance (reportMissingImports)"