std-vector.hpp
Go to the documentation of this file.
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 
9 #include <eigenpy/std-vector.hpp>
10 
11 #include <type_traits>
12 
13 namespace eigenpy
14 {
15 
16  template<typename Derived>
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 
33 namespace 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__
Eigen
simulation-pendulum.type
type
Definition: simulation-pendulum.py:18
eigenpy
std-vector.hpp
python
pinocchio::python::StdVectorPythonVisitor
eigenpy::StdVectorPythonVisitor< vector_type, NoProxy, EnableFromPythonListConverter, pickable > StdVectorPythonVisitor
Definition: std-vector.hpp:47
std
Definition: autodiff/casadi/utils/static-if.hpp:64
fwd.hpp
eigenpy::has_operator_equal
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Sat Jun 1 2024 02:40:38