ompl::app::FCLMethodWrapper Class Reference

Wrapper for FCL discrete and continuous collision checking and distance queries. More...

#include <omplapp/geometry/detail/FCLMethodWrapper.h>

Public Types

using FCLPoseFromStateCallback = std::function< void(fcl::Vec3f &, fcl::Quaternion3f &, const base::State *)>
 

Public Member Functions

 FCLMethodWrapper (const GeometrySpecification &geom, GeometricStateExtractor se, bool selfCollision, FCLPoseFromStateCallback poseCallback)
 
virtual bool isValid (const base::State *state) const
 Checks whether the given robot state collides with the environment or itself.
 
virtual bool isValid (const base::State *s1, const base::State *s2, double &collisionTime) const
 Check the continuous motion between s1 and s2. If there is a collision collisionTime will contain the parameterized time to collision in the range [0,1).
 
virtual double clearance (const base::State *state) const
 Returns the minimum distance from the given robot state and the environment.
 

Protected Types

using BVType = fcl::OBBRSS
 The type of geometric bounding done for the robot and environment.
 
using Model = fcl::BVHModel< BVType >
 The type geometric model used for the meshes.
 

Protected Member Functions

void configure (const GeometrySpecification &geom)
 Configures the geometry of the robot and the environment to setup validity checking.
 
std::pair< std::vector< fcl::Vec3f >, std::vector< fcl::Triangle > > getFCLModelFromScene (const aiScene *scene, const aiVector3D &center) const
 Convert a mesh to a FCL BVH model.
 
std::pair< std::vector< fcl::Vec3f >, std::vector< fcl::Triangle > > getFCLModelFromScene (const std::vector< const aiScene *> &scenes, const std::vector< aiVector3D > &center) const
 Convert a mesh to a FCL BVH model.
 

Protected Attributes

Model environment_
 Geometric model used for the environment.
 
std::vector< Model * > robotParts_
 List of components for the geometric model of the robot.
 
GeometricStateExtractor extractState_
 Callback to get the geometric portion of a specific state.
 
bool selfCollision_
 Flag indicating whether the geometry is checked for self collisions.
 
FCLPoseFromStateCallback poseFromStateCallback_
 Callback to extract translation and rotation from a state.
 

Detailed Description

Wrapper for FCL discrete and continuous collision checking and distance queries.

Definition at line 44 of file FCLMethodWrapper.h.


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