hpp-fcl  3.0.0
HPP fork of FCL -- The Flexible Collision Library
hpp::fcl::ComputeContactPatch Class Reference

This class reduces the cost of identifying the geometry pair. This is usefull for repeated shape-shape queries. More...

#include <hpp/fcl/contact_patch.h>

Collaboration diagram for hpp::fcl::ComputeContactPatch:

Public Member Functions

 ComputeContactPatch (const CollisionGeometry *o1, const CollisionGeometry *o2)
 Default constructor from two Collision Geometries. More...
 
void operator() (const Transform3f &tf1, const Transform3f &tf2, const CollisionResult &collision_result, const ContactPatchRequest &request, ContactPatchResult &result) const
 
bool operator== (const ComputeContactPatch &other) const
 
bool operator!= (const ComputeContactPatch &other) const
 
virtual ~ComputeContactPatch ()=default
 

Protected Member Functions

virtual void run (const Transform3f &tf1, const Transform3f &tf2, const CollisionResult &collision_result, const ContactPatchRequest &request, ContactPatchResult &result) const
 

Protected Attributes

const CollisionGeometryo1
 
const CollisionGeometryo2
 
ContactPatchSolver csolver
 
ContactPatchFunctionMatrix::ContactPatchFunc func
 
bool swap_geoms
 

Detailed Description

This class reduces the cost of identifying the geometry pair. This is usefull for repeated shape-shape queries.

Note
This needs to be called after collide or after ComputeCollision.
ComputeContactPatch calc_patch (o1, o2);
calc_patch(tf1, tf2, collision_result, patch_request, patch_result);
const CollisionGeometry * o1
Definition: contact_patch.h:104
const CollisionGeometry * o2
Definition: contact_patch.h:105
ComputeContactPatch(const CollisionGeometry *o1, const CollisionGeometry *o2)
Default constructor from two Collision Geometries.

Constructor & Destructor Documentation

◆ ComputeContactPatch()

hpp::fcl::ComputeContactPatch::ComputeContactPatch ( const CollisionGeometry o1,
const CollisionGeometry o2 
)

Default constructor from two Collision Geometries.

◆ ~ComputeContactPatch()

virtual hpp::fcl::ComputeContactPatch::~ComputeContactPatch ( )
virtualdefault

Member Function Documentation

◆ operator!=()

bool hpp::fcl::ComputeContactPatch::operator!= ( const ComputeContactPatch other) const
inline

◆ operator()()

void hpp::fcl::ComputeContactPatch::operator() ( const Transform3f tf1,
const Transform3f tf2,
const CollisionResult collision_result,
const ContactPatchRequest request,
ContactPatchResult result 
) const

◆ operator==()

bool hpp::fcl::ComputeContactPatch::operator== ( const ComputeContactPatch other) const
inline

◆ run()

virtual void hpp::fcl::ComputeContactPatch::run ( const Transform3f tf1,
const Transform3f tf2,
const CollisionResult collision_result,
const ContactPatchRequest request,
ContactPatchResult result 
) const
protectedvirtual

Member Data Documentation

◆ csolver

ContactPatchSolver hpp::fcl::ComputeContactPatch::csolver
mutableprotected

◆ func

ContactPatchFunctionMatrix::ContactPatchFunc hpp::fcl::ComputeContactPatch::func
protected

◆ o1

const CollisionGeometry* hpp::fcl::ComputeContactPatch::o1
mutableprotected

◆ o2

const CollisionGeometry* hpp::fcl::ComputeContactPatch::o2
mutableprotected

◆ swap_geoms

bool hpp::fcl::ComputeContactPatch::swap_geoms
protected

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