38 #ifndef FCL_CCD_TRANSLATIONMOTION_H 39 #define FCL_CCD_TRANSLATIONMOTION_H 41 #include "fcl/math/motion/motion_base.h" 42 #include "fcl/math/motion/bv_motion_bound_visitor.h" 43 #include "fcl/math/motion/triangle_motion_bound_visitor.h" 49 class TranslationMotion :
public MotionBase<S>
56 const Matrix3<S>& R,
const Vector3<S>& T1,
const Vector3<S>& T2);
61 const BVMotionBoundVisitor<S>& mb_visitor)
const override;
64 const TriangleMotionBoundVisitor<S>& mb_visitor)
const override;
66 void getCurrentTransform(Transform3<S>& tf_)
const override;
68 void getTaylorModel(TMatrix3<S>& tm, TVector3<S>& tv)
const override;
70 Vector3<S> getVelocity()
const;
75 Vector3<S> trans_start, trans_range;
77 mutable Transform3<S> tf;
80 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
83 using TranslationMotionf = TranslationMotion<float>;
84 using TranslationMotiond = TranslationMotion<double>;
88 #include "fcl/math/motion/translation_motion-inl.h" Main namespace.
Definition: broadphase_bruteforce-inl.h:45
TranslationMotion(const Transform3< S > &tf1, const Transform3< S > &tf2)
Construct motion from intial and goal transform.
Definition: translation_motion-inl.h:52
bool integrate(S dt) const override
Integrate the motion from 0 to dt.
Definition: translation_motion-inl.h:78
S computeMotionBound(const BVMotionBoundVisitor< S > &mb_visitor) const override
Compute the motion bound for a bounding volume, given the closest direction n between two query objec...
Definition: translation_motion-inl.h:91