10 #ifndef MRPT_COctoMap_H 11 #define MRPT_COctoMap_H 43 COctoMap(
const double resolution=0.10);
61 void insertRay(
const float end_x,
const float end_y,
const float end_z,
const float sensor_x,
const float sensor_y,
const float sensor_z);
63 void updateVoxel(
const double x,
const double y,
const double z,
bool occupied);
65 bool isPointWithinOctoMap(
const float x,
const float y,
const float z)
const;
66 double getResolution()
const;
67 unsigned int getTreeDepth()
const;
71 size_t memoryUsage()
const;
73 size_t memoryUsageNode()
const;
75 size_t memoryFullGrid()
const;
78 void getMetricSize(
double&
x,
double&
y,
double&
z);
80 void getMetricSize(
double&
x,
double&
y,
double&
z)
const;
82 void getMetricMin(
double&
x,
double&
y,
double&
z);
84 void getMetricMin(
double&
x,
double&
y,
double&
z)
const;
86 void getMetricMax(
double&
x,
double&
y,
double&
z);
88 void getMetricMax(
double&
x,
double&
y,
double&
z)
const;
90 size_t calcNumNodes()
const;
92 size_t getNumLeafNodes()
const;
113 bool internal_insertObservation(const
mrpt::obs::CObservation *obs,const
mrpt::poses::CPose3D *robotPose)
MRPT_OVERRIDE;
#define MAP_DEFINITION_END(_CLASS_NAME_, _LINKAGE_)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
A flexible renderer of voxels, typically from a 3D octo map (see mrpt::maps::COctoMap).
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Declares a virtual base class for all metric maps storage classes.
#define PIMPL_FORWARD_DECLARATION(_TYPE)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define MAP_DEFINITION_START(_CLASS_NAME_, _LINKAGE_)
Add a MAP_DEFINITION_START() ...