5#ifndef __pinocchio_algorithm_constrained_dynamics_hpp__ 6#define __pinocchio_algorithm_constrained_dynamics_hpp__ 8#include "pinocchio/algorithm/contact-info.hpp" 10#include "pinocchio/algorithm/proximal.hpp" 32 template<
typename,
int>
class JointCollectionTpl,
82 template<typename,
int> class JointCollectionTpl,
83 typename ConfigVectorType,
84 typename TangentVectorType1,
85 typename TangentVectorType2,
86 class ConstraintModelAllocator,
87 class ConstraintDataAllocator>
93 const Eigen::MatrixBase<ConfigVectorType> & q,
94 const Eigen::MatrixBase<TangentVectorType1> & v,
95 const Eigen::MatrixBase<TangentVectorType2> & tau,
139 template<typename,
int> class JointCollectionTpl,
140 typename ConfigVectorType,
141 typename TangentVectorType1,
142 typename TangentVectorType2,
143 class ConstraintModelAllocator,
144 class ConstraintDataAllocator>
150 const Eigen::MatrixBase<ConfigVectorType> & q,
151 const Eigen::MatrixBase<TangentVectorType1> & v,
152 const Eigen::MatrixBase<TangentVectorType2> & tau,
158 return constraintDynamics(model, data, q, v, tau, contact_models, contact_datas, settings);
164 template<
typename,
int>
class JointCollectionTpl,
165 typename ConfigVectorType,
166 typename TangentVectorType1,
167 typename TangentVectorType2,
168 class ModelAllocator,
172 typename DataTpl<Scalar, Options, JointCollectionTpl>::TangentVectorType & contactABA(
173 const ModelTpl<Scalar, Options, JointCollectionTpl> & model,
174 DataTpl<Scalar, Options, JointCollectionTpl> & data,
175 const Eigen::MatrixBase<ConfigVectorType> & q,
176 const Eigen::MatrixBase<TangentVectorType1> & v,
177 const Eigen::MatrixBase<TangentVectorType2> & tau,
178 const std::vector<RigidConstraintModelTpl<Scalar, Options>, ModelAllocator> & contact_models,
179 std::vector<RigidConstraintDataTpl<Scalar, Options>, DataAllocator> & contact_data)
181 ProximalSettingsTpl<Scalar> settings = ProximalSettingsTpl<Scalar>();
183 model, data, q.derived(), v.derived(), tau.derived(), contact_models, contact_data, settings);
188#include "pinocchio/algorithm/constrained-dynamics.hxx" 190#if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION 191 #include "pinocchio/algorithm/constrained-dynamics.txx" Main pinocchio namespace.
void initConstraintDynamics(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const std::vector< RigidConstraintModelTpl< Scalar, Options >, Allocator > &contact_models)
Init the forward dynamics data according to the contact information contained in contact_models.
const DataTpl< Scalar, Options, JointCollectionTpl >::TangentVectorType & constraintDynamics(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const Eigen::MatrixBase< ConfigVectorType > &q, const Eigen::MatrixBase< TangentVectorType1 > &v, const Eigen::MatrixBase< TangentVectorType2 > &tau, const std::vector< RigidConstraintModelTpl< Scalar, Options >, ConstraintModelAllocator > &contact_models, std::vector< RigidConstraintDataTpl< Scalar, Options >, ConstraintDataAllocator > &contact_datas, ProximalSettingsTpl< Scalar > &settings)
Computes the forward dynamics with contact constraints according to a given list of contact informati...
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...
Structure containing all the settings parameters for the proximal algorithms.