collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the GJK in bullet) More...
#include <hpp/fcl/narrowphase/narrowphase.h>
Public Member Functions | |
template<typename S1 , typename S2 > | |
bool | shapeIntersect (const S1 &s1, const Transform3f &tf1, const S2 &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
intersection checking between two shapes More... | |
template<typename S > | |
bool | shapeTriangleInteraction (const S &s, const Transform3f &tf1, const Vec3f &P1, const Vec3f &P2, const Vec3f &P3, const Transform3f &tf2, FCL_REAL &distance, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
intersection checking between one shape and a triangle with transformation More... | |
template<typename S1 , typename S2 > | |
bool | shapeDistance (const S1 &s1, const Transform3f &tf1, const S2 &s2, const Transform3f &tf2, FCL_REAL &distance, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
distance computation between two shapes More... | |
GJKSolver () | |
default setting for GJK algorithm More... | |
void | enableCachedGuess (bool if_enable) const |
void | setCachedGuess (const Vec3f &guess) const |
Vec3f | getCachedGuess () const |
Shape intersection specializations | |
template<> | |
bool | shapeIntersect (const Sphere &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Sphere - Sphere collision. More... | |
template<> | |
bool | shapeIntersect (const Sphere &s1, const Transform3f &tf1, const Capsule &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Sphere - Capsule collision. More... | |
template<> | |
bool | shapeIntersect (const Capsule &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Capsule - Sphere collision. More... | |
template<> | |
bool | shapeIntersect (const Sphere &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Sphere - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Sphere collision. More... | |
template<> | |
bool | shapeIntersect (const Sphere &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Sphere - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Sphere collision. More... | |
template<> | |
bool | shapeIntersect (const Box &s1, const Transform3f &tf1, const Box &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
template<> | |
bool | shapeIntersect (const Box &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Box - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Box &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Box collision. More... | |
template<> | |
bool | shapeIntersect (const Box &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Box - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Box &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Box collision. More... | |
template<> | |
bool | shapeIntersect (const Capsule &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Capsule - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Capsule &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Capsule collision. More... | |
template<> | |
bool | shapeIntersect (const Capsule &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Capsule - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Capsule &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Capsule collision. More... | |
template<> | |
bool | shapeIntersect (const Cylinder &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Cylinder - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Cylinder &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Cylinder collision. More... | |
template<> | |
bool | shapeIntersect (const Cylinder &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Cylinder - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Cylinder &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Cylinder collision. More... | |
template<> | |
bool | shapeIntersect (const Cone &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Cone - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Cone &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Cone collision. More... | |
template<> | |
bool | shapeIntersect (const Cone &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Cone - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Cone &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Cone collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Plane collision. More... | |
template<> | |
bool | shapeIntersect (const Plane &s1, const Transform3f &tf1, const Halfspace &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Plane - Halfspace collision. More... | |
template<> | |
bool | shapeIntersect (const Halfspace &s1, const Transform3f &tf1, const Plane &s2, const Transform3f &tf2, FCL_REAL &distance_lower_bound, bool enable_penetration, Vec3f *contact_points, Vec3f *normal) const |
Fast implementation for Halfspace - Plane collision. More... | |
Shape triangle interaction specializations | |
template<> | |
bool | shapeTriangleInteraction (const Sphere &s, const Transform3f &tf1, const Vec3f &P1, const Vec3f &P2, const Vec3f &P3, const Transform3f &tf2, FCL_REAL &distance, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Sphere -Triangle interaction. More... | |
template<> | |
bool | shapeTriangleInteraction (const Halfspace &s, const Transform3f &tf1, const Vec3f &P1, const Vec3f &P2, const Vec3f &P3, const Transform3f &tf2, FCL_REAL &distance, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Halfspace -Triangle interaction. More... | |
template<> | |
bool | shapeTriangleInteraction (const Plane &s, const Transform3f &tf1, const Vec3f &P1, const Vec3f &P2, const Vec3f &P3, const Transform3f &tf2, FCL_REAL &distance, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Plane -Triangle interaction. More... | |
Shape distance specializations | |
template<> | |
bool | shapeDistance (const Sphere &s1, const Transform3f &tf1, const Box &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Sphere - Box distance. More... | |
template<> | |
bool | shapeDistance (const Box &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Box - Sphere distance. More... | |
template<> | |
bool | shapeDistance (const Sphere &s1, const Transform3f &tf1, const Capsule &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Sphere - Capsule distance. More... | |
template<> | |
bool | shapeDistance (const Capsule &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Capsule - Sphere distance. More... | |
template<> | |
bool | shapeDistance (const Sphere &s1, const Transform3f &tf1, const Cylinder &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Sphere - Cylinder distance. More... | |
template<> | |
bool | shapeDistance (const Cylinder &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Cylinder - Sphere distance. More... | |
template<> | |
bool | shapeDistance (const Sphere &s1, const Transform3f &tf1, const Sphere &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Sphere - Sphere distance. More... | |
template<> | |
bool | shapeDistance (const Capsule &s1, const Transform3f &tf1, const Capsule &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for Capsule - Capsule distance. More... | |
template<> | |
bool | shapeDistance (const TriangleP &s1, const Transform3f &tf1, const TriangleP &s2, const Transform3f &tf2, FCL_REAL &dist, Vec3f &p1, Vec3f &p2, Vec3f &normal) const |
Fast implementation for TriangleP - TriangleP distance. More... | |
Public Attributes | |
unsigned int | epa_max_face_num |
maximum number of simplex face used in EPA algorithm More... | |
unsigned int | epa_max_vertex_num |
maximum number of simplex vertex used in EPA algorithm More... | |
unsigned int | epa_max_iterations |
maximum number of iterations used for EPA iterations More... | |
FCL_REAL | epa_tolerance |
the threshold used in EPA to stop iteration More... | |
FCL_REAL | gjk_tolerance |
the threshold used in GJK to stop iteration More... | |
FCL_REAL | gjk_max_iterations |
maximum number of iterations used for GJK iterations More... | |
bool | enable_cached_guess |
Whether smart guess can be provided. More... | |
Vec3f | cached_guess |
smart guess More... | |
collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the GJK in bullet)
|
inline |
default setting for GJK algorithm
References cached_guess, enable_cached_guess, epa_max_face_num, epa_max_iterations, epa_max_vertex_num, epa_tolerance, gjk_max_iterations, and gjk_tolerance.
|
inline |
References enable_cached_guess.
|
inline |
References cached_guess.
|
inline |
References cached_guess.
|
inline |
distance computation between two shapes
References cached_guess, hpp::fcl::details::EPA::depth, hpp::fcl::details::GJK::distance, enable_cached_guess, epa_max_face_num, epa_max_iterations, epa_max_vertex_num, epa_tolerance, hpp::fcl::details::GJK::evaluate(), hpp::fcl::details::EPA::evaluate(), hpp::fcl::details::GJK::Failed, hpp::fcl::details::GJK::getClosestPoints(), hpp::fcl::details::EPA::getClosestPoints(), hpp::fcl::details::GJK::getGuessFromSimplex(), hpp::fcl::Transform3f::getRotation(), gjk_max_iterations, gjk_tolerance, hpp::fcl::details::GJK::hasPenetrationInformation(), hpp::fcl::details::GJK::Inside, hpp::fcl::details::EPA::normal, hpp::fcl::details::EPA::OutOfFaces, hpp::fcl::details::EPA::OutOfVertices, hpp::fcl::details::MinkowskiDiff::set(), hpp::fcl::Transform3f::transform(), hpp::fcl::details::GJK::Valid, and hpp::fcl::details::EPA::Valid.
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Box & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Box & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Capsule & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Capsule & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Cylinder & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Cylinder & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const Capsule & | s1, |
const Transform3f & | tf1, | ||
const Capsule & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeDistance | ( | const TriangleP & | s1, |
const Transform3f & | tf1, | ||
const TriangleP & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | dist, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
|
inline |
intersection checking between two shapes
References cached_guess, hpp::fcl::details::EPA::depth, hpp::fcl::details::GJK::distance, enable_cached_guess, epa_max_face_num, epa_max_iterations, epa_max_vertex_num, epa_tolerance, hpp::fcl::details::GJK::evaluate(), hpp::fcl::details::EPA::evaluate(), hpp::fcl::details::GJK::getClosestPoints(), hpp::fcl::details::EPA::getClosestPoints(), hpp::fcl::details::GJK::getGuessFromSimplex(), hpp::fcl::Transform3f::getRotation(), gjk_max_iterations, gjk_tolerance, hpp::fcl::details::GJK::hasPenetrationInformation(), hpp::fcl::details::GJK::Inside, hpp::fcl::details::EPA::normal, hpp::fcl::details::EPA::OutOfFaces, hpp::fcl::details::EPA::OutOfVertices, hpp::fcl::details::MinkowskiDiff::set(), shapeTriangleInteraction(), hpp::fcl::Transform3f::transform(), hpp::fcl::details::GJK::Valid, and hpp::fcl::details::EPA::Valid.
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Capsule & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Capsule & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Sphere & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Sphere & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Box & | s1, |
const Transform3f & | tf1, | ||
const Box & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Box & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Box & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Box & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Box & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Capsule & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Capsule & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Capsule & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Capsule & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Cylinder & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Cylinder & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Cylinder & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Cylinder & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Cone & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Cone & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Cone & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Cone & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Plane & | s1, |
const Transform3f & | tf1, | ||
const Halfspace & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
bool hpp::fcl::GJKSolver::shapeIntersect | ( | const Halfspace & | s1, |
const Transform3f & | tf1, | ||
const Plane & | s2, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance_lower_bound, | ||
bool | enable_penetration, | ||
Vec3f * | contact_points, | ||
Vec3f * | normal | ||
) | const |
|
inline |
intersection checking between one shape and a triangle with transformation
References cached_guess, hpp::fcl::details::EPA::depth, hpp::fcl::details::GJK::distance, enable_cached_guess, epa_max_face_num, epa_max_iterations, epa_max_vertex_num, epa_tolerance, hpp::fcl::details::GJK::evaluate(), hpp::fcl::details::EPA::evaluate(), hpp::fcl::details::GJK::Failed, hpp::fcl::details::GJK::getClosestPoints(), hpp::fcl::details::EPA::getClosestPoints(), hpp::fcl::details::GJK::getGuessFromSimplex(), hpp::fcl::Transform3f::getRotation(), gjk_max_iterations, gjk_tolerance, hpp::fcl::details::GJK::hasPenetrationInformation(), hpp::fcl::details::GJK::Inside, hpp::fcl::Transform3f::inverseTimes(), hpp::fcl::details::EPA::normal, hpp::fcl::details::EPA::OutOfFaces, hpp::fcl::details::EPA::OutOfVertices, hpp::fcl::details::MinkowskiDiff::set(), hpp::fcl::Transform3f::transform(), hpp::fcl::details::GJK::Valid, and hpp::fcl::details::EPA::Valid.
Referenced by shapeIntersect().
bool hpp::fcl::GJKSolver::shapeTriangleInteraction | ( | const Sphere & | s, |
const Transform3f & | tf1, | ||
const Vec3f & | P1, | ||
const Vec3f & | P2, | ||
const Vec3f & | P3, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
Fast implementation for Sphere -Triangle interaction.
bool hpp::fcl::GJKSolver::shapeTriangleInteraction | ( | const Halfspace & | s, |
const Transform3f & | tf1, | ||
const Vec3f & | P1, | ||
const Vec3f & | P2, | ||
const Vec3f & | P3, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
Fast implementation for Halfspace -Triangle interaction.
bool hpp::fcl::GJKSolver::shapeTriangleInteraction | ( | const Plane & | s, |
const Transform3f & | tf1, | ||
const Vec3f & | P1, | ||
const Vec3f & | P2, | ||
const Vec3f & | P3, | ||
const Transform3f & | tf2, | ||
FCL_REAL & | distance, | ||
Vec3f & | p1, | ||
Vec3f & | p2, | ||
Vec3f & | normal | ||
) | const |
Fast implementation for Plane -Triangle interaction.
|
mutable |
smart guess
Referenced by getCachedGuess(), GJKSolver(), setCachedGuess(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
|
mutable |
Whether smart guess can be provided.
Referenced by enableCachedGuess(), GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
unsigned int hpp::fcl::GJKSolver::epa_max_face_num |
maximum number of simplex face used in EPA algorithm
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
unsigned int hpp::fcl::GJKSolver::epa_max_iterations |
maximum number of iterations used for EPA iterations
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
unsigned int hpp::fcl::GJKSolver::epa_max_vertex_num |
maximum number of simplex vertex used in EPA algorithm
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
FCL_REAL hpp::fcl::GJKSolver::epa_tolerance |
the threshold used in EPA to stop iteration
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
FCL_REAL hpp::fcl::GJKSolver::gjk_max_iterations |
maximum number of iterations used for GJK iterations
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().
FCL_REAL hpp::fcl::GJKSolver::gjk_tolerance |
the threshold used in GJK to stop iteration
Referenced by GJKSolver(), shapeDistance(), shapeIntersect(), and shapeTriangleInteraction().