6 #ifndef __pinocchio_spatial_fwd_hpp__ 7 #define __pinocchio_spatial_fwd_hpp__ 9 #include "pinocchio/fwd.hpp" 10 #include "pinocchio/macros.hpp" 15 template<
typename Scalar,
int Options=0>
struct SE3Tpl;
20 template<
typename Scalar,
int Options=0>
class MotionTpl;
23 template<
typename Derived>
class ForceBase;
25 template<
typename Vector6ArgType>
class ForceRef;
26 template<
typename Scalar,
int Options=0>
class ForceTpl;
28 template<
typename Scalar,
int Options=0>
class InertiaTpl;
48 #define SPATIAL_TYPEDEF_TEMPLATE_GENERIC(derived,TYPENAME) \ 49 typedef TYPENAME traits<derived>::Scalar Scalar; \ 50 typedef TYPENAME traits<derived>::Vector3 Vector3; \ 51 typedef TYPENAME traits<derived>::Vector4 Vector4; \ 52 typedef TYPENAME traits<derived>::Vector6 Vector6; \ 53 typedef TYPENAME traits<derived>::Matrix3 Matrix3; \ 54 typedef TYPENAME traits<derived>::Matrix4 Matrix4; \ 55 typedef TYPENAME traits<derived>::Matrix6 Matrix6; \ 56 typedef TYPENAME traits<derived>::Angular_t Angular_t; \ 57 typedef TYPENAME traits<derived>::Linear_t Linear_t; \ 58 typedef TYPENAME traits<derived>::ConstAngular_t ConstAngular_t; \ 59 typedef TYPENAME traits<derived>::ConstLinear_t ConstLinear_t; \ 60 typedef TYPENAME traits<derived>::ActionMatrix_t ActionMatrix_t; \ 61 typedef TYPENAME traits<derived>::Quaternion_t Quaternion_t; \ 62 typedef TYPENAME traits<derived>::SE3 SE3; \ 63 typedef TYPENAME traits<derived>::Force Force; \ 64 typedef TYPENAME traits<derived>::Motion Motion; \ 65 typedef TYPENAME traits<derived>::Symmetric3 Symmetric3; \ 67 LINEAR = traits<derived>::LINEAR, \ 68 ANGULAR = traits<derived>::ANGULAR \ 71 #define SPATIAL_TYPEDEF_TEMPLATE(derived) \ 72 SPATIAL_TYPEDEF_TEMPLATE_GENERIC(derived,typename) 74 #define SPATIAL_TYPEDEF_NO_TEMPLATE(derived) \ 75 SPATIAL_TYPEDEF_TEMPLATE_GENERIC(derived,PINOCCHIO_MACRO_EMPTY_ARG) 80 #endif // ifndef __pinocchio_spatial_fwd_hpp__
Base interface for forces representation.
Main pinocchio namespace.