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
bindings
python
multibody
joint
joint-model.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2015-2022 CNRS INRIA
3
//
4
5
#ifndef __pinocchio_python_multibody_joint_joint_model_hpp__
6
#define __pinocchio_python_multibody_joint_joint_model_hpp__
7
8
#include "
pinocchio/multibody/joint/joint-generic.hpp
"
9
#include "
pinocchio/bindings/python/multibody/joint/joint-derived.hpp
"
10
#include "
pinocchio/bindings/python/utils/printable.hpp
"
11
12
namespace
pinocchio
13
{
14
namespace
python
15
{
16
namespace
bp
=
boost::python
;
17
18
template
<
typename
Jo
int
Model>
19
struct
ExtractJointModelVariantTypeVisitor
20
{
21
typedef
typename
JointModel::JointCollection
JointCollection
;
22
typedef
bp::object
result_type
;
23
24
template
<
typename
Jo
int
ModelDerived>
25
result_type
operator()
(
const
JointModelBase<JointModelDerived>
& jmodel)
const
26
{
27
bp::object obj(boost::ref(jmodel.
derived
()));
28
return
obj;
29
}
30
31
static
result_type
extract
(
const
JointModel
& jmodel)
32
{
33
return
boost::apply_visitor(
ExtractJointModelVariantTypeVisitor
(), jmodel);
34
}
35
};
36
37
template
<
typename
Jo
int
Model>
38
struct
JointModelPythonVisitor
39
{
40
41
static
void
expose
()
42
{
43
bp::class_<JointModel>(
"JointModel"
,
"Generic Joint Model"
, bp::no_init)
44
.def(bp::init<>(bp::arg(
"self"
),
"Default constructor"
))
45
.def(bp::init<const JointModel &>(bp::args(
"self"
,
"other"
),
"Copy constructor"
))
46
.def(
JointModelBasePythonVisitor<JointModel>
())
47
.def(
PrintableVisitor<JointModel>
())
48
.def(
49
"extract"
,
ExtractJointModelVariantTypeVisitor<JointModel>::extract
, bp::arg(
"self"
),
50
"Returns a reference of the internal joint managed by the JointModel"
,
51
bp::with_custodian_and_ward_postcall<0, 1>());
52
}
53
};
54
55
}
// namespace python
56
}
// namespace pinocchio
57
58
#endif // ifndef __pinocchio_python_multibody_joint_joint_model_hpp__
boost::python
pinocchio::python::ExtractJointModelVariantTypeVisitor::operator()
result_type operator()(const JointModelBase< JointModelDerived > &jmodel) const
Definition:
joint-model.hpp:25
pinocchio::JointModelBase
Definition:
joint-model-base.hpp:78
pinocchio::python::JointModelBasePythonVisitor
Definition:
joint-derived.hpp:21
pinocchio::python::ExtractJointModelVariantTypeVisitor::result_type
bp::object result_type
Definition:
joint-model.hpp:22
pinocchio::python::PrintableVisitor
Set the Python method str and repr to use the overloading operator<<.
Definition:
printable.hpp:21
joint-generic.hpp
python
pinocchio::JointModelTpl
Definition:
multibody/joint/fwd.hpp:169
pinocchio::python::JointModelPythonVisitor
Definition:
joint-model.hpp:38
pinocchio::python::ExtractJointModelVariantTypeVisitor
Definition:
joint-model.hpp:19
pinocchio::python::ExtractJointModelVariantTypeVisitor::JointCollection
JointModel::JointCollection JointCollection
Definition:
joint-model.hpp:21
joint-derived.hpp
printable.hpp
pinocchio::python::ExtractJointModelVariantTypeVisitor::extract
static result_type extract(const JointModel &jmodel)
Definition:
joint-model.hpp:31
pinocchio::python::JointModelPythonVisitor::expose
static void expose()
Definition:
joint-model.hpp:41
pinocchio::JointModelTpl::JointCollection
JointCollectionTpl< Scalar, Options > JointCollection
Definition:
joint-generic.hpp:273
pinocchio::JointModelBase::derived
JointModelDerived & derived()
Definition:
joint-model-base.hpp:85
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:33
pinocchio
Author(s):
autogenerated on Thu Apr 10 2025 02:42:19