Line |
Branch |
Exec |
Source |
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 |
|
1 |
int main(void) { |
29 |
|
1 |
sigptr.plug(&sig); |
30 |
|
1 |
cout << "Correctly plugged matrix" << endl; |
31 |
|
|
// sigptr.plug(&sigMR); |
32 |
|
|
// cout << "Correctly plugged matrix rotation" << endl; |
33 |
|
|
|
34 |
|
1 |
return 0; |
35 |
|
|
} |
36 |
|
|
|