MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / makeCloudFromIndices

Method makeCloudFromIndices

grid_map_pcl/src/PointcloudProcessor.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74Pointcloud::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
87Pointcloud::Ptr PointcloudProcessor::downsampleInputCloud(Pointcloud::ConstPtr inputCloud) const {
88 pcl::VoxelGrid<pcl::PointXYZ> voxelGrid;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected