context/generic.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022 INRIA
3 //
4 
5 #ifndef __pinocchio_context_generic_hpp__
6 #define __pinocchio_context_generic_hpp__
7 
8 #include <Eigen/Core>
10 
11 namespace pinocchio
12 {
13 
14  template<typename _Scalar, int _Options>
16  template<
17  typename _Scalar,
18  int _Options = 0,
19  template<typename S, int O> class JointCollectionTpl = JointCollectionDefaultTpl>
20  struct ModelTpl;
21  template<
22  typename _Scalar,
23  int _Options = 0,
24  template<typename S, int O> class JointCollectionTpl = JointCollectionDefaultTpl>
25  struct DataTpl;
26  template<typename _Scalar, int _Options = 0>
27  class MotionTpl;
28  template<typename _Scalar, int _Options = 0>
29  class ForceTpl;
30  template<typename _Scalar, int _Options>
32  template<typename _Scalar, int _Options>
34 
35  template<typename _Scalar>
37  template<typename _Scalar>
39 
40  namespace context
41  {
43  enum
44  {
45  Options = 0
46  };
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;
55 
58 
61 
64 
66  CoulombFrictionConeVector;
68  DualCoulombFrictionConeVector;
70  RigidConstraintModelVector;
72  RigidConstraintDataVector;
73 
76 
77  } // namespace context
78 
79  // Read and write
80  template<typename Derived>
81  Eigen::Ref<typename Derived::PlainObject> make_ref(const Eigen::MatrixBase<Derived> & x)
82  {
83  return Eigen::Ref<typename Derived::PlainObject>(x.const_cast_derived());
84  }
85 
86  // Read-only
87  template<typename M>
88  auto make_const_ref(Eigen::MatrixBase<M> const & m) -> Eigen::Ref<typename M::PlainObject const>
89  {
90  return m;
91  }
92 
93 } // namespace pinocchio
94 
95 #endif // #ifndef __pinocchio_context_generic_hpp__
pinocchio::context::Model
ModelTpl< Scalar, Options > Model
Definition: context/generic.hpp:56
pinocchio::context::RigidConstraintData
RigidConstraintDataTpl< Scalar, Options > RigidConstraintData
Definition: context/generic.hpp:63
test-cpp2pybind11.m
m
Definition: test-cpp2pybind11.py:25
PINOCCHIO_SCALAR_TYPE
#define PINOCCHIO_SCALAR_TYPE
Definition: context/casadi.hpp:53
pinocchio::DataTpl
Definition: context/generic.hpp:25
pinocchio::CoulombFrictionConeTpl
&#160;
Definition: algorithm/constraints/coulomb-friction-cone.hpp:20
pinocchio::make_const_ref
auto make_const_ref(Eigen::MatrixBase< M > const &m) -> Eigen::Ref< typename M::PlainObject const >
Definition: context/generic.hpp:88
pinocchio::context::Motion
MotionTpl< Scalar, Options > Motion
Definition: context/generic.hpp:74
aligned-vector.hpp
pinocchio::DualCoulombFrictionConeTpl
&#160;
Definition: algorithm/constraints/coulomb-friction-cone.hpp:16
pinocchio::context::RowMatrixXs
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor|Options > RowMatrixXs
Definition: context/generic.hpp:51
pinocchio::context::Force
ForceTpl< Scalar, Options > Force
Definition: context/generic.hpp:75
pinocchio::context::DualCoulombFrictionCone
DualCoulombFrictionConeTpl< Scalar > DualCoulombFrictionCone
Definition: context/generic.hpp:60
pinocchio::context::VectorXs
Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > VectorXs
Definition: context/generic.hpp:47
pinocchio::RigidConstraintModelTpl
Definition: algorithm/constraints/fwd.hpp:14
pinocchio::context::MatrixXs
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Options > MatrixXs
Definition: context/generic.hpp:49
pinocchio::context::BodyRegressorType
Eigen::Matrix< Scalar, 6, 10, Options > BodyRegressorType
Definition: context/generic.hpp:54
pinocchio::RigidConstraintDataTpl
Definition: algorithm/constraints/fwd.hpp:16
pinocchio::ForceTpl
Definition: context/casadi.hpp:25
x
x
pinocchio::context::Vector3
Eigen::Matrix< Scalar, 3, 1, Options > Vector3
Definition: context/generic.hpp:53
pinocchio::context::RigidConstraintModel
RigidConstraintModelTpl< Scalar, Options > RigidConstraintModel
Definition: context/generic.hpp:62
pinocchio::context::Options
@ Options
Definition: context/generic.hpp:45
pinocchio::context::CoulombFrictionCone
CoulombFrictionConeTpl< Scalar > CoulombFrictionCone
Definition: context/generic.hpp:59
pinocchio::context::PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR
typedef PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(CoulombFrictionCone) CoulombFrictionConeVector
pinocchio::context::Matrix6xs
Eigen::Matrix< Scalar, 6, Eigen::Dynamic, Options > Matrix6xs
Definition: context/generic.hpp:48
pinocchio::context::Data
DataTpl< Scalar, Options > Data
Definition: context/generic.hpp:57
pinocchio::make_ref
Eigen::Ref< typename Derived::PlainObject > make_ref(const Eigen::MatrixBase< Derived > &x)
Definition: context/generic.hpp:81
pinocchio::JointCollectionDefaultTpl
Definition: context/generic.hpp:15
pinocchio::MotionTpl
Definition: context/casadi.hpp:27
pinocchio::ModelTpl
Definition: context/generic.hpp:20
pinocchio::context::Matrix3x
Eigen::Matrix< Scalar, 3, Eigen::Dynamic, Options > Matrix3x
Definition: context/generic.hpp:52
pinocchio::context::Scalar
PINOCCHIO_SCALAR_TYPE Scalar
Definition: context/generic.hpp:42
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09