26 std::vector<std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr>> m_mapHeight_temp;
28 std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr> m_mapDepth_temp;
30 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>);
31 m_mapDepth_temp.push_back(point_cloud_temp);
33 m_mapHeight_temp.push_back(m_mapDepth_temp);
35 m_map.push_back(m_mapHeight_temp);
46 m_downSizeFilter.setLeafSize(map_resolution, map_resolution, map_resolution);
51 std::vector<std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr>> m_mapHeight_temp;
53 std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr> m_mapDepth_temp;
55 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
56 m_mapDepth_temp.push_back(point_cloud_temp);
58 m_mapHeight_temp.push_back(m_mapDepth_temp);
68 std::vector<std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr>> m_mapHeight_temp;
71 std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr> m_mapDepth_temp;
74 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
75 m_mapDepth_temp.push_back(point_cloud_temp);
77 m_mapHeight_temp.push_back(m_mapDepth_temp);
79 m_map.push_back(m_mapHeight_temp);
85 std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr> m_mapDepth_temp;
88 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
89 m_mapDepth_temp.push_back(point_cloud_temp);
91 m_map[i].insert(
m_map[i].begin(), m_mapDepth_temp);
99 std::vector<pcl::PointCloud<pcl::PointXYZL>::Ptr> m_mapDepth_temp;
102 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
103 m_mapDepth_temp.push_back(point_cloud_temp);
105 m_map[i].push_back(m_mapDepth_temp);
113 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
114 m_map[i][j].insert(
m_map[i][j].begin(), point_cloud_temp);
124 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
125 m_map[i][j].push_back(point_cloud_temp);
161 if(
m_map[i][j][k] == NULL) {
162 pcl::PointCloud<pcl::PointXYZL>::Ptr point_cloud_temp(
new pcl::PointCloud<pcl::PointXYZL>());
163 m_map[i][j][k] = point_cloud_temp;
172 const pcl::PointCloud<pcl::PointXYZL>::Ptr & pc_in,
173 const Eigen::Isometry3d & pose_current)
180 checkPoints(currentPosIdX, currentPosIdY, currentPosIdZ);
182 pcl::PointCloud<pcl::PointXYZL>::Ptr transformed_pc(
new pcl::PointCloud<pcl::PointXYZL>());
183 pcl::transformPointCloud(*pc_in, *transformed_pc, pose_current.cast<
float>());
186 for (
int i = 0; i < (int)transformed_pc->points.size(); i++) {
187 pcl::PointXYZL point_temp = transformed_pc->points[i];
194 m_map[currentPointIdX][currentPointIdY][currentPointIdZ]->push_back(point_temp);
210 pcl::PointCloud<pcl::PointXYZL>::Ptr LidarCloudMap(
new pcl::PointCloud<pcl::PointXYZL>());
214 if(
m_map[i][j][k]!=NULL){
215 *LidarCloudMap += *(
m_map[i][j][k]);
220 return LidarCloudMap;