Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
f
g
i
j
l
m
o
p
q
r
s
t
u
v
Variables
_
a
b
c
d
e
f
g
i
j
l
m
n
p
r
s
u
v
w
Typedefs
c
e
f
i
m
q
r
s
v
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
d
e
f
k
l
m
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
g
i
j
k
m
n
o
p
r
s
t
u
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
Functions
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
Variables
Typedefs
c
d
e
f
k
r
s
t
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
v
src
matrix
integrator-euler.t.cpp
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
#include <
sot/core/factory.hh
>
11
#include <
sot/core/integrator-euler.hh
>
12
13
using namespace
dynamicgraph::sot
;
14
using namespace
dynamicgraph
;
15
16
#define SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER(sotClassType, sotSigType, \
17
sotCoefType, className) \
18
template <> \
19
std::string sotClassType<sotSigType, sotCoefType>::getTypeName(void) { \
20
return #sotSigType; \
21
} \
22
template <> \
23
const std::string sotClassType<sotSigType, sotCoefType>::CLASS_NAME = \
24
className; \
25
template <> \
26
const std::string &sotClassType<sotSigType, sotCoefType>::getClassName(void) \
27
const { \
28
return CLASS_NAME; \
29
} \
30
extern "C" { \
31
Entity *regFunction##_##sotSigType##_##sotCoefType( \
32
const std::string &objname) { \
33
return new sotClassType<sotSigType, sotCoefType>(objname); \
34
} \
35
EntityRegisterer regObj##_##sotSigType##_##sotCoefType( \
36
sotClassType<sotSigType, sotCoefType>::CLASS_NAME, \
37
®Function##_##sotSigType##_##sotCoefType); \
38
}
39
40
using namespace
std;
41
namespace
dynamicgraph
{
42
namespace
sot {
43
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER
(
IntegratorEuler
,
double
,
double
,
44
"IntegratorEulerDoubleDouble"
)
45
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER
(
IntegratorEuler
,
Vector
,
Matrix
,
46
"IntegratorEulerVectorMatrix")
47
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER
(
IntegratorEuler
,
Vector
,
double
,
48
"IntegratorEulerVectorDouble")
49
50
template class
IntegratorEuler
<
double
,
double
>;
51
template class
IntegratorEuler
<
Vector
,
double
>;
52
template class
IntegratorEuler
<
Vector
,
Matrix
>;
53
}
// namespace sot
54
}
// namespace dynamicgraph
factory.hh
dynamicgraph
dynamicgraph::sot::IntegratorEuler
integrates an ODE using a naive Euler integration. TODO: change the integration method....
Definition:
integrator-euler.hh:51
dynamicgraph::Matrix
Eigen::MatrixXd Matrix
dynamicgraph::Vector
Eigen::VectorXd Vector
dynamicgraph::sot
integrator-euler.hh
dynamicgraph::sot::SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER(IntegratorEuler, double, double, "IntegratorEulerDoubleDouble") SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_EULER(IntegratorEuler
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31