38 #ifndef FCL_CCD_TRANSLATIONMOTION_INL_H 39 #define FCL_CCD_TRANSLATIONMOTION_INL_H 41 #include "fcl/math/motion/translation_motion.h" 48 class TranslationMotion<double>;
53 const Transform3<S>& tf1,
const Transform3<S>& tf2)
56 trans_start(tf1.translation()),
57 trans_range(tf2.translation() - tf1.translation()),
66 const Matrix3<S>& R,
const Vector3<S>& T1,
const Vector3<S>& T2)
71 trans_range = T2 - T1;
73 tf.translation() = trans_start;
83 tf.linear() = rot.toRotationMatrix();
84 tf.translation() = trans_start + trans_range * dt;
94 return mb_visitor.visit(*
this);
102 return mb_visitor.visit(*
this);
106 template <
typename S>
113 template <
typename S>
121 template <
typename S>
Definition: motion_base.h:52
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
Definition: bv_motion_bound_visitor.h:57
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
Definition: bv_motion_bound_visitor.h:45
Compute the motion bound for a bounding volume, given the closest direction n between two query objec...
Definition: bv_motion_bound_visitor.h:62
Definition: taylor_matrix.h:48
Definition: taylor_vector.h:48