pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
std-vector.hpp
1//
2// Copyright (c) 2016-2024 CNRS INRIA
3//
4
5#ifndef __pinocchio_python_utils_std_vector_hpp__
6#define __pinocchio_python_utils_std_vector_hpp__
7
8#include "pinocchio/bindings/python/fwd.hpp"
9#include <eigenpy/std-vector.hpp>
10
11#include <type_traits>
12
13namespace eigenpy
14{
15
16 template<typename Derived>
17 struct has_operator_equal<
18 Derived,
19 typename std::enable_if<
20 std::is_base_of<::pinocchio::NumericalBase<Derived>, Derived>::value,
21 Derived>::type> : has_operator_equal<typename ::pinocchio::NumericalBase<Derived>::Scalar>
22 {
23 };
24
25 template<typename _Scalar, int _Rows, int _Cols, int _Options>
26 struct has_operator_equal<Eigen::Matrix<_Scalar, _Rows, _Cols, _Options>>
27 : has_operator_equal<typename Eigen::Matrix<_Scalar, _Rows, _Cols, _Options>::Scalar>
28 {
29 };
30
31} // namespace eigenpy
32
33namespace pinocchio
34{
35 namespace python
36 {
37 template<
38 class vector_type,
39 bool NoProxy = false,
40 bool EnableFromPythonListConverter = true,
41#ifdef PINOCCHIO_PYTHON_NO_SERIALIZATION
42 bool pickable = false>
43#else
44 bool pickable = true>
45#endif
46 using StdVectorPythonVisitor = eigenpy::
47 StdVectorPythonVisitor<vector_type, NoProxy, EnableFromPythonListConverter, pickable>;
48 } // namespace python
49} // namespace pinocchio
50
51#endif // ifndef __pinocchio_python_utils_std_vector_hpp__
Main pinocchio namespace.
Definition treeview.dox:11