RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
rtabmap::RtabmapColorOcTree Class Reference
Inheritance diagram for rtabmap::RtabmapColorOcTree:
Collaboration diagram for rtabmap::RtabmapColorOcTree:

Classes

class  StaticMemberInitializer
 

Public Member Functions

 RtabmapColorOcTree (double resolution)
 Default constructor, sets resolution of leafs.
 
RtabmapColorOcTreecreate () const
 
std::string getTreeType () const
 
virtual bool pruneNode (RtabmapColorOcTreeNode *node)
 
virtual bool isNodeCollapsible (const RtabmapColorOcTreeNode *node) const
 
RtabmapColorOcTreeNodesetNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b)
 
RtabmapColorOcTreeNodesetNodeColor (float x, float y, float z, uint8_t r, uint8_t g, uint8_t b)
 
RtabmapColorOcTreeNodeaverageNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b)
 
RtabmapColorOcTreeNodeaverageNodeColor (float x, float y, float z, uint8_t r, uint8_t g, uint8_t b)
 
RtabmapColorOcTreeNodeintegrateNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b)
 
RtabmapColorOcTreeNodeintegrateNodeColor (float x, float y, float z, uint8_t r, uint8_t g, uint8_t b)
 
void updateInnerOccupancy ()
 

Protected Member Functions

void updateInnerOccupancyRecurs (RtabmapColorOcTreeNode *node, unsigned int depth)
 

Static Protected Attributes

static StaticMemberInitializer RtabmapColorOcTreeMemberInit
 static member to ensure static initialization (only once)
 

Detailed Description

Definition at line 87 of file OctoMap.h.

Constructor & Destructor Documentation

◆ ~RtabmapColorOcTree()

virtual rtabmap::RtabmapColorOcTree::~RtabmapColorOcTree ( )
inlinevirtual

Definition at line 92 of file OctoMap.h.

Member Function Documentation

◆ create()

RtabmapColorOcTree * rtabmap::RtabmapColorOcTree::create ( ) const
inline

virtual constructor: creates a new object of same type (Covariant return type requires an up-to-date compiler)

Definition at line 96 of file OctoMap.h.

◆ getTreeType()

std::string rtabmap::RtabmapColorOcTree::getTreeType ( ) const
inline

Definition at line 98 of file OctoMap.h.

◆ pruneNode()

virtual bool rtabmap::RtabmapColorOcTree::pruneNode ( RtabmapColorOcTreeNode node)
virtual

Prunes a node when it is collapsible. This overloaded version only considers the node occupancy for pruning, different colors of child nodes are ignored.

Returns
true if pruning was successful

◆ setNodeColor()

RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::setNodeColor ( float  x,
float  y,
float  z,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inline

Definition at line 114 of file OctoMap.h.

◆ averageNodeColor()

RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::averageNodeColor ( float  x,
float  y,
float  z,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inline

Definition at line 126 of file OctoMap.h.

◆ integrateNodeColor()

RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::integrateNodeColor ( float  x,
float  y,
float  z,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inline

Definition at line 138 of file OctoMap.h.

Member Data Documentation

◆ RtabmapColorOcTreeMemberInit

StaticMemberInitializer rtabmap::RtabmapColorOcTree::RtabmapColorOcTreeMemberInit
staticprotected

static member to ensure static initialization (only once)

Definition at line 171 of file OctoMap.h.


The documentation for this class was generated from the following file: