Public Member Functions | Public Attributes | List of all members
hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver > Class Template Reference

Traversal node for octree collision. More...

#include <hpp/fcl/traversal/traversal_node_octree.h>

Inheritance diagram for hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >:
[legend]
Collaboration diagram for hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >:
[legend]

Public Member Functions

 OcTreeCollisionTraversalNode (const CollisionRequest &request)
 
bool BVTesting (int, int) const
 BV test between b1 and b2. More...
 
bool BVTesting (int, int, FCL_REAL &) const
 BV test between b1 and b2. More...
 
void leafTesting (int, int, FCL_REAL &) const
 Leaf test between node b1 and b2, if they are both leafs. More...
 
- Public Member Functions inherited from hpp::fcl::CollisionTraversalNodeBase
 CollisionTraversalNodeBase (const CollisionRequest &request_)
 
virtual ~CollisionTraversalNodeBase ()
 
virtual bool canStop () const
 Check whether the traversal can stop. More...
 
void enableStatistics (bool enable)
 Whether store some statistics information during traversal. More...
 
- Public Member Functions inherited from hpp::fcl::TraversalNodeBase
virtual ~TraversalNodeBase ()
 
virtual void preprocess ()
 
virtual void postprocess ()
 
virtual bool isFirstNodeLeaf (int b) const
 Whether b is a leaf node in the first BVH tree. More...
 
virtual bool isSecondNodeLeaf (int b) const
 Whether b is a leaf node in the second BVH tree. More...
 
virtual bool firstOverSecond (int b1, int b2) const
 Traverse the subtree of the node in the first tree first. More...
 
virtual int getFirstLeftChild (int b) const
 Get the left child of the node b in the first tree. More...
 
virtual int getFirstRightChild (int b) const
 Get the right child of the node b in the first tree. More...
 
virtual int getSecondLeftChild (int b) const
 Get the left child of the node b in the second tree. More...
 
virtual int getSecondRightChild (int b) const
 Get the right child of the node b in the second tree. More...
 

Public Attributes

const OcTreemodel1
 
const OcTreemodel2
 
Transform3f tf1
 
Transform3f tf2
 
const OcTreeSolver< NarrowPhaseSolver > * otsolver
 
- Public Attributes inherited from hpp::fcl::CollisionTraversalNodeBase
const CollisionRequestrequest
 request setting for collision More...
 
CollisionResultresult
 collision result kept during the traversal iteration More...
 
bool enable_statistics
 Whether stores statistics. More...
 
- Public Attributes inherited from hpp::fcl::TraversalNodeBase
Transform3f tf1
 configuation of first object More...
 
Transform3f tf2
 configuration of second object More...
 

Detailed Description

template<typename NarrowPhaseSolver>
class hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >

Traversal node for octree collision.

Constructor & Destructor Documentation

template<typename NarrowPhaseSolver >
hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::OcTreeCollisionTraversalNode ( const CollisionRequest request)
inline

Member Function Documentation

template<typename NarrowPhaseSolver >
bool hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::BVTesting ( int  b1,
int  b2 
) const
inlinevirtual

BV test between b1 and b2.

Implements hpp::fcl::CollisionTraversalNodeBase.

template<typename NarrowPhaseSolver >
bool hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::BVTesting ( int  b1,
int  b2,
FCL_REAL sqrDistLowerBound 
) const
inlinevirtual

BV test between b1 and b2.

Parameters
b1,b2Bounding volumes to test,
Return values
sqrDistLowerBoundsquare of a lower bound of the minimal distance between bounding volumes.

Implements hpp::fcl::CollisionTraversalNodeBase.

template<typename NarrowPhaseSolver >
void hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::leafTesting ( int  ,
int  ,
FCL_REAL  
) const
inlinevirtual

Leaf test between node b1 and b2, if they are both leafs.

Reimplemented from hpp::fcl::CollisionTraversalNodeBase.

Member Data Documentation

template<typename NarrowPhaseSolver >
const OcTree* hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::model1
template<typename NarrowPhaseSolver >
const OcTree* hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::model2
template<typename NarrowPhaseSolver >
const OcTreeSolver<NarrowPhaseSolver>* hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::otsolver
template<typename NarrowPhaseSolver >
Transform3f hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::tf1
template<typename NarrowPhaseSolver >
Transform3f hpp::fcl::OcTreeCollisionTraversalNode< NarrowPhaseSolver >::tf2