10 #ifndef MRPT_CColouredOctoMap_H 11 #define MRPT_CColouredOctoMap_H 14 #include <octomap/octomap.h> 15 #include <octomap/ColorOcTree.h> 31 :
public COctoMapBase<octomap::ColorOcTree, octomap::ColorOcTreeNode>
66 const double x,
const double y,
const double z,
const uint8_t r,
91 const
mrpt::obs::CObservation* obs,
92 const
mrpt::poses::CPose3D* robotPose) override;
#define MAP_DEFINITION_END(_CLASS_NAME_, _LINKAGE_)
virtual ~CColouredOctoMap()
Destructor.
#define MAP_DEFINITION_START(_CLASS_NAME_)
Add a MAP_DEFINITION_START() ...
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).
void setVoxelColourMethod(TColourUpdate new_method)
Set the method used to update voxels colour.
void updateVoxelColour(const double x, const double y, const double z, const uint8_t r, const uint8_t g, const uint8_t b)
Manually update the colour of the voxel at (x,y,z)
bool getPointColour(const float x, const float y, const float z, uint8_t &r, uint8_t &g, uint8_t &b) const
Get the RGB colour of a point.
TColourUpdate
This allows the user to select the desired method to update voxels colour.
TColourUpdate m_colour_method
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
bool internal_insertObservation(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose) override
Internal method called by insertObservation()
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
virtual void getAsOctoMapVoxels(mrpt::opengl::COctoMapVoxels &gl_obj) const override
Builds a renderizable representation of the octomap as a mrpt::opengl::COctoMapVoxels object...
CColouredOctoMap(const double resolution=0.10)
Default constructor.