10 #ifndef MRPT_CColouredOctoMap_H 11 #define MRPT_CColouredOctoMap_H 83 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);
85 void updateVoxel(
const double x,
const double y,
const double z,
bool occupied);
87 bool isPointWithinOctoMap(
const float x,
const float y,
const float z)
const;
88 double getResolution()
const;
89 unsigned int getTreeDepth()
const;
93 size_t memoryUsage()
const;
95 size_t memoryUsageNode()
const;
97 size_t memoryFullGrid()
const;
100 void getMetricSize(
double&
x,
double&
y,
double&
z);
102 void getMetricSize(
double&
x,
double&
y,
double&
z)
const;
104 void getMetricMin(
double&
x,
double&
y,
double&
z);
106 void getMetricMin(
double&
x,
double&
y,
double&
z)
const;
108 void getMetricMax(
double&
x,
double&
y,
double&
z);
110 void getMetricMax(
double&
x,
double&
y,
double&
z)
const;
112 size_t calcNumNodes()
const;
114 size_t getNumLeafNodes()
const;
136 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...
void setVoxelColourMethod(TColourUpdate new_method)
Set the method used to update voxels colour.
TColourUpdate
This allows the user to select the desired method to update voxels colour.
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...
TColourUpdate getVoxelColourMethod()
Get the method used to update voxels colour.
GLdouble GLdouble GLdouble r
Declares a virtual base class for all metric maps storage classes.
#define PIMPL_FORWARD_DECLARATION(_TYPE)
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define MAP_DEFINITION_START(_CLASS_NAME_, _LINKAGE_)
Add a MAP_DEFINITION_START() ...