constrained-dynamics-derivatives.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020-2022 CNRS INRIA
3 //
4 
5 #ifndef __pinocchio_algorithm_constrained_dynamics_derivatives_hpp__
6 #define __pinocchio_algorithm_constrained_dynamics_derivatives_hpp__
7 
10 
11 namespace pinocchio
12 {
13 
14  template<
15  typename Scalar,
16  int Options,
17  template<typename, int> class JointCollectionTpl,
18  class ConstraintModelAllocator,
19  class ConstraintDataAllocator,
20  typename MatrixType1,
21  typename MatrixType2,
22  typename MatrixType3,
23  typename MatrixType4,
24  typename MatrixType5,
25  typename MatrixType6>
26  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
28  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
29  DataTpl<Scalar, Options, JointCollectionTpl> & data,
30  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ConstraintModelAllocator> &
32  std::vector<RigidConstraintDataTpl<Scalar, Options>, ConstraintDataAllocator> & contact_data,
33  const ProximalSettingsTpl<Scalar> & settings,
34  const Eigen::MatrixBase<MatrixType1> & ddq_partial_dq,
35  const Eigen::MatrixBase<MatrixType2> & ddq_partial_dv,
36  const Eigen::MatrixBase<MatrixType3> & ddq_partial_dtau,
37  const Eigen::MatrixBase<MatrixType4> & lambda_partial_dq,
38  const Eigen::MatrixBase<MatrixType5> & lambda_partial_dv,
39  const Eigen::MatrixBase<MatrixType6> & lambda_partial_dtau);
40 
41  template<
42  typename Scalar,
43  int Options,
44  template<typename, int> class JointCollectionTpl,
45  class ConstraintModelAllocator,
46  class ConstraintDataAllocator,
47  typename MatrixType1,
48  typename MatrixType2,
49  typename MatrixType3,
50  typename MatrixType4,
51  typename MatrixType5,
52  typename MatrixType6>
53  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
55  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
56  DataTpl<Scalar, Options, JointCollectionTpl> & data,
57  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ConstraintModelAllocator> &
59  std::vector<RigidConstraintDataTpl<Scalar, Options>, ConstraintDataAllocator> & contact_data,
60  const Eigen::MatrixBase<MatrixType1> & ddq_partial_dq,
61  const Eigen::MatrixBase<MatrixType2> & ddq_partial_dv,
62  const Eigen::MatrixBase<MatrixType3> & ddq_partial_dtau,
63  const Eigen::MatrixBase<MatrixType4> & lambda_partial_dq,
64  const Eigen::MatrixBase<MatrixType5> & lambda_partial_dv,
65  const Eigen::MatrixBase<MatrixType6> & lambda_partial_dtau)
66  {
69  model, data, contact_models, contact_data, settings, ddq_partial_dq.const_cast_derived(),
70  ddq_partial_dv.const_cast_derived(), ddq_partial_dtau.const_cast_derived(),
71  lambda_partial_dq.const_cast_derived(), lambda_partial_dv.const_cast_derived(),
72  lambda_partial_dtau.const_cast_derived());
73  }
74 
75  template<
76  typename Scalar,
77  int Options,
78  template<typename, int> class JointCollectionTpl,
79  class ConstraintModelAllocator,
80  class ConstraintDataAllocator>
81  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
83  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
84  DataTpl<Scalar, Options, JointCollectionTpl> & data,
85  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ConstraintModelAllocator> &
87  std::vector<RigidConstraintDataTpl<Scalar, Options>, ConstraintDataAllocator> & contact_data,
88  const ProximalSettingsTpl<Scalar> & settings)
89  {
91  model, data, contact_models, contact_data, settings, data.ddq_dq, data.ddq_dv, data.ddq_dtau,
92  data.dlambda_dq, data.dlambda_dv, data.dlambda_dtau);
93  };
94 
95  template<
96  typename Scalar,
97  int Options,
98  template<typename, int> class JointCollectionTpl,
99  class ConstraintModelAllocator,
100  class ConstraintDataAllocator>
101  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
103  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
104  DataTpl<Scalar, Options, JointCollectionTpl> & data,
105  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ConstraintModelAllocator> &
107  std::vector<RigidConstraintDataTpl<Scalar, Options>, ConstraintDataAllocator> & contact_data)
108  {
111  };
112 
113 } // namespace pinocchio
114 
115 #include "pinocchio/algorithm/constrained-dynamics-derivatives.hxx"
116 
117 #if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
118  #include "pinocchio/algorithm/constrained-dynamics-derivatives.txx"
119 #endif // PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
120 
121 #endif // ifndef __pinocchio_algorithm_constrained_dynamics_derivatives_hpp__
Eigen
pinocchio::DataTpl
Definition: context/generic.hpp:25
pinocchio::computeConstraintDynamicsDerivatives
void computeConstraintDynamicsDerivatives(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const std::vector< RigidConstraintModelTpl< Scalar, Options >, ConstraintModelAllocator > &contact_models, std::vector< RigidConstraintDataTpl< Scalar, Options >, ConstraintDataAllocator > &contact_data, const ProximalSettingsTpl< Scalar > &settings, const Eigen::MatrixBase< MatrixType1 > &ddq_partial_dq, const Eigen::MatrixBase< MatrixType2 > &ddq_partial_dv, const Eigen::MatrixBase< MatrixType3 > &ddq_partial_dtau, const Eigen::MatrixBase< MatrixType4 > &lambda_partial_dq, const Eigen::MatrixBase< MatrixType5 > &lambda_partial_dv, const Eigen::MatrixBase< MatrixType6 > &lambda_partial_dtau)
pinocchio::Options
Options
Definition: joint-configuration.hpp:1082
contact-cholesky.contact_data
list contact_data
Definition: contact-cholesky.py:33
setup.data
data
Definition: cmake/cython/setup.in.py:48
pinocchio::PINOCCHIO_UNSUPPORTED_MESSAGE
struct PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility") ContactCholeskyDecompositionTpl
Contact Cholesky decomposition structure. This structure allows to compute in a efficient and parsimo...
Definition: algorithm/contact-cholesky.hpp:55
pinocchio::python::Scalar
context::Scalar Scalar
Definition: admm-solver.cpp:29
proximal.hpp
pinocchio::ProximalSettingsTpl
Structure containing all the settings parameters for the proximal algorithms.
Definition: algorithm/fwd.hpp:13
pinocchio::RigidConstraintModelTpl
Definition: algorithm/constraints/fwd.hpp:14
pinocchio::RigidConstraintDataTpl
Definition: algorithm/constraints/fwd.hpp:16
std
Definition: autodiff/casadi/utils/static-if.hpp:64
contact-cholesky.contact_models
list contact_models
Definition: contact-cholesky.py:22
contact-info.hpp
pinocchio::ModelTpl
Definition: context/generic.hpp:20
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:28