point_cloud2.read_points and then?
I have a topic publishing a point cloud of type sensors_msgs.PointCloud2
. I can subscribe to it and read it using sensors_msgs.point_cloud2.read_points
function but then I get and object of type "generator". How do I access the coordinates of the points in this object? I want to write a service that checks the maximum allowed height in some specific target areas (the point cloud represents the ceiling). I am using python.