5 #ifndef __pinocchio_context_generic_hpp__
6 #define __pinocchio_context_generic_hpp__
9 #include "pinocchio/container/aligned-vector.hpp"
14 template<
typename _Scalar,
int _Options>
15 struct JointCollectionDefaultTpl;
19 template<
typename S,
int O>
class JointCollectionTpl = JointCollectionDefaultTpl>
24 template<
typename S,
int O>
class JointCollectionTpl = JointCollectionDefaultTpl>
26 template<
typename _Scalar,
int _Options = 0>
28 template<
typename _Scalar,
int _Options = 0>
30 template<
typename _Scalar,
int _Options>
31 struct RigidConstraintModelTpl;
32 template<
typename _Scalar,
int _Options>
33 struct RigidConstraintDataTpl;
35 template<
typename _Scalar>
36 struct CoulombFrictionConeTpl;
37 template<
typename _Scalar>
38 struct DualCoulombFrictionConeTpl;
42 typedef PINOCCHIO_SCALAR_TYPE Scalar;
47 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1, Options> VectorXs;
48 typedef Eigen::Matrix<Scalar, 6, Eigen::Dynamic, Options> Matrix6xs;
49 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Options> MatrixXs;
50 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor | Options>
52 typedef Eigen::Matrix<Scalar, 3, Eigen::Dynamic, Options> Matrix3x;
53 typedef Eigen::Matrix<Scalar, 3, 1, Options> Vector3;
54 typedef Eigen::Matrix<Scalar, 6, 10, Options> BodyRegressorType;
56 typedef ModelTpl<Scalar, Options> Model;
57 typedef DataTpl<Scalar, Options> Data;
59 typedef CoulombFrictionConeTpl<Scalar> CoulombFrictionCone;
60 typedef DualCoulombFrictionConeTpl<Scalar> DualCoulombFrictionCone;
62 typedef RigidConstraintModelTpl<Scalar, Options> RigidConstraintModel;
63 typedef RigidConstraintDataTpl<Scalar, Options> RigidConstraintData;
65 typedef PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(CoulombFrictionCone)
66 CoulombFrictionConeVector;
67 typedef PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(DualCoulombFrictionCone)
68 DualCoulombFrictionConeVector;
69 typedef PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(RigidConstraintModel)
70 RigidConstraintModelVector;
71 typedef PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(RigidConstraintData)
72 RigidConstraintDataVector;
74 typedef MotionTpl<Scalar, Options> Motion;
75 typedef ForceTpl<Scalar, Options> Force;
80 template<
typename Derived>
81 Eigen::Ref<typename Derived::PlainObject> make_ref(
const Eigen::MatrixBase<Derived> & x)
83 return Eigen::Ref<typename Derived::PlainObject>(
x.const_cast_derived());
88 auto make_const_ref(Eigen::MatrixBase<M>
const & m) -> Eigen::Ref<typename M::PlainObject const>
Main pinocchio namespace.