pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
cppad.hpp
1//
2// Copyright (c) 2021 INRIA
3//
4
5#ifndef __pinocchio_python_context_cppad_hpp__
6#define __pinocchio_python_context_cppad_hpp__
7
8#include "pinocchio/autodiff/cppad.hpp"
9
10#define PINOCCHIO_PYTHON_SCALAR_TYPE ::CppAD::AD<double>
11#include "pinocchio/bindings/python/context/generic.hpp"
12#undef PINOCCHIO_PYTHON_SCALAR_TYPE
13
14#define PINOCCHIO_PYTHON_SKIP_COMPARISON_OPERATIONS
15#define PINOCCHIO_PYTHON_NO_SERIALIZATION
16#define PINOCCHIO_PYTHON_SKIP_REACHABLE_WORKSPACE
17
18#include <eigenpy/eigenpy.hpp>
19#include <eigenpy/user-type.hpp>
20
21namespace pinocchio
22{
23 namespace python
24 {
25 inline void exposeSpecificTypeFeatures()
26 {
27 boost::python::import("pycppad");
28 };
29
30 inline boost::python::object getScalarType()
31 {
32 return eigenpy::getInstanceClass<context::Scalar>();
33 }
34
35 } // namespace python
36} // namespace pinocchio
37
38#endif // #ifndef __pinocchio_python_context_cppad_hpp__
Main pinocchio namespace.
Definition treeview.dox:11