38 #ifndef FCL_CCD_INTERPMOTION_INL_H
39 #define FCL_CCD_INTERPMOTION_INL_H
73 tf1.translation() = T1;
76 tf2.translation() = T2;
88 :
MotionBase<S>(), tf1(tf1_), tf2(tf2_), tf(tf1)
108 tf1.translation() = T1;
111 tf2.translation() = T2;
120 template <
typename S>
123 :
MotionBase<S>(), tf1(tf1_), tf2(tf2_), tf(tf1), reference_p(O)
129 template <
typename S>
134 tf.linear() = absoluteRotation(dt).toRotationMatrix();
135 tf.translation() = linear_vel * dt + tf1 * reference_p - tf.linear() * reference_p;
141 template <
typename S>
144 return mb_visitor.
visit(*
this);
148 template <
typename S>
151 return mb_visitor.
visit(*
this);
155 template <
typename S>
162 template <
typename S>
166 hat(hat_angular_axis, angular_axis);
174 - (hat_angular_axis * hat_angular_axis).eval() * (cos_model - 1)
177 TaylorModel<S> a(this->getTimeInterval()), b(this->getTimeInterval()), c(this->getTimeInterval());
183 tm = delta_R * tf1.linear().eval();
184 tv = tf1 * reference_p
186 - delta_R * (tf1.linear() * reference_p).eval();
190 template <
typename S>
193 linear_vel = tf2 * reference_p - tf1 * reference_p;
195 const AngleAxis<S> aa(tf2.linear() * tf1.linear().transpose());
196 angular_axis = aa.axis();
197 angular_vel = aa.angle();
201 angular_vel = -angular_vel;
202 angular_axis = -angular_axis;
207 template <
typename S>
214 template <
typename S>
222 template <
typename S>
229 template <
typename S>
236 template <
typename S>
243 template <
typename S>