28#ifndef CORELIB_SRC_OCCUPANCYGRID_H_
29#define CORELIB_SRC_OCCUPANCYGRID_H_
31#include "rtabmap/core/rtabmap_core_export.h"
33#include <rtabmap/core/GlobalMap.h>
35#include <pcl/point_cloud.h>
36#include <pcl/point_types.h>
44 void setMap(
const cv::Mat & map,
float xMin,
float yMin,
float cellSize,
const std::map<int, Transform> & poses);
45 float getMinMapSize()
const {
return minMapSize_;}
49 cv::Mat getMap(
float & xMin,
float & yMin)
const;
50 cv::Mat getProbMap(
float & xMin,
float & yMin)
const;
55 virtual void assemble(
const std::list<std::pair<int, Transform> > & newPoses);
63 float footprintRadius_;
Abstract base for assembling per-node LocalGrid data into a global map.
Cache of LocalGrid entries keyed by map node id.
unsigned long getMemoryUsed() const
Approximate memory used by assembled-node bookkeeping (bytes).
virtual void assemble(const std::list< std::pair< int, Transform > > &newPoses)
Subclass hook: merge newPoses into the global map; call addAssembledNode().
virtual void clear()
Clears assembled nodes and grid bounds; does not clear LocalGridCache.
std::map< std::string, std::string > ParametersMap
Parameter keys mapped to their values, as used by every configurable class (see Parameters).