tests
signal
test_ptrcast.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
/* -------------------------------------------------------------------------- */
11
/* --- INCLUDES ------------------------------------------------------------- */
12
/* -------------------------------------------------------------------------- */
13
#include <
dynamic-graph/all-signals.h
>
14
#include <
dynamic-graph/linear-algebra.h
>
15
16
#include <iostream>
17
#include <
sot/core/matrix-geometry.hh
>
18
using namespace
std;
19
using namespace
dynamicgraph
;
20
using namespace
dynamicgraph::sot
;
21
22
Signal<dynamicgraph::Matrix, sigtime_t>
base
(
"base"
);
23
Signal<dynamicgraph::Matrix, sigtime_t>
sig
(
"matrix"
);
24
SignalPtr<dynamicgraph::Matrix, sigtime_t>
sigptr(&
base
);
25
26
Signal<MatrixRotation, sigtime_t>
sigMR
(
"matrixRot"
);
27
28
int
main
(
void
) {
29
sigptr.plug(&
sig
);
30
cout <<
"Correctly plugged matrix"
<< endl;
31
// sigptr.plug(&sigMR);
32
// cout << "Correctly plugged matrix rotation" << endl;
33
34
return
0;
35
}
dynamicgraph::Signal
sigMR
Signal< MatrixRotation, sigtime_t > sigMR("matrixRot")
dynamicgraph::SignalPtr< dynamicgraph::Matrix, sigtime_t >
dynamicgraph
all-signals.h
linear-algebra.h
matrix-geometry.hh
dynamicgraph::sot
main
int main(void)
Definition:
test_ptrcast.cpp:28
base
Signal< dynamicgraph::Matrix, sigtime_t > base("base")
Definition:
test_ptrcast.cpp:24
sig
Signal< dynamicgraph::Matrix, sigtime_t > sig("matrix")
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32