include
sot
core
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
>
14
#include <
sot/core/matrix-geometry.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
)
49
DECLARE_SPECIFICATION
(DerivatorVector,
dynamicgraph::Vector
)
50
DECLARE_SPECIFICATION
(DerivatorMatrix,
dynamicgraph::Matrix
)
51
DECLARE_SPECIFICATION
(DerivatorVectorQuaternion,
VectorQuaternion
)
52
}
/* namespace sot */
53
}
/* namespace dynamicgraph */
54
55
#endif // #ifndef __SOT_DERIVATOR_H__
dynamicgraph::sot::VectorQuaternion
Eigen::Quaternion< double > SOT_CORE_EXPORT VectorQuaternion
Definition:
matrix-geometry.hh:78
dynamicgraph
derivator.hh
dynamicgraph::Matrix
Eigen::MatrixXd Matrix
DECLARE_SPECIFICATION
#define DECLARE_SPECIFICATION(className, sotSigType)
Definition:
derivator-impl.hh:44
dynamicgraph::Vector
Eigen::VectorXd Vector
matrix-geometry.hh
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31