Go to the documentation of this file.
39 #ifndef COAL_MINKOWSKI_DIFFERENCE_H
40 #define COAL_MINKOWSKI_DIFFERENCE_H
54 typedef Eigen::Array<CoalScalar, 1, 2>
Array2d;
88 MinkowskiDiff() : normalize_support_direction(false), getSupportFunc(NULL) {}
116 template <
int _SupportOptions = SupportOptions::NoSweptSphere>
128 template <
int _SupportOptions = SupportOptions::NoSweptSphere>
141 template <
int _SupportOptions = SupportOptions::NoSweptSphere>
143 return getSupport<_SupportOptions>(shapes[0], dir, hint);
158 template <
int _SupportOptions = SupportOptions::NoSweptSphere>
161 return oR1 * getSupport<_SupportOptions>(shapes[1], oR1.transpose() * dir, hint) + ot1;
176 assert(getSupportFunc != NULL);
177 getSupportFunc(*
this, dir, supp0, supp1, hint,
186 #endif // COAL_MINKOWSKI_DIFFERENCE_H
Eigen::Matrix< CoalScalar, 3, 1 > Vec3s
bool normalize_support_direction
Wether or not to use the normalize heuristic in the GJK Nesterov acceleration. This setting is only a...
Eigen::Array< CoalScalar, 1, 2 > Array2d
Stores temporary data for the computation of support points.
Minkowski difference class of two shapes.
void support(const Vec3s &dir, Vec3s &supp0, Vec3s &supp1, support_func_guess_t &hint) const
Support function for the pair of shapes. This method assumes set has already been called.
Vec3s support1(const Vec3s &dir, int &hint) const
support function for shape1. The output vector is expressed in the local frame of shape0....
GetSupportFunction getSupportFunc
Vec3s support0(const Vec3s &dir, int &hint) const
support function for shape0. The output vector is expressed in the local frame of shape0.
Array2d swept_sphere_radius
The radii of the sphere swepted around each shape of the Minkowski difference. The 2 values correspon...
Eigen::Vector2i support_func_guess_t
Base class for all basic geometric shapes.
Vec3s ot1
translation from shape1 to shape0 such that .
Eigen::Matrix< CoalScalar, 3, 3 > Matrix3s
Matrix3s oR1
rotation from shape1 to shape0 such that .
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58