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, int>
base
(
"base"
);
23
Signal<dynamicgraph::Matrix, int>
sig
(
"matrix"
);
24
SignalPtr<dynamicgraph::Matrix, int>
sigptr(&
base
);
25
26
Signal<MatrixRotation, int>
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
}
sig
Signal< dynamicgraph::Matrix, int > sig("matrix")
std
dynamicgraph::SignalPtr< dynamicgraph::Matrix, int >
dynamicgraph::Signal< dynamicgraph::Matrix, int >
main
int main(void)
Definition:
test_ptrcast.cpp:28
linear-algebra.h
dynamicgraph::sot
base
Signal< dynamicgraph::Matrix, int > base("base")
Definition:
test_ptrcast.cpp:24
matrix-geometry.hh
sigMR
Signal< MatrixRotation, int > sigMR("matrixRot")
all-signals.h
dynamicgraph
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26