Ask Your Question

Revision history [back]

The issue comes from your use of sensor_msgs::PointCloud2 inside the voxelgrid. It appears to only take a point. Try just a pcl::PointXYZ and run it.