22 namespace grid_map_pcl_test {
23 class GridMapPclLoaderTest_CalculateElevation_Test;
36 friend class grid_map_pcl_test::GridMapPclLoaderTest_CalculateElevation_Test;
49 void loadCloudFromPcdFile(
const std::string& filename);
55 void setInputCloud(Pointcloud::ConstPtr inputCloud);
62 void preProcessInputCloud();
69 void initializeGridMapGeometryFromInputCloud();
75 void addLayerFromInputCloud(
const std::string& layer);
87 void savePointCloudAsPcdFile(
const std::string& filename)
const;
93 void loadParameters(
const std::string& filename);
103 return clusterHeightsWithingGridMapCell_;
114 void setWorkingCloud(Pointcloud::ConstPtr workingCloud);
123 void setRawInputCloud(Pointcloud::ConstPtr rawInputCloud);
132 Pointcloud::Ptr getPointcloudInsideGridMapCellBorder(
const grid_map::Index& index)
const;
143 void processGridMapCell(
const unsigned int linearGridMapIndex,
grid_map::Matrix* gridMapData);
153 void calculateElevationFromPointsInsideGridMapCell(Pointcloud::ConstPtr cloud, std::vector<float>& heights)
const;
160 void preprocessGridMapCells();
166 void allocateSpaceForCloudsInsideCells();
177 void dispatchWorkingCloudToGridMapCells();
Pointcloud::Ptr rawInputCloud_
std::vector< std::vector< Pointcloud::Ptr > > pointcloudWithinGridMapCell_
grid_map::GridMap workingGridMap_
Pointcloud::Ptr workingCloud_
::pcl::PointCloud< Point > Pointcloud
grid_map::GridMap & getWorkingGridMap()
grid_map_pcl::PointcloudProcessor pointcloudProcessor_
const std::vector< std::vector< std::vector< float > > > & getClusterHeightsWithingGridMapCell() const
const grid_map_pcl::PclLoaderParameters::Parameters & getParameters() const
std::vector< std::vector< std::vector< float > > > clusterHeightsWithingGridMapCell_
grid_map_pcl::PclLoaderParameters params_