使用 pcl::VoxelGrid报错In template: type ‘detail::CopyPointHelper<PointXYZ, PointXYZ>‘ does not provide
// Voxel Grid Downsampling
pcl::VoxelGrid<pcl::PointXYZ> sor;
sor.setInputCloud(cloud_filtered);
//三个参数分别代表x、y、z方向上的体素尺寸,都被设置为0.025米。这意味着在每个维度上,每0.025米的距离内,所有点都将被合并到一个体素中,从而选择一个代表点或者进行某种聚合操作(如平均值),以此来减少点云的密度
sor.setLeafSize(0.025f, 0.025f, 0.025f); // Set voxel size to 0.025 meters
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_downsampled(new pcl::PointCloud<pcl::PointXYZ>);
// sor.filter(*cloud_downsampled);
sor.filter(*cloud_downsampled);
报错:
In template: type 'detail::CopyPoi