6 #ifndef __pinocchio_spatial_motion_zero_hpp__
7 #define __pinocchio_spatial_motion_zero_hpp__
12 template<
typename Scalar,
int Options>
18 template<
typename Scalar,
int Options,
typename MotionDerived>
24 template<
typename _Scalar,
int _Options>
33 typedef _Scalar Scalar;
34 typedef Eigen::Matrix<Scalar, 3, 1, Options> Vector3;
35 typedef Eigen::Matrix<Scalar, 6, 1, Options> Vector6;
36 typedef Eigen::Matrix<Scalar, 3, 3, Options> Matrix3;
37 typedef Eigen::Matrix<Scalar, 4, 4, Options> Matrix4;
38 typedef Eigen::Matrix<Scalar, 6, 6, Options> Matrix6;
39 typedef typename PINOCCHIO_EIGEN_REF_CONST_TYPE(Vector6) ToVectorConstReturnType;
40 typedef typename PINOCCHIO_EIGEN_REF_TYPE(Vector6) ToVectorReturnType;
41 typedef Matrix6 ActionMatrixType;
42 typedef Matrix4 HomogeneousMatrixType;
43 typedef Vector3 AngularType;
44 typedef const Vector3 ConstAngularType;
45 typedef Vector3 LinearType;
46 typedef const Vector3 ConstLinearType;
52 template<
typename Scalar,
int Options>
58 static PlainReturnType plain()
60 return MotionPlain::Zero();
66 return other.linear().isZero(0) && other.angular().isZero(0);
91 template<
typename S2,
int O2,
typename D2>
97 template<
typename S2,
int O2>
103 template<
typename S2,
int O2,
typename D2>
109 template<
typename S2,
int O2>
117 template<
typename M1,
typename Scalar,
int Options>
123 template<
typename Scalar,
int Options,
typename M1>
124 inline const M1 & operator+(
const MotionZeroTpl<Scalar, Options> &,
const MotionBase<M1> & v)
Main pinocchio namespace.
Return type of the ation of a Motion onto an object of type D.
Common traits structure to fully define base classes for CRTP.