Class CountingOcTree

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class CountingOcTree : public octomap::OcTreeBase<CountingOcTreeNode>

An AbstractOcTree which stores an internal counter per node / volume.

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

Note

Was only used internally, not used anymore

Public Functions

CountingOcTree(double resolution)

Default constructor, sets resolution of leafs.

virtual CountingOcTreeNode *updateNode(const point3d &value)
CountingOcTreeNode *updateNode(const OcTreeKey &k)
void getCentersMinHits(point3d_list &node_centers, unsigned int min_hits) const

Protected Functions

void getCentersMinHitsRecurs(point3d_list &node_centers, unsigned int &min_hits, unsigned int max_depth, CountingOcTreeNode *node, unsigned int depth, const OcTreeKey &parent_key) const

Protected Static Attributes

static StaticMemberInitializer countingOcTreeMemberInit

static member to ensure static initialization (only once)

class StaticMemberInitializer

Static member object which ensures that this OcTree’s prototype ends up in the classIDMapping only once. You need this as a static member in any derived octree class in order to read .ot files through the AbstractOcTree factory. You should also call ensureLinking() once from the constructor.

Public Functions

inline StaticMemberInitializer()
inline void ensureLinking()

Dummy function to ensure that MSVC does not drop the StaticMemberInitializer, causing this tree failing to register. Needs to be called from the constructor of this octree.