delassus.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020-2024 INRIA
3 // Copyright (c) 2023 KU Leuven
4 //
5 
6 #ifndef __pinocchio_algorithm_contact_delassus_hpp__
7 #define __pinocchio_algorithm_contact_delassus_hpp__
8 
10 
11 namespace pinocchio
12 {
13 
14  template<
15  typename Scalar,
16  int Options,
17  template<typename, int> class JointCollectionTpl,
18  class Allocator>
19  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
20  inline void initPvDelassus(
21  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
22  DataTpl<Scalar, Options, JointCollectionTpl> & data,
23  const std::vector<RigidConstraintModelTpl<Scalar, Options>, Allocator> & contact_models);
24 
43  template<
44  typename Scalar,
45  int Options,
46  template<typename, int> class JointCollectionTpl,
47  typename ConfigVectorType,
48  class ModelAllocator,
49  class DataAllocator,
50  typename MatrixType>
51  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
53  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
54  DataTpl<Scalar, Options, JointCollectionTpl> & data,
55  const Eigen::MatrixBase<ConfigVectorType> & q,
56  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ModelAllocator> & contact_models,
57  std::vector<RigidConstraintDataTpl<Scalar, Options>, DataAllocator> & contact_data,
58  const Eigen::MatrixBase<MatrixType> & delassus,
59  const Scalar mu = 0);
60 
84  template<
85  typename Scalar,
86  int Options,
87  template<typename, int> class JointCollectionTpl,
88  typename ConfigVectorType,
89  class ModelAllocator,
90  class DataAllocator,
91  typename MatrixType>
92  PINOCCHIO_UNSUPPORTED_MESSAGE("The API will change towards more flexibility")
94  const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
95  DataTpl<Scalar, Options, JointCollectionTpl> & data,
96  const Eigen::MatrixBase<ConfigVectorType> & q,
97  const std::vector<RigidConstraintModelTpl<Scalar, Options>, ModelAllocator> & contact_models,
98  std::vector<RigidConstraintDataTpl<Scalar, Options>, DataAllocator> & contact_data,
99  const Eigen::MatrixBase<MatrixType> & damped_delassus_inverse,
100  const Scalar mu,
101  const bool scaled = false,
102  const bool Pv = true);
103 
104 } // namespace pinocchio
105 
106 #include "pinocchio/algorithm/delassus.hxx"
107 
108 #endif // ifndef __pinocchio_algorithm_contact_delassus_hpp__
pinocchio::computeDampedDelassusMatrixInverse
void computeDampedDelassusMatrixInverse(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const std::vector< RigidConstraintModelTpl< Scalar, Options >, ModelAllocator > &contact_models, std::vector< RigidConstraintDataTpl< Scalar, Options >, DataAllocator > &contact_data, const Eigen::MatrixBase< MatrixType > &damped_delassus_inverse, const Scalar mu, const bool scaled=false, const bool Pv=true)
Computes the inverse of the Delassus matrix associated to a set of given constraints.
Eigen
pinocchio::computeDelassusMatrix
void computeDelassusMatrix(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const std::vector< RigidConstraintModelTpl< Scalar, Options >, ModelAllocator > &contact_models, std::vector< RigidConstraintDataTpl< Scalar, Options >, DataAllocator > &contact_data, const Eigen::MatrixBase< MatrixType > &delassus, const Scalar mu=0)
Computes the Delassus matrix associated to a set of given constraints.
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
pinocchio::initPvDelassus
void initPvDelassus(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const std::vector< RigidConstraintModelTpl< Scalar, Options >, Allocator > &contact_models)
pinocchio::q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
Definition: joint-configuration.hpp:1083
mu
double mu
Definition: delassus.cpp:58
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::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1082
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:43