Public Member Functions | List of all members
octomap::CountingOcTreeNode Class Reference

#include <CountingOcTree.h>

Inheritance diagram for octomap::CountingOcTreeNode:
Inheritance graph
[legend]

Public Member Functions

 CountingOcTreeNode ()
 implementation of CountingOcTreeNode -------------------------------— More...
 
bool createChild (unsigned int i)
 
void expandNode ()
 
CountingOcTreeNodegetChild (unsigned int i)
 
const CountingOcTreeNodegetChild (unsigned int i) const
 
unsigned int getCount () const
 
void increaseCount ()
 
void setCount (unsigned c)
 
 ~CountingOcTreeNode ()
 
- Public Member Functions inherited from octomap::OcTreeDataNode< unsigned int >
bool childExists (unsigned int i) const
 
bool collapsible () const
 
bool createChild (unsigned int i)
 initialize i-th child, allocate children array if needed More...
 
void deleteChild (unsigned int i)
 Deletes the i-th child of the node. More...
 
void expandNode ()
 
OcTreeDataNode< unsigned int > * getChild (unsigned int i)
 
const OcTreeDataNode< unsigned int > * getChild (unsigned int i) const
 
unsigned int getValue () const
 
bool hasChildren () const
 
 OcTreeDataNode ()
 
 OcTreeDataNode (unsigned intinitVal)
 
 OcTreeDataNode (const OcTreeDataNode &rhs)
 Copy constructor, performs a recursive deep-copy of all children. More...
 
bool operator== (const OcTreeDataNode &rhs) const
 Equals operator, compares if the stored value is identical. More...
 
bool pruneNode ()
 
std::istream & readValue (std::istream &s)
 
void setValue (unsigned intv)
 sets value to be stored in the node More...
 
std::ostream & writeValue (std::ostream &s) const
 
 ~OcTreeDataNode ()
 

Additional Inherited Members

- Public Types inherited from octomap::OcTreeDataNode< unsigned int >
typedef unsigned int DataType
 Make the templated data type available from the outside. More...
 
- Protected Member Functions inherited from octomap::OcTreeDataNode< unsigned int >
void allocChildren ()
 
- Protected Attributes inherited from octomap::OcTreeDataNode< unsigned int >
OcTreeDataNode< unsigned int > ** children
 pointer to array of children, may be NULL More...
 
unsigned int value
 stored data (payload) More...
 

Detailed Description

An Octree-node which stores an internal counter per node / volume.

Count is recursive, parent nodes have the summed count of their children.

Note
In our mapping system this data structure is used in CountingOcTree in the sensor model only

Definition at line 53 of file CountingOcTree.h.

Constructor & Destructor Documentation

octomap::CountingOcTreeNode::CountingOcTreeNode ( )

implementation of CountingOcTreeNode -------------------------------—

Definition at line 42 of file CountingOcTree.cpp.

octomap::CountingOcTreeNode::~CountingOcTreeNode ( )

Definition at line 47 of file CountingOcTree.cpp.

Member Function Documentation

bool octomap::CountingOcTreeNode::createChild ( unsigned int  i)

Definition at line 62 of file CountingOcTree.cpp.

void octomap::CountingOcTreeNode::expandNode ( )

Definition at line 51 of file CountingOcTree.cpp.

CountingOcTreeNode* octomap::CountingOcTreeNode::getChild ( unsigned int  i)
inline

Definition at line 61 of file CountingOcTree.h.

const CountingOcTreeNode* octomap::CountingOcTreeNode::getChild ( unsigned int  i) const
inline

Definition at line 65 of file CountingOcTree.h.

unsigned int octomap::CountingOcTreeNode::getCount ( ) const
inline

Definition at line 69 of file CountingOcTree.h.

void octomap::CountingOcTreeNode::increaseCount ( )
inline

Definition at line 70 of file CountingOcTree.h.

void octomap::CountingOcTreeNode::setCount ( unsigned  c)
inline

Definition at line 71 of file CountingOcTree.h.


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


octomap
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Jun 10 2019 14:00:13