Go to the documentation of this file.
97 root_key[0] = root_key[1] = root_key[2] = this->
tree_max_val;
103 unsigned int& min_hits,
104 unsigned int max_depth,
113 for (
unsigned int i=0; i<8; ++i) {
124 node_centers.push_back(this->
keyToCoord(parent_key, depth));
unsigned int getCount() const
const unsigned int tree_max_val
const unsigned int tree_depth
Maximum tree depth is fixed to 16 currently.
void getCentersMinHitsRecurs(point3d_list &node_centers, unsigned int &min_hits, unsigned int max_depth, CountingOcTreeNode *node, unsigned int depth, const OcTreeKey &parent_key) const
CountingOcTreeNode * root
Pointer to the root NODE, NULL for empty tree.
This class represents a three-dimensional vector.
CountingOcTree(double resolution)
Default constructor, sets resolution of leafs.
CountingOcTreeNode()
implementation of CountingOcTreeNode -------------------------------—
bool nodeChildExists(const CountingOcTreeNode *node, unsigned int childIdx) const
bool nodeHasChildren(const CountingOcTreeNode *node) const
static StaticMemberInitializer countingOcTreeMemberInit
static member to ensure static initialization (only once)
uint8_t computeChildIdx(const OcTreeKey &key, int depth)
generate child index (between 0 and 7) from key at given tree depth
bool coordToKeyChecked(const point3d &coord, OcTreeKey &key) const
CountingOcTreeNode * createNodeChild(CountingOcTreeNode *node, unsigned int childIdx)
Creates (allocates) the i-th child of the node.
double keyToCoord(key_type key, unsigned depth) const
std::list< octomath::Vector3 > point3d_list
void getCentersMinHits(point3d_list &node_centers, unsigned int min_hits) const
CountingOcTreeNode * getNodeChild(CountingOcTreeNode *node, unsigned int childIdx) const
virtual CountingOcTreeNode * updateNode(const point3d &value)
void computeChildKey(unsigned int pos, key_type center_offset_key, const OcTreeKey &parent_key, OcTreeKey &child_key)
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:40