6 #ifndef __pinocchio_motion_hpp__ 7 #define __pinocchio_motion_hpp__ 9 #include "pinocchio/spatial/fwd.hpp" 10 #include "pinocchio/macros.hpp" 11 #include "pinocchio/spatial/se3.hpp" 13 #define MOTION_TYPEDEF_GENERIC(Derived,TYPENAME) \ 14 typedef TYPENAME traits<Derived>::Scalar Scalar; \ 15 typedef TYPENAME traits<Derived>::Vector3 Vector3; \ 16 typedef TYPENAME traits<Derived>::Vector6 Vector6; \ 17 typedef TYPENAME traits<Derived>::Matrix4 Matrix4; \ 18 typedef TYPENAME traits<Derived>::Matrix6 Matrix6; \ 19 typedef TYPENAME traits<Derived>::ToVectorReturnType ToVectorReturnType; \ 20 typedef TYPENAME traits<Derived>::ToVectorConstReturnType ToVectorConstReturnType; \ 21 typedef TYPENAME traits<Derived>::AngularType AngularType; \ 22 typedef TYPENAME traits<Derived>::LinearType LinearType; \ 23 typedef TYPENAME traits<Derived>::ConstAngularType ConstAngularType; \ 24 typedef TYPENAME traits<Derived>::ConstLinearType ConstLinearType; \ 25 typedef TYPENAME traits<Derived>::ActionMatrixType ActionMatrixType; \ 26 typedef TYPENAME traits<Derived>::HomogeneousMatrixType HomogeneousMatrixType; \ 27 typedef TYPENAME traits<Derived>::MotionPlain MotionPlain; \ 28 typedef TYPENAME traits<Derived>::PlainReturnType PlainReturnType; \ 30 LINEAR = traits<Derived>::LINEAR, \ 31 ANGULAR = traits<Derived>::ANGULAR \ 34 #define MOTION_TYPEDEF_TPL(Derived) \ 35 MOTION_TYPEDEF_GENERIC(Derived,typename) 37 #define MOTION_TYPEDEF(Derived) \ 38 MOTION_TYPEDEF_GENERIC(Derived,PINOCCHIO_MACRO_EMPTY_ARG) 45 template<
typename D,
typename MotionDerived>
50 #include "pinocchio/spatial/motion-base.hpp" 51 #include "pinocchio/spatial/motion-dense.hpp" 52 #include "pinocchio/spatial/motion-tpl.hpp" 53 #include "pinocchio/spatial/motion-ref.hpp" 54 #include "pinocchio/spatial/motion-zero.hpp" 56 #endif // ifndef __pinocchio_motion_hpp__ Return type of the ation of a Motion onto an object of type D.
Main pinocchio namespace.