Go to the documentation of this file.
80 <<
" is not yet supported.",
81 std::invalid_argument);
84 o2,
tf2, o1,
tf1, &solver, request, result);
85 std::swap(result.
o1, result.
o2);
95 <<
" is not yet supported.",
96 std::invalid_argument);
99 o1,
tf1, o2,
tf2, &solver, request, result);
129 <<
" is not yet supported.",
130 std::invalid_argument);
145 std::swap(result.
o1, result.
o2);
support_func_guess_t cached_support_func_guess
stores the last support function vertex index, when relevant.
virtual NODE_TYPE getNodeType() const
get the node type
const CollisionGeometry * o1
collision object 1
ComputeDistance(const CollisionGeometry *o1, const CollisionGeometry *o2)
COAL_COMPILER_DIAGNOSTIC_POP void updateGuess(const QueryResult &result) const
Updates the guess for the internal GJK algorithm in order to warm-start it when reusing this collisio...
This class mimics the way "boost/timer/timer.hpp" operates while using the modern std::chrono library...
const CollisionGeometry * collisionGeometryPtr() const
get raw pointer to collision geometry of the object instance
const Transform3s & getTransform() const
get object's transform
Vec3s cached_gjk_guess
stores the last GJK ray when relevant.
NODE_TYPE
traversal node type: bounding volume (AABB, OBB, RSS, kIOS, OBBRSS, KDOP16, KDOP18,...
bool enable_timings
enable timings when performing collision/distance request
DistanceFunctionMatrix::DistanceFunc func
collision and distance solver based on the GJK and EPA algorithms. Originally, GJK and EPA were imple...
COAL_DLLAPI CoalScalar distance(const Matrix3s &R0, const Vec3s &T0, const kIOS &b1, const kIOS &b2, Vec3s *P=NULL, Vec3s *Q=NULL)
Approximate distance between two kIOS bounding volumes.
The geometry for the object for collision or distance computation.
const CollisionGeometry * o2
collision object 2
virtual OBJECT_TYPE getObjectType() const
get the type of the object
CPUTimes timings
timings for the given request
const CollisionGeometry * o2
CoalScalar operator()(const Transform3s &tf1, const Transform3s &tf2, const DistanceRequest &request, DistanceResult &result) const
request to the distance computation
support_func_guess_t support_func_cached_guess
smart guess for the support function
void set(const DistanceRequest &request)
setter from a DistanceRequest
#define COAL_THROW_PRETTY(message, exception)
the object for collision or distance computation, contains the geometry and the transform information
const CollisionGeometry * o1
OBJECT_TYPE
object type: BVH (mesh, points), basic geometry, octree
DistanceFunc distance_matrix[NODE_COUNT][NODE_COUNT]
each item in the distance matrix is a function to handle distance between objects of type1 and type2
virtual CoalScalar run(const Transform3s &tf1, const Transform3s &tf2, const DistanceRequest &request, DistanceResult &result) const
Vec3s cached_guess
smart guess
const char * get_node_type_name(NODE_TYPE node_type)
Returns the name associated to a NODE_TYPE.
DistanceFunctionMatrix & getDistanceFunctionLookTable()
distance matrix stores the functions for distance between different types of objects and provides a u...
std::array< Vec3s, 2 > nearest_points
nearest points. See CollisionResult::nearest_points.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58