include
pinocchio
bindings
python
pybind11-all.hpp
Go to the documentation of this file.
1
// No header guard on purpose because the file can be included several times
2
// with different value for preprocessor variables SCALAR, OPTIONS and
3
// JOINT_MODEL_COLLECTION
4
15
16
#if !defined SCALAR or !defined OPTIONS or !defined JOINT_MODEL_COLLECTION
17
#error "You must define SCALAR, OPTIONS and JOINT_MODEL_COLLECTION before including this file."
18
#endif
19
20
#include <
pinocchio/bindings/python/pybind11.hpp
>
21
#include <
pinocchio/multibody/data.hpp
>
22
#include <
pinocchio/multibody/geometry.hpp
>
23
#include <
pinocchio/multibody/model.hpp
>
24
25
// Required to be able to pass argument with commas to macros
26
#define _SINGLE_ARG(...) __VA_ARGS__
27
#define _PINOCCHIO_PYBIND11_EXPOSE(type, name) \
28
PINOCCHIO_PYBIND11_ADD_ALL_CONVERT_TYPE(_SINGLE_ARG(type)) \
29
PINOCCHIO_PYBIND11_TYPE_CASTER(_SINGLE_ARG(type), name)
30
31
_PINOCCHIO_PYBIND11_EXPOSE
(
32
_SINGLE_ARG
(::
pinocchio::SE3Tpl<SCALAR, OPTIONS>
),
_
(
"pinocchio.pinocchio_pywrap.SE3"
))
33
_PINOCCHIO_PYBIND11_EXPOSE
(
34
_SINGLE_ARG
(::
pinocchio
::MotionTpl<
SCALAR
,
OPTIONS
>),
_
("
pinocchio
.pinocchio_pywrap.
Motion
"))
35
_PINOCCHIO_PYBIND11_EXPOSE
(
36
_SINGLE_ARG
(::
pinocchio
::ForceTpl<
SCALAR
,
OPTIONS
>),
_
("
pinocchio
.pinocchio_pywrap.
Force
"))
37
38
_PINOCCHIO_PYBIND11_EXPOSE
(
39
_SINGLE_ARG
(::
pinocchio
::ModelTpl<
SCALAR
,
OPTIONS
,
JOINT_MODEL_COLLECTION
>),
40
_
("
pinocchio
.pinocchio_pywrap.
Model
"))
41
_PINOCCHIO_PYBIND11_EXPOSE
(
42
_SINGLE_ARG
(::
pinocchio
::DataTpl<
SCALAR
,
OPTIONS
,
JOINT_MODEL_COLLECTION
>),
43
_
("
pinocchio
.pinocchio_pywrap.
Model
"))
44
45
_PINOCCHIO_PYBIND11_EXPOSE
(
46
::
pinocchio
::GeometryModel,
_
("
pinocchio
.pinocchio_pywrap.GeometryModel"))
47
// \todo this triggers a warning because GeometryData has
48
// a copy constructor and no operator=
49
// _PINOCCHIO_PYBIND11_EXPOSE(::pinocchio::GeometryData,
50
// _("pinocchio.pinocchio_pywrap.GeometryData"))
51
52
#undef _PINOCCHIO_PYBIND11_EXPOSE
53
#undef _SINGLE_ARG
_SINGLE_ARG
#define _SINGLE_ARG(...)
Definition:
pybind11-all.hpp:26
pinocchio::SE3Tpl
Definition:
context/casadi.hpp:29
model.hpp
pinocchio::python::context::Force
ForceTpl< Scalar, Options > Force
Definition:
bindings/python/context/generic.hpp:55
pinocchio::python::context::Motion
MotionTpl< Scalar, Options > Motion
Definition:
bindings/python/context/generic.hpp:54
pinocchio::python::context::Model
ModelTpl< Scalar, Options > Model
Definition:
bindings/python/context/generic.hpp:63
OPTIONS
#define OPTIONS
Definition:
cpp2pybind11.cpp:9
data.hpp
geometry.hpp
inverse-dynamics._
_
Definition:
inverse-dynamics.py:22
SCALAR
#define SCALAR
Definition:
cpp2pybind11.cpp:8
_PINOCCHIO_PYBIND11_EXPOSE
#define _PINOCCHIO_PYBIND11_EXPOSE(type, name)
Definition:
pybind11-all.hpp:27
JOINT_MODEL_COLLECTION
#define JOINT_MODEL_COLLECTION
Definition:
cpp2pybind11.cpp:10
pybind11.hpp
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:27
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:12