38 #ifndef HPP_FCL_DISTANCE_H 39 #define HPP_FCL_DISTANCE_H 54 const DistanceRequest& request, DistanceResult& result);
58 const CollisionGeometry* o2,
const Transform3f& tf2,
59 const DistanceRequest& request, DistanceResult& result);
100 solver.enable_cached_guess = cached;
110 res = func(o2, tf2, o1, tf1, &solver, request, result);
112 std::swap(result.
o1, result.
o2);
116 res = func (o1, tf1, o2, tf2, &solver, request, result);
support_func_guess_t cached_support_func_guess
the support function intial guess set by user
Definition: collision_data.h:147
FCL_REAL(* DistanceFunc)(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *nsolver, const DistanceRequest &request, DistanceResult &result)
the uniform call interface for distance: for distance, we need know
Definition: distance_func_matrix.h:57
request to the distance computation
Definition: collision_data.h:356
support_func_guess_t cached_support_func_guess
stores the last support function vertex index, when relevant.
Definition: collision_data.h:173
const CollisionGeometry * o1
collision object 1
Definition: collision_data.h:405
CPUTimes elapsed() const
Definition: timings.h:60
Main namespace.
Definition: AABB.h:43
Vec3f nearest_points[2]
nearest points
Definition: collision_data.h:399
bool enable_cached_gjk_guess
whether enable gjk intial guess
Definition: collision_data.h:141
Definition: distance.h:92
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.
double FCL_REAL
Definition: data_types.h:66
void updateGuess(const QueryResult &result)
Definition: collision_data.h:184
Vec3f cached_gjk_guess
the gjk intial guess set by user
Definition: collision_data.h:144
FCL_REAL operator()(const Transform3f &tf1, const Transform3f &tf2, const DistanceRequest &request, DistanceResult &result) const
Definition: distance.h:96
This class mimics the way "boost/timer/timer.hpp" operates while using moder boost::chrono library...
Definition: timings.h:52
CPUTimes timings
timings for the given request
Definition: collision_data.h:176
bool enable_nearest_points
whether to return the nearest points
Definition: collision_data.h:359
Vec3f cached_gjk_guess
stores the last GJK ray when relevant.
Definition: collision_data.h:170
collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the ...
Definition: narrowphase.h:53
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:198
The geometry for the object for collision or distance computation.
Definition: collision_object.h:65
FCL_REAL operator()(const Transform3f &tf1, const Transform3f &tf2, DistanceRequest &request, DistanceResult &result) const
Definition: distance.h:128
const CollisionGeometry * o2
collision object 2
Definition: collision_data.h:408
#define HPP_FCL_DLLAPI
Definition: config.hh:64
distance result
Definition: collision_data.h:390