Directory: | ./ |
---|---|
File: | include/pinocchio/bindings/python/context/default.hpp |
Date: | 2024-08-27 18:20:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 3 | 3 | 100.0% |
Branches: | 1 | 2 | 50.0% |
Line | Branch | Exec | Source |
---|---|---|---|
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 | |||
15 | namespace pinocchio | ||
16 | { | ||
17 | namespace python | ||
18 | { | ||
19 | |||
20 | 20 | inline void exposeSpecificTypeFeatures() {}; | |
21 | |||
22 | 20 | inline boost::python::object getScalarType() | |
23 | { | ||
24 | namespace bp = boost::python; | ||
25 |
1/2✓ Branch 3 taken 20 times.
✗ Branch 4 not taken.
|
40 | 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__ | ||
32 |