I have a sensor_msg::PointCloud2 with the following fields/channels: x, y, z, intensity, ring, time. However, I need a copy of this cloud containing only the x, y, z data.
Erasing the fields from the sensor_msgs::PointField does not suffice, as far as I understood these are only the "labels" for the data and erasing them won't change the size of the point cloud. Thus, I need to erase the data points themselves.
What would be the best way to achieve this? Is there even a function like pcl::removeField() that I failed to see?
Originally posted by labude on ROS Answers with karma: 98 on 2022-08-18
Post score: 1