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 \
18  "You must define SCALAR, OPTIONS and JOINT_MODEL_COLLECTION before including this file."
19 #endif
20 
22 #include <pinocchio/multibody/data.hpp>
23 #include <pinocchio/multibody/geometry.hpp>
24 #include <pinocchio/multibody/model.hpp>
25 
26 // Required to be able to pass argument with commas to macros
27 #define _SINGLE_ARG(...) __VA_ARGS__
28 #define _PINOCCHIO_PYBIND11_EXPOSE(type, name) \
29  PINOCCHIO_PYBIND11_ADD_ALL_CONVERT_TYPE(_SINGLE_ARG(type)) \
30  PINOCCHIO_PYBIND11_TYPE_CASTER(_SINGLE_ARG(type), name)
31 
32 
34  _("pinocchio.pinocchio_pywrap.SE3"))
37 _PINOCCHIO_PYBIND11_EXPOSE(_SINGLE_ARG(::pinocchio::ForceTpl<SCALAR, OPTIONS>),
39 
41  _SINGLE_ARG(::pinocchio::ModelTpl<SCALAR, OPTIONS, JOINT_MODEL_COLLECTION>),
44  _SINGLE_ARG(::pinocchio::DataTpl<SCALAR, OPTIONS, JOINT_MODEL_COLLECTION>),
46 
47 _PINOCCHIO_PYBIND11_EXPOSE(::pinocchio::GeometryModel,
48  _("pinocchio.pinocchio_pywrap.GeometryModel"))
49 // \todo this triggers a warning because GeometryData has
50 // a copy constructor and no operator=
51 // _PINOCCHIO_PYBIND11_EXPOSE(::pinocchio::GeometryData,
52 // _("pinocchio.pinocchio_pywrap.GeometryData"))
53 
54 #undef _PINOCCHIO_PYBIND11_EXPOSE
55 #undef _SINGLE_ARG
ModelTpl< double > Model
#define OPTIONS
Definition: cpp2pybind11.cpp:9
ForceTpl< double, 0 > Force
#define JOINT_MODEL_COLLECTION
#define SCALAR
Definition: cpp2pybind11.cpp:8
MotionTpl< double, 0 > Motion
#define _SINGLE_ARG(...)
Main pinocchio namespace.
Definition: timings.cpp:28
#define _PINOCCHIO_PYBIND11_EXPOSE(type, name)


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:32