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...
 
unsigned int getCount () const
 
void increaseCount ()
 
void setCount (unsigned c)
 
 ~CountingOcTreeNode ()
 
- Public Member Functions inherited from octomap::OcTreeDataNode< unsigned int >
void copyData (const OcTreeDataNode &from)
 
unsigned int getValue () const
 
 OCTOMAP_DEPRECATED (bool childExists(unsigned int i) const)
 
 OCTOMAP_DEPRECATED (bool hasChildren() const)
 
 OcTreeDataNode ()
 
 OcTreeDataNode (unsigned int initVal)
 
 OcTreeDataNode (const OcTreeDataNode &rhs)
 
bool operator== (const OcTreeDataNode &rhs) const
 Equals operator, compares if the stored value is identical. More...
 
std::istream & readData (std::istream &s)
 Read node payload (data only) from binary stream. More...
 
void setValue (unsigned int v)
 sets value to be stored in the node More...
 
std::ostream & writeData (std::ostream &s) const
 Write node payload (data only) to binary stream. More...
 
 ~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 >
AbstractOcTreeNode ** children
 
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

◆ CountingOcTreeNode()

octomap::CountingOcTreeNode::CountingOcTreeNode ( )

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

Definition at line 42 of file CountingOcTree.cpp.

◆ ~CountingOcTreeNode()

octomap::CountingOcTreeNode::~CountingOcTreeNode ( )

Definition at line 47 of file CountingOcTree.cpp.

Member Function Documentation

◆ getCount()

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

Definition at line 60 of file CountingOcTree.h.

◆ increaseCount()

void octomap::CountingOcTreeNode::increaseCount ( )
inline

Definition at line 61 of file CountingOcTree.h.

◆ setCount()

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

Definition at line 62 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 Feb 28 2022 22:58:06