Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
g
i
j
l
m
n
p
q
r
s
t
u
v
x
y
z
Enumerations
Enumerator
a
b
c
e
f
g
j
l
m
o
p
r
s
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
d
f
i
l
m
n
o
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
a
c
d
g
j
m
p
r
s
t
v
Enumerator
Macros
_
a
b
d
e
f
h
i
j
k
m
o
p
q
r
s
v
Examples
include
pinocchio
algorithm
constraints
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
8
#include "
pinocchio/algorithm/constraints/fwd.hpp
"
9
#include "
pinocchio/algorithm/constraints/constraint-model-base.hpp
"
10
#include "
pinocchio/algorithm/constraints/constraint-data-generic.hpp
"
11
#include "
pinocchio/algorithm/constraints/visitors/constraint-model-visitor.hpp
"
12
13
namespace
pinocchio
14
{
15
16
template
<
17
typename
_Scalar,
18
int
_Options,
19
template
<
typename
S,
int
O>
class
ConstraintCollectionTpl>
20
struct
traits
<
ConstraintModelTpl
<_Scalar, _Options,
ConstraintCollectionTpl
>>
21
{
22
typedef
_Scalar
Scalar
;
23
enum
24
{
25
Options
= _Options
26
};
27
typedef
ConstraintDataTpl<Scalar, Options, ConstraintCollectionTpl>
ConstraintData
;
28
};
29
30
template
<
31
typename
_Scalar,
32
int
_Options,
33
template
<
typename
S,
int
O>
class
ConstraintCollectionTpl
>
34
struct
ConstraintModelTpl
35
:
ConstraintModelBase
<ConstraintModelTpl<_Scalar, _Options, ConstraintCollectionTpl>>
36
,
ConstraintCollectionTpl
<_Scalar, _Options>
::ConstraintModelVariant
37
{
38
typedef
_Scalar
Scalar
;
39
enum
40
{
41
Options
= _Options
42
};
43
44
typedef
ConstraintModelBase<ConstraintModelTpl<_Scalar, _Options, ConstraintCollectionTpl>
>
45
Base
;
46
typedef
ConstraintDataTpl<Scalar, Options, ConstraintCollectionTpl>
ConstraintData
;
47
typedef
ConstraintCollectionTpl<Scalar, Options>
ConstraintCollection
;
48
typedef
typename
ConstraintCollection::ConstraintDataVariant
ConstraintDataVariant
;
49
typedef
typename
ConstraintCollection::ConstraintModelVariant
ConstraintModelVariant
;
50
51
ConstraintModelTpl
()
52
:
ConstraintModelVariant
()
53
{
54
}
55
56
ConstraintModelTpl
(
const
ConstraintModelVariant
& cmodel_variant)
57
:
ConstraintModelVariant
(cmodel_variant)
58
{
59
}
60
61
template
<
typename
Contra
int
ModelDerived>
62
ConstraintModelTpl
(
const
ConstraintModelBase<ContraintModelDerived>
&
cmodel
)
63
:
ConstraintModelVariant
((
ConstraintModelVariant
)
cmodel
.
derived
())
64
{
65
BOOST_MPL_ASSERT(
66
(boost::mpl::contains<typename ConstraintModelVariant::types, ContraintModelDerived>));
67
}
68
69
ConstraintData
createData
()
const
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
pinocchio::ConstraintModelTpl::Options
@ Options
Definition:
constraint-model-generic.hpp:41
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
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:33
pinocchio
Author(s):
autogenerated on Tue Apr 22 2025 02:41:15