28#ifndef CORELIB_SRC_GRIDMAP_H_
29#define CORELIB_SRC_GRIDMAP_H_
31#include "rtabmap/core/rtabmap_core_export.h"
33#include <rtabmap/core/GlobalMap.h>
34#include <pcl/point_cloud.h>
35#include <pcl/point_types.h>
36#include <pcl/PolygonMesh.h>
52 const grid_map::GridMap * gridMap()
const {
return gridMap_;}
54 cv::Mat createHeightMap(
float & xMin,
float & yMin,
float & cellSize)
const;
55 cv::Mat createColorMap(
float & xMin,
float & yMin,
float & cellSize)
const;
56 pcl::PointCloud<pcl::PointXYZRGB>::Ptr createTerrainCloud()
const;
57 pcl::PolygonMesh::Ptr createTerrainMesh()
const;
60 virtual void assemble(
const std::list<std::pair<int, Transform> > & newPoses);
63 cv::Mat toImage(
const std::string & layer,
float & xMin,
float & yMin,
float & cellSize)
const;
66 grid_map::GridMap * gridMap_;
Abstract base for assembling per-node LocalGrid data into a global map.
virtual void clear()
Clears assembled nodes and grid bounds; does not clear LocalGridCache.
virtual void assemble(const std::list< std::pair< int, Transform > > &newPoses)
Subclass hook: merge newPoses into the global map; call addAssembledNode().
Cache of LocalGrid entries keyed by map node id.
std::map< std::string, std::string > ParametersMap
Parameter keys mapped to their values, as used by every configurable class (see Parameters).