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:


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03