Accessing Intensity of Point with known Coordinates but unknown Index in Pointcloud
Hello, I'm trying to get the intensity of a point I know the coordinates of but nothing else. The laser scanner publishes the Pointcloud as sensor_msgs::PointCloud2, I already have it as a pcl Pointcloud with XYZI points. Is there a way to get the index of a point with known coordinates? A function of some sort that could help me? I know I can just iterate through all Points, but I wanted to know if there is an "easier" way. Thank u for any help!