pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
default.hpp
1//
2// Copyright (c) 2020-2023 INRIA
3//
4
5#ifndef __pinocchio_python_context_default_hpp__
6#define __pinocchio_python_context_default_hpp__
7
8#define PINOCCHIO_PYTHON_SCALAR_TYPE PINOCCHIO_PYTHON_SCALAR_TYPE_DEFAULT
9#define PINOCCHIO_PYTHON_INTERFACE_MAIN_MODULE
10#define PINOCCHIO_PYTHON_PLAIN_SCALAR_TYPE
11
12#include "pinocchio/bindings/python/context/generic.hpp"
13#include <eigenpy/eigenpy.hpp>
14
15namespace pinocchio
16{
17 namespace python
18 {
19
20 inline void exposeSpecificTypeFeatures() {};
21
22 inline boost::python::object getScalarType()
23 {
24 namespace bp = boost::python;
25 return bp::object(bp::handle<>(bp::borrowed(reinterpret_cast<PyObject *>(&PyFloat_Type))));
26 }
27 } // namespace python
28} // namespace pinocchio
29
30#undef PINOCCHIO_PYTHON_SCALAR_TYPE
31#endif // #ifndef __pinocchio_python_context_default_hpp__
Main pinocchio namespace.
Definition treeview.dox:11