Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
hpp::fcl::ComputeDistance Class Reference

#include <distance.h>

Public Member Functions

 ComputeDistance (const CollisionGeometry *o1, const CollisionGeometry *o2)
 
bool operator!= (const ComputeDistance &other) const
 
FCL_REAL operator() (const Transform3f &tf1, const Transform3f &tf2, const DistanceRequest &request, DistanceResult &result) const
 
FCL_REAL operator() (const Transform3f &tf1, const Transform3f &tf2, DistanceRequest &request, DistanceResult &result) const
 
bool operator== (const ComputeDistance &other) const
 
virtual ~ComputeDistance ()
 

Protected Member Functions

virtual FCL_REAL run (const Transform3f &tf1, const Transform3f &tf2, const DistanceRequest &request, DistanceResult &result) const
 

Protected Attributes

DistanceFunctionMatrix::DistanceFunc func
 
const CollisionGeometryo1
 
const CollisionGeometryo2
 
GJKSolver solver
 
bool swap_geoms
 

Detailed Description

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

ComputeDistance calc_distance (o1, o2);
FCL_REAL distance = calc_distance(tf1, tf2, request, result);

Definition at line 98 of file distance.h.

Constructor & Destructor Documentation

◆ ComputeDistance()

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

Definition at line 118 of file src/distance.cpp.

◆ ~ComputeDistance()

virtual hpp::fcl::ComputeDistance::~ComputeDistance ( )
inlinevirtual

Definition at line 124 of file distance.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 120 of file distance.h.

◆ operator()() [1/2]

FCL_REAL hpp::fcl::ComputeDistance::operator() ( const Transform3f tf1,
const Transform3f tf2,
const DistanceRequest request,
DistanceResult result 
) const

Definition at line 164 of file src/distance.cpp.

◆ operator()() [2/2]

FCL_REAL hpp::fcl::ComputeDistance::operator() ( const Transform3f tf1,
const Transform3f tf2,
DistanceRequest request,
DistanceResult result 
) const
inline

Definition at line 106 of file distance.h.

◆ operator==()

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

Definition at line 115 of file distance.h.

◆ run()

FCL_REAL hpp::fcl::ComputeDistance::run ( const Transform3f tf1,
const Transform3f tf2,
const DistanceRequest request,
DistanceResult result 
) const
protectedvirtual

Definition at line 146 of file src/distance.cpp.

Member Data Documentation

◆ func

DistanceFunctionMatrix::DistanceFunc hpp::fcl::ComputeDistance::func
protected

Definition at line 136 of file distance.h.

◆ o1

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

Definition at line 124 of file distance.h.

◆ o2

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

Definition at line 132 of file distance.h.

◆ solver

GJKSolver hpp::fcl::ComputeDistance::solver
mutableprotected

Definition at line 134 of file distance.h.

◆ swap_geoms

bool hpp::fcl::ComputeDistance::swap_geoms
protected

Definition at line 137 of file distance.h.


The documentation for this class was generated from the following files:
gjk.tf1
tuple tf1
Definition: test/scripts/gjk.py:27
hpp::fcl::ComputeDistance::ComputeDistance
ComputeDistance(const CollisionGeometry *o1, const CollisionGeometry *o2)
Definition: src/distance.cpp:118
hpp::fcl::distance
HPP_FCL_DLLAPI FCL_REAL distance(const Matrix3f &R0, const Vec3f &T0, const kIOS &b1, const kIOS &b2, Vec3f *P=NULL, Vec3f *Q=NULL)
Approximate distance between two kIOS bounding volumes.
Definition: kIOS.cpp:181
hpp::fcl::ComputeDistance::o1
const CollisionGeometry * o1
Definition: distance.h:124
hpp::fcl::FCL_REAL
double FCL_REAL
Definition: data_types.h:65
gjk.tf2
tuple tf2
Definition: test/scripts/gjk.py:36
hpp::fcl::ComputeDistance::o2
const CollisionGeometry * o2
Definition: distance.h:132


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16