#include <OctoMap.h>
Classes | |
class | StaticMemberInitializer |
Public Member Functions | |
RtabmapColorOcTreeNode * | averageNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b) |
RtabmapColorOcTreeNode * | averageNodeColor (float x, float y, float z, uint8_t r, uint8_t g, uint8_t b) |
RtabmapColorOcTree * | create () const |
std::string | getTreeType () const |
RtabmapColorOcTreeNode * | integrateNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b) |
RtabmapColorOcTreeNode * | integrateNodeColor (float x, float y, float z, uint8_t r, uint8_t g, uint8_t b) |
virtual bool | isNodeCollapsible (const RtabmapColorOcTreeNode *node) const |
virtual bool | pruneNode (RtabmapColorOcTreeNode *node) |
RtabmapColorOcTree (double resolution) | |
Default constructor, sets resolution of leafs. | |
RtabmapColorOcTreeNode * | setNodeColor (const octomap::OcTreeKey &key, uint8_t r, uint8_t g, uint8_t b) |
RtabmapColorOcTreeNode * | setNodeColor (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) |
rtabmap::RtabmapColorOcTree::RtabmapColorOcTree | ( | double | resolution | ) |
Default constructor, sets resolution of leafs.
Definition at line 107 of file OctoMap.cpp.
RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::averageNodeColor | ( | const octomap::OcTreeKey & | key, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Definition at line 172 of file OctoMap.cpp.
RtabmapColorOcTreeNode* rtabmap::RtabmapColorOcTree::averageNodeColor | ( | float | x, |
float | y, | ||
float | z, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) | [inline] |
RtabmapColorOcTree* rtabmap::RtabmapColorOcTree::create | ( | ) | const [inline] |
std::string rtabmap::RtabmapColorOcTree::getTreeType | ( | ) | const [inline] |
Reimplemented from octomap::OcTreeBaseImpl< RtabmapColorOcTreeNode, AbstractOccupancyOcTree >.
RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::integrateNodeColor | ( | const octomap::OcTreeKey & | key, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Definition at line 189 of file OctoMap.cpp.
RtabmapColorOcTreeNode* rtabmap::RtabmapColorOcTree::integrateNodeColor | ( | float | x, |
float | y, | ||
float | z, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) | [inline] |
bool rtabmap::RtabmapColorOcTree::isNodeCollapsible | ( | const RtabmapColorOcTreeNode * | node | ) | const [virtual] |
Definition at line 148 of file OctoMap.cpp.
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.
Definition at line 123 of file OctoMap.cpp.
RtabmapColorOcTreeNode * rtabmap::RtabmapColorOcTree::setNodeColor | ( | const octomap::OcTreeKey & | key, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
Definition at line 112 of file OctoMap.cpp.
RtabmapColorOcTreeNode* rtabmap::RtabmapColorOcTree::setNodeColor | ( | float | x, |
float | y, | ||
float | z, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) | [inline] |
Reimplemented from octomap::OccupancyOcTreeBase< RtabmapColorOcTreeNode >.
Definition at line 214 of file OctoMap.cpp.
void rtabmap::RtabmapColorOcTree::updateInnerOccupancyRecurs | ( | RtabmapColorOcTreeNode * | node, |
unsigned int | depth | ||
) | [protected] |
Definition at line 218 of file OctoMap.cpp.
StaticMemberInitializer rtabmap::RtabmapColorOcTree::RtabmapColorOcTreeMemberInit [static, protected] |