constraint-model-generic.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2023 INRIA
3 //
4 
5 #ifndef __pinocchio_algorithm_constraint_model_generic_hpp__
6 #define __pinocchio_algorithm_constraint_model_generic_hpp__
7 
12 
13 namespace pinocchio
14 {
15 
16  template<
17  typename _Scalar,
18  int _Options,
19  template<typename S, int O> class ConstraintCollectionTpl>
21  {
22  typedef _Scalar Scalar;
23  enum
24  {
25  Options = _Options
26  };
28  };
29 
30  template<
31  typename _Scalar,
32  int _Options,
33  template<typename S, int O> class ConstraintCollectionTpl>
35  : ConstraintModelBase<ConstraintModelTpl<_Scalar, _Options, ConstraintCollectionTpl>>
37  {
38  typedef _Scalar Scalar;
39  enum
40  {
41  Options = _Options
42  };
43 
50 
53  {
54  }
55 
57  : ConstraintModelVariant(cmodel_variant)
58  {
59  }
60 
61  template<typename ContraintModelDerived>
64  {
65  BOOST_MPL_ASSERT(
66  (boost::mpl::contains<typename ConstraintModelVariant::types, ContraintModelDerived>));
67  }
68 
70  {
71  return ::pinocchio::createData<Scalar, Options, ConstraintCollectionTpl>(*this);
72  }
73  };
74 
75 } // namespace pinocchio
76 
77 #endif // ifndef __pinocchio_algorithm_constraint_model_generic_hpp__
pinocchio::ConstraintModelTpl::ConstraintModelTpl
ConstraintModelTpl()
Definition: constraint-model-generic.hpp:51
pinocchio::ConstraintCollectionTpl
Definition: algorithm/constraints/fwd.hpp:19
pinocchio::ConstraintModelTpl::Scalar
_Scalar Scalar
Definition: constraint-model-generic.hpp:38
pinocchio::ConstraintModelBase< ConstraintModelTpl< _Scalar, _Options, ConstraintCollectionTpl > >::derived
ConstraintModelTpl< _Scalar, _Options, ConstraintCollectionTpl > & derived()
Definition: constraint-model-base.hpp:28
pinocchio::traits< ConstraintModelTpl< _Scalar, _Options, ConstraintCollectionTpl > >::ConstraintData
ConstraintDataTpl< Scalar, Options, ConstraintCollectionTpl > ConstraintData
Definition: constraint-model-generic.hpp:27
pinocchio::ConstraintModelTpl::ConstraintModelVariant
ConstraintCollection::ConstraintModelVariant ConstraintModelVariant
Definition: constraint-model-generic.hpp:49
pinocchio::ConstraintCollectionTpl::ConstraintDataVariant
boost::variant< RigidConstraintData > ConstraintDataVariant
Definition: algorithm/constraints/fwd.hpp:31
pinocchio::Options
Options
Definition: joint-configuration.hpp:1082
contact-cholesky.cmodel
cmodel
Definition: contact-cholesky.py:25
pinocchio::ConstraintModelTpl::ConstraintDataVariant
ConstraintCollection::ConstraintDataVariant ConstraintDataVariant
Definition: constraint-model-generic.hpp:48
pinocchio::ConstraintModelTpl::createData
ConstraintData createData() const
Definition: constraint-model-generic.hpp:69
pinocchio::ConstraintDataTpl
Definition: constraint-data-generic.hpp:34
pinocchio::traits< ConstraintModelTpl< _Scalar, _Options, ConstraintCollectionTpl > >::Scalar
_Scalar Scalar
Definition: constraint-model-generic.hpp:22
constraint-model-visitor.hpp
pinocchio::ConstraintModelTpl::ConstraintModelTpl
ConstraintModelTpl(const ConstraintModelBase< ContraintModelDerived > &cmodel)
Definition: constraint-model-generic.hpp:62
pinocchio::ConstraintModelBase
Definition: constraint-model-base.hpp:15
pinocchio::ConstraintModelTpl::ConstraintData
ConstraintDataTpl< Scalar, Options, ConstraintCollectionTpl > ConstraintData
Definition: constraint-model-generic.hpp:46
pinocchio::ConstraintModelTpl
Definition: constraint-model-generic.hpp:34
pinocchio::ConstraintModelTpl::Options
@ Options
Definition: constraint-model-generic.hpp:41
fwd.hpp
pinocchio::ConstraintCollectionTpl::ConstraintModelVariant
boost::variant< RigidConstraintModel > ConstraintModelVariant
Definition: algorithm/constraints/fwd.hpp:30
constraint-model-base.hpp
pinocchio::ConstraintModelTpl::Base
ConstraintModelBase< ConstraintModelTpl< _Scalar, _Options, ConstraintCollectionTpl > > Base
Definition: constraint-model-generic.hpp:45
pinocchio::traits
Common traits structure to fully define base classes for CRTP.
Definition: fwd.hpp:71
constraint-data-generic.hpp
pinocchio::ConstraintModelTpl::ConstraintModelTpl
ConstraintModelTpl(const ConstraintModelVariant &cmodel_variant)
Definition: constraint-model-generic.hpp:56
pinocchio::ConstraintModelTpl::ConstraintCollection
ConstraintCollectionTpl< Scalar, Options > ConstraintCollection
Definition: constraint-model-generic.hpp:47
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


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