38 #ifndef FCL_CCD_INTERPMOTION_H 39 #define FCL_CCD_INTERPMOTION_H 43 #include "fcl/math/geometry.h" 44 #include "fcl/math/motion/motion_base.h" 45 #include "fcl/math/motion/bv_motion_bound_visitor.h" 46 #include "fcl/math/motion/triangle_motion_bound_visitor.h" 58 class InterpMotion :
public MotionBase<S>
66 const Matrix3<S>& R2,
const Vector3<S>& T2);
68 InterpMotion(
const Transform3<S>& tf1_,
const Transform3<S>& tf2_);
72 const Matrix3<S>& R2,
const Vector3<S>& T2,
75 InterpMotion(
const Transform3<S>& tf1_,
const Transform3<S>& tf2_,
const Vector3<S>& O);
90 void getTaylorModel(TMatrix3<S>& tm, TVector3<S>& tv)
const;
94 void computeVelocity();
96 Quaternion<S> deltaRotation(S dt)
const;
98 Quaternion<S> absoluteRotation(S dt)
const;
107 mutable Transform3<S>
tf;
122 const Vector3<S>& getReferencePoint()
const;
124 const Vector3<S>& getAngularAxis()
const;
126 S getAngularVelocity()
const;
128 const Vector3<S>& getLinearVelocity()
const;
130 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
135 #include "fcl/math/motion/interp_motion-inl.h" Main namespace.
Definition: broadphase_bruteforce-inl.h:45
void getCurrentTransform(Transform3< S > &tf_) const
Get the rotation and translation in current step.
Definition: interp_motion-inl.h:156
InterpMotion()
Default transformations are all identities.
Definition: interp_motion-inl.h:52
Transform3< S > tf
The transformation at current time t.
Definition: interp_motion.h:107
Transform3< S > tf1
The transformation at time 0.
Definition: interp_motion.h:101
Vector3< S > linear_vel
Linear velocity.
Definition: interp_motion.h:110
S computeMotionBound(const BVMotionBoundVisitor< S > &mb_visitor) const
Compute the motion bound for a bounding volume along a given direction n, which is defined in the vis...
Definition: interp_motion-inl.h:142
S angular_vel
Angular speed.
Definition: interp_motion.h:113
bool integrate(double dt) const
Integrate the motion from 0 to dt We compute the current transformation from zero point instead of fr...
Definition: interp_motion-inl.h:130
Vector3< S > angular_axis
Angular velocity axis.
Definition: interp_motion.h:116
Vector3< S > reference_p
Reference point for the motion (in the object's local frame)
Definition: interp_motion.h:119
Transform3< S > tf2
The transformation at time 1.
Definition: interp_motion.h:104