type-name-helper.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  * Nicolas Mansard
6  * Joseph Mirabel
7  *
8  * CNRS/AIST
9  *
10  */
11 
13 
14 namespace dynamicgraph {
15 namespace sot {
16 template <typename TypeRef>
18  static inline std::string typeName();
19 };
20 template <typename TypeRef>
21 inline std::string TypeNameHelper<TypeRef>::typeName() {
22  return "unspecified";
23 }
24 
25 #define ADD_KNOWN_TYPE(typeid) \
26  template <> \
27  inline std::string TypeNameHelper<typeid>::typeName() { \
28  return #typeid; \
29  }
30 
31 ADD_KNOWN_TYPE(bool)
32 ADD_KNOWN_TYPE(double)
40 
41 #undef ADD_KNOWN_TYPE
42 } /* namespace sot */
43 } /* namespace dynamicgraph */
dynamicgraph::sot::VectorQuaternion
Eigen::Quaternion< double > SOT_CORE_EXPORT VectorQuaternion
Definition: matrix-geometry.hh:78
dynamicgraph
dynamicgraph::sot::TypeNameHelper
Definition: type-name-helper.hh:17
Matrix
Eigen::MatrixXd Matrix
dynamicgraph::sot::VectorRollPitchYaw
Eigen::Vector3d SOT_CORE_EXPORT VectorRollPitchYaw
Definition: matrix-geometry.hh:80
MatrixRotation
Eigen::Matrix< double, 3, 3 > MatrixRotation
Vector
Eigen::VectorXd Vector
ADD_KNOWN_TYPE
#define ADD_KNOWN_TYPE(typeid)
Definition: type-name-helper.hh:25
matrix-geometry.hh
MatrixTwist
Eigen::Matrix< double, 6, 6 > MatrixTwist
MatrixHomogeneous
Eigen::Transform< double, 3, Eigen::Affine > MatrixHomogeneous
dynamicgraph::sot::TypeNameHelper::typeName
static std::string typeName()
Definition: type-name-helper.hh:21


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32