45 #include "../narrowphase/details.h" 56 const Box& s1 =
static_cast<const Box&
>(*o1);
59 result.nearest_points[0], result.nearest_points[1],
65 return result.min_distance;
74 const Box& s2 =
static_cast<const Box&
>(*o2);
76 result.nearest_points[1], result.nearest_points[0],
82 result.normal = -result.normal;
83 return result.min_distance;
request to the distance computation
FCL_REAL ShapeShapeDistance< Sphere, Box >(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *, const DistanceRequest &, DistanceResult &result)
Center at zero point, axis aligned box.
FCL_REAL ShapeShapeDistance< Box, Sphere >(const CollisionGeometry *o1, const Transform3f &tf1, const CollisionGeometry *o2, const Transform3f &tf2, const GJKSolver *, const DistanceRequest &, DistanceResult &result)
Center at zero point sphere.
collision and distance solver based on GJK algorithm implemented in fcl (rewritten the code from the ...
bool boxSphereDistance(const Box &b, const Transform3f &tfb, const Sphere &s, const Transform3f &tfs, FCL_REAL &dist, Vec3f &pb, Vec3f &ps, Vec3f &normal)
The geometry for the object for collision or distance computation.