#include <iostream>
#include <pinocchio/fwd.hpp>
#include <pybind11/pybind11.h>
#include <boost/python.hpp>
Go to the source code of this file.
Namespaces | |
pinocchio | |
Main pinocchio namespace. | |
pinocchio::python | |
pinocchio::python::internal | |
Macros | |
#define | _SINGLE_ARG(...) __VA_ARGS__ |
Defines a set of conversion used by make_pybind11_function. More... | |
#define | PINOCCHIO_PYBIND11_ADD_ALL_CONVERT_TYPE(CLASS) |
#define | PINOCCHIO_PYBIND11_ADD_CONVERT_TYPE(CLASS) |
Defines a conversion used by make_pybind11_function. More... | |
#define | PINOCCHIO_PYBIND11_TYPE_CASTER(native_type, boost_python_name) |
Add a PyBind11 type caster. More... | |
Functions | |
template<typename R , typename... Args> | |
auto | pinocchio::python::internal::call (R(*f)(Args...), typename convert_type< Args >::type... args) |
template<typename... Args> | |
void | pinocchio::python::internal::call (void(*f)(Args...), typename convert_type< Args >::type... args) |
template<typename T > | |
py::object | pinocchio::python::default_arg (T t) |
template<typename ReturnType > | |
ReturnType & | pinocchio::python::from (py::handle model) |
template<typename R , typename... Args> | |
internal::function_wrapper< R(*)(Args...)> | pinocchio::python::make_pybind11_function (R(*func)(Args...)) |
Creates a function wrapper. More... | |
template<typename T > | |
py::object | pinocchio::python::to (T &t) |
template<typename T > | |
py::object | pinocchio::python::to (T *t) |
#define _SINGLE_ARG | ( | ... | ) | __VA_ARGS__ |
Defines a set of conversion used by make_pybind11_function.
Definition at line 106 of file pybind11.hpp.
#define PINOCCHIO_PYBIND11_ADD_ALL_CONVERT_TYPE | ( | CLASS | ) |
Definition at line 107 of file pybind11.hpp.
#define PINOCCHIO_PYBIND11_ADD_CONVERT_TYPE | ( | CLASS | ) |
Defines a conversion used by make_pybind11_function.
Definition at line 97 of file pybind11.hpp.
#define PINOCCHIO_PYBIND11_TYPE_CASTER | ( | native_type, | |
boost_python_name | |||
) |
Add a PyBind11 type caster.
Using type caster has the advantage of not requiring to wrap the exposed functions but the disadvantage of systematically requiring a copy.
See https://pybind11.readthedocs.io/en/stable/advanced/cast/custom.html "PyBind11 documentation"
Definition at line 182 of file pybind11.hpp.