derivator-impl.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #ifndef __SOT_DERIVATOR_IMPL_H__
11 #define __SOT_DERIVATOR_IMPL_H__
12 
13 #include <sot/core/derivator.hh>
15 
16 /* --------------------------------------------------------------------- */
17 /* --- API ------------------------------------------------------------- */
18 /* --------------------------------------------------------------------- */
19 
20 #if defined(WIN32)
21 #if defined(derivator_EXPORTS)
22 #define DERIVATOR_EXPORT __declspec(dllexport)
23 #else
24 #define DERIVATOR_EXPORT __declspec(dllimport)
25 #endif
26 #else
27 #define DERIVATOR_EXPORT
28 #endif
29 
30 /* --------------------------------------------------------------------- */
31 /* --- INCLUDE --------------------------------------------------------- */
32 /* --------------------------------------------------------------------- */
33 
34 namespace dynamicgraph {
35 namespace sot {
36 
37 #ifdef WIN32
38 #define DECLARE_SPECIFICATION(className, sotSigType) \
39  class DERIVATOR_EXPORT className : public Derivator<sotSigType> { \
40  public: \
41  className(const std::string &name); \
42  };
43 #else
44 #define DECLARE_SPECIFICATION(className, sotSigType) \
45  typedef Derivator<sotSigType> className;
46 #endif
47 
48 DECLARE_SPECIFICATION(DerivatorDouble, double)
51 DECLARE_SPECIFICATION(DerivatorVectorQuaternion, VectorQuaternion)
52 } /* namespace sot */
53 } /* namespace dynamicgraph */
54 
55 #endif // #ifndef __SOT_DERIVATOR_H__
Eigen::VectorXd Vector
Eigen::Quaternion< double > SOT_CORE_EXPORT VectorQuaternion
#define DECLARE_SPECIFICATION(className, sotSigType)
Eigen::MatrixXd Matrix


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26