| 72 | } |
| 73 | |
| 74 | Pointcloud::Ptr PointcloudProcessor::makeCloudFromIndices(const std::vector<int>& indices, Pointcloud::ConstPtr inputCloud) { |
| 75 | Pointcloud::Ptr cloud(new Pointcloud()); |
| 76 | |
| 77 | cloud->points.reserve(indices.size()); |
| 78 | for (auto index : indices) { |
| 79 | cloud->points.push_back(inputCloud->points[index]); |
| 80 | } |
| 81 | |
| 82 | cloud->is_dense = true; |
| 83 | |
| 84 | return cloud; |
| 85 | } |
| 86 | |
| 87 | Pointcloud::Ptr PointcloudProcessor::downsampleInputCloud(Pointcloud::ConstPtr inputCloud) const { |
| 88 | pcl::VoxelGrid<pcl::PointXYZ> voxelGrid; |
nothing calls this directly
no outgoing calls
no test coverage detected