#include <octree.h>
|
static void | prune (octomap::OcTree &octree) |
| A custom octree prune which will prune if all children are above the occupancy threshold. More...
|
|
|
template<class Archive > |
void | save (Archive &ar, const unsigned int version) const |
|
template<class Archive > |
void | load (Archive &ar, const unsigned int version) |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
|
static bool | isNodeCollapsible (octomap::OcTree &octree, octomap::OcTreeNode *node) |
|
static bool | pruneNode (octomap::OcTree &octree, octomap::OcTreeNode *node) |
|
static void | pruneRecurs (octomap::OcTree &octree, octomap::OcTreeNode *node, unsigned int depth, unsigned int max_depth, unsigned int &num_pruned) |
|
◆ ConstPtr
◆ Ptr
◆ SubType
Enumerator |
---|
BOX | |
SPHERE_INSIDE | |
SPHERE_OUTSIDE | |
◆ Octree() [1/3]
tesseract_geometry::Octree::Octree |
( |
std::shared_ptr< const octomap::OcTree > |
octree, |
|
|
const SubType |
sub_type |
|
) |
| |
|
inline |
◆ Octree() [2/3]
template<typename PointT >
tesseract_geometry::Octree::Octree |
( |
const PointT & |
point_cloud, |
|
|
const double |
resolution, |
|
|
const SubType |
sub_type, |
|
|
const bool |
prune, |
|
|
const bool |
binary = true |
|
) |
| |
|
inline |
◆ Octree() [3/3]
tesseract_geometry::Octree::Octree |
( |
| ) |
|
|
default |
◆ ~Octree()
tesseract_geometry::Octree::~Octree |
( |
| ) |
|
|
overridedefault |
◆ calcNumSubShapes()
long tesseract_geometry::Octree::calcNumSubShapes |
( |
| ) |
const |
|
inline |
Calculate the number of sub shapes that would get generated for this octree.
This is expensive and should not be called multiple times
- Returns
- number of sub shapes
◆ clone()
|
inlinefinaloverridevirtual |
◆ getOctree()
const std::shared_ptr< const octomap::OcTree > & tesseract_geometry::Octree::getOctree |
( |
| ) |
const |
|
inline |
◆ getPruned()
bool tesseract_geometry::Octree::getPruned |
( |
| ) |
const |
|
inline |
◆ getSubType()
SubType tesseract_geometry::Octree::getSubType |
( |
| ) |
const |
|
inline |
◆ isNodeCollapsible()
static bool tesseract_geometry::Octree::isNodeCollapsible |
( |
octomap::OcTree & |
octree, |
|
|
octomap::OcTreeNode * |
node |
|
) |
| |
|
inlinestaticprivate |
◆ load()
template<class Archive >
void tesseract_geometry::Octree::load |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ operator!=()
bool tesseract_geometry::Octree::operator!= |
( |
const Octree & |
rhs | ) |
const |
◆ operator==()
bool tesseract_geometry::Octree::operator== |
( |
const Octree & |
rhs | ) |
const |
◆ prune()
static void tesseract_geometry::Octree::prune |
( |
octomap::OcTree & |
octree | ) |
|
|
inlinestatic |
A custom octree prune which will prune if all children are above the occupancy threshold.
This is different from the octomap::OcTree::prune which requires all children to have the same occupancy to be collapsed.
- Parameters
-
octree | The octree to be pruned. |
◆ pruneNode()
static bool tesseract_geometry::Octree::pruneNode |
( |
octomap::OcTree & |
octree, |
|
|
octomap::OcTreeNode * |
node |
|
) |
| |
|
inlinestaticprivate |
◆ pruneRecurs()
static void tesseract_geometry::Octree::pruneRecurs |
( |
octomap::OcTree & |
octree, |
|
|
octomap::OcTreeNode * |
node, |
|
|
unsigned int |
depth, |
|
|
unsigned int |
max_depth, |
|
|
unsigned int & |
num_pruned |
|
) |
| |
|
inlinestaticprivate |
◆ save()
template<class Archive >
void tesseract_geometry::Octree::save |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| const |
|
private |
◆ serialize()
template<class Archive >
void tesseract_geometry::Octree::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ update()
void tesseract_geometry::Octree::update |
( |
| ) |
|
|
inline |
Octrees are typically generated from 3D sensor data so this method should be used to efficiently update the collision shape.
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ binary_octree_
bool tesseract_geometry::Octree::binary_octree_ { false } |
|
private |
◆ octree_
std::shared_ptr<const octomap::OcTree> tesseract_geometry::Octree::octree_ |
|
private |
◆ pruned_
bool tesseract_geometry::Octree::pruned_ { false } |
|
private |
◆ resolution_
double tesseract_geometry::Octree::resolution_ { 0.01 } |
|
private |
◆ sub_type_
The documentation for this class was generated from the following files:
- tesseract_geometry/include/tesseract_geometry/impl/octree.h
- tesseract_geometry/src/geometries/octree.cpp