fwd.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2018-2024 CNRS INRIA
3 //
4 
5 #ifndef __pinocchio_fwd_hpp__
6 #define __pinocchio_fwd_hpp__
7 
8 // Forward declaration of the main pinocchio namespace
9 namespace pinocchio
10 {
11 }
12 
13 #ifdef _WIN32
14  #include <windows.h>
15  #undef far
16  #undef near
17 #endif
18 
19 #include <cassert>
20 
21 #include "pinocchio/macros.hpp"
23 #include "pinocchio/warning.hpp"
24 #include "pinocchio/config.hpp"
26 
28 #include "pinocchio/utils/cast.hpp"
30 
32 
33 #ifdef PINOCCHIO_EIGEN_CHECK_MALLOC
34  #ifndef EIGEN_RUNTIME_NO_MALLOC
35  #define EIGEN_RUNTIME_NO_MALLOC_WAS_NOT_DEFINED
36  #define EIGEN_RUNTIME_NO_MALLOC
37  #endif
38 #endif
39 
40 #include <Eigen/Core>
41 #include <Eigen/Sparse>
42 #include <Eigen/SparseCholesky>
43 
44 #ifdef PINOCCHIO_WITH_ACCELERATE_SUPPORT
45  #include <Eigen/AccelerateSupport>
46 #endif
47 
48 #ifdef PINOCCHIO_EIGEN_CHECK_MALLOC
49  #ifdef EIGEN_RUNTIME_NO_MALLOC_WAS_NOT_DEFINED
50  #undef EIGEN_RUNTIME_NO_MALLOC
51  #undef EIGEN_RUNTIME_NO_MALLOC_WAS_NOT_DEFINED
52  #endif
53 #endif
54 
56 #ifdef PINOCCHIO_WITH_EIGEN_TENSOR_MODULE
57  #include <unsupported/Eigen/CXX11/Tensor>
58 #endif
59 
62 
63 #include <cstddef> // std::size_t
64 
65 namespace pinocchio
66 {
70  template<class C>
71  struct traits
72  {
73  };
74 
76  struct Blank
77  {
78  };
79 
80  namespace internal
81  {
82  template<typename T>
83  struct traits
84  {
85  };
86  } // namespace internal
87 
88  template<class Derived>
90  {
91  typedef typename traits<Derived>::Scalar Scalar;
92  };
93 
98  template<typename NewScalar, class C>
99  struct CastType;
100 
104  template<typename To, typename From>
105  struct ScalarCast
106  {
107  static To cast(const From & value)
108  {
109  return static_cast<To>(value);
110  }
111  };
112 
113  template<typename To, typename From>
114  To scalar_cast(const From & value)
115  {
117  }
118 
122  {
123  ARG0 = 0,
124  ARG1 = 1,
125  ARG2 = 2,
126  ARG3 = 3,
127  ARG4 = 4
128  };
129 
131  {
135  };
136 
140  const int Dynamic = -1;
141 
144  struct ReturnTypeNotDefined;
145 
146  typedef Eigen::Matrix<bool, Eigen::Dynamic, 1> VectorXb;
147 } // namespace pinocchio
148 
149 #include "pinocchio/context.hpp"
150 
151 #endif // #ifndef __pinocchio_fwd_hpp__
pinocchio::NumericalBase
Definition: fwd.hpp:89
pinocchio::RMTO
@ RMTO
Definition: fwd.hpp:134
pinocchio::SETTO
@ SETTO
Definition: fwd.hpp:132
macros.hpp
check.hpp
context.hpp
pinocchio::NumericalBase::Scalar
traits< Derived >::Scalar Scalar
Definition: fwd.hpp:91
helpers.hpp
pinocchio::ArgumentPosition
ArgumentPosition
Argument position. Used as template parameter to refer to an argument.
Definition: fwd.hpp:121
pinocchio::ARG3
@ ARG3
Definition: fwd.hpp:126
pinocchio::Blank
Blank type.
Definition: fwd.hpp:76
pinocchio::ARG0
@ ARG0
Definition: fwd.hpp:123
cast.hpp
eigen-macros.hpp
pinocchio::ARG2
@ ARG2
Definition: fwd.hpp:125
pinocchio::Dynamic
const int Dynamic
Definition: fwd.hpp:140
value
float value
pinocchio::ARG1
@ ARG1
Definition: fwd.hpp:124
pinocchio::AssignmentOperatorType
AssignmentOperatorType
Definition: fwd.hpp:130
pinocchio::ADDTO
@ ADDTO
Definition: fwd.hpp:133
To
Vec3f To
pinocchio::ARG4
@ ARG4
Definition: fwd.hpp:127
pinocchio::internal::traits
Definition: fwd.hpp:83
pinocchio::ScalarCast::cast
static To cast(const From &value)
Definition: fwd.hpp:107
unary-op.hpp
boost-container-limits.hpp
pinocchio::traits
Common traits structure to fully define base classes for CRTP.
Definition: fwd.hpp:71
pinocchio::VectorXb
Eigen::Matrix< bool, Eigen::Dynamic, 1 > VectorXb
Definition: fwd.hpp:144
pinocchio::CastType
Type of the cast of a class C templated by Scalar and Options, to a new NewScalar type....
Definition: fwd.hpp:99
binary-op.hpp
pinocchio::ScalarCast
Cast scalar type from type FROM to type TO.
Definition: fwd.hpp:105
pinocchio::scalar_cast
To scalar_cast(const From &value)
Definition: fwd.hpp:114
unsupported.hpp
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
deprecation.hpp


pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:44