coal 3.0.2
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
boost::serialization::internal::OcTreeAccessor Struct Reference

#include <coal/serialization/octree.h>

Inheritance diagram for boost::serialization::internal::OcTreeAccessor:
coal::OcTreecoal::CollisionGeometry

Public Types

typedef coal::OcTree Base
Public Types inherited from coal::OcTree
typedef octomap::OcTreeNode OcTreeNode

Public Attributes

CoalScalar default_occupancy
CoalScalar free_threshold
CoalScalar occupancy_threshold
shared_ptr< const octomap::OcTree > tree
Public Attributes inherited from coal::CollisionGeometry
Vec3s aabb_center
 AABB center in local coordinate.
CoalScalar aabb_radius
 AABB radius.
AABB aabb_local
 AABB in local coordinate, used for tight AABB when only translation transform.
void * user_data
 pointer to user defined data specific to this object
CoalScalar cost_density
 collision cost for unit volume
CoalScalar threshold_occupied
 threshold for occupied ( >= is occupied)
CoalScalar threshold_free
 threshold for free (<= is free)

Additional Inherited Members

Public Member Functions inherited from coal::OcTree
 OcTree (CoalScalar resolution)
 construct octree with a given resolution
 OcTree (const shared_ptr< const octomap::OcTree > &tree_)
 construct octree from octomap
 OcTree (const OcTree &other)
  
OcTreeclone () const
 Clone *this into a new Octree.
shared_ptr< const octomap::OcTree > getTree () const
 Returns the tree associated to the underlying octomap OcTree.
void exportAsObjFile (const std::string &filename) const
void computeLocalAABB ()
 compute the AABB for the octree in its local coordinate system
AABB getRootBV () const
 get the bounding volume for the root
unsigned int getTreeDepth () const
 Returns the depth of the octree.
unsigned long size () const
 Returns the size of the octree.
CoalScalar getResolution () const
 Returns the resolution of the octree.
OcTreeNodegetRoot () const
 get the root node of the octree
bool isNodeOccupied (const OcTreeNode *node) const
 whether one node is completely occupied
bool isNodeFree (const OcTreeNode *node) const
 whether one node is completely free
bool isNodeUncertain (const OcTreeNode *node) const
 whether one node is uncertain
std::vector< Vec6stoBoxes () const
 transform the octree into a bunch of boxes; uncertainty information is kept in the boxes. However, we only keep the occupied boxes (i.e., the boxes whose occupied probability is higher enough).
std::vector< uint8_t > tobytes () const
 Returns a byte description of *this.
CoalScalar getOccupancyThres () const
 the threshold used to decide whether one node is occupied, this is NOT the octree occupied_thresold
CoalScalar getFreeThres () const
 the threshold used to decide whether one node is free, this is NOT the octree free_threshold
CoalScalar getDefaultOccupancy () const
void setCellDefaultOccupancy (CoalScalar d)
void setOccupancyThres (CoalScalar d)
void setFreeThres (CoalScalar d)
OcTreeNodegetNodeChild (OcTreeNode *node, unsigned int childIdx)
const OcTreeNodegetNodeChild (const OcTreeNode *node, unsigned int childIdx) const
bool nodeChildExists (const OcTreeNode *node, unsigned int childIdx) const
 return true if the child at childIdx exists
bool nodeHasChildren (const OcTreeNode *node) const
 return true if node has at least one child
OBJECT_TYPE getObjectType () const
 return object type, it is an octree
NODE_TYPE getNodeType () const
 return node type, it is an octree
Public Member Functions inherited from coal::CollisionGeometry
 CollisionGeometry ()
 CollisionGeometry (const CollisionGeometry &other)=default
 Copy constructor.
virtual ~CollisionGeometry ()
bool operator== (const CollisionGeometry &other) const
 Equality operator.
bool operator!= (const CollisionGeometry &other) const
 Difference operator.
void * getUserData () const
 get user data in geometry
void setUserData (void *data)
 set user data in geometry
bool isOccupied () const
 whether the object is completely occupied
bool isFree () const
 whether the object is completely free
bool isUncertain () const
 whether the object has some uncertainty
virtual Vec3s computeCOM () const
 compute center of mass
virtual Matrix3s computeMomentofInertia () const
 compute the inertia matrix, related to the origin
virtual CoalScalar computeVolume () const
 compute the volume
virtual Matrix3s computeMomentofInertiaRelatedToCOM () const
 compute the inertia matrix, related to the com
Protected Attributes inherited from coal::OcTree
shared_ptr< const octomap::OcTree > tree
CoalScalar default_occupancy
CoalScalar occupancy_threshold
CoalScalar free_threshold

Member Typedef Documentation

◆ Base

Member Data Documentation

◆ default_occupancy

CoalScalar coal::OcTree::default_occupancy

◆ free_threshold

CoalScalar coal::OcTree::free_threshold

◆ occupancy_threshold

CoalScalar coal::OcTree::occupancy_threshold

◆ tree

shared_ptr<const octomap::OcTree> coal::OcTree::tree

The documentation for this struct was generated from the following file: