icub-client
src
modules
pasar
src
main.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 WYSIWYD Consortium, European Commission FP7 Project ICT-612139
3
* Authors: Grégoire Pointeau (originally from ICUBCLIENT by Stéphane Lallée)
4
* email: greg.pointeau@gmail.com
5
* Permission is granted to copy, distribute, and/or modify this program
6
* under the terms of the GNU General Public License, version 2 or any
7
* later version published by the Free Software Foundation.
8
*
9
* A copy of the license can be found at
10
* icub-client/license/gpl.txt
11
*
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15
* Public License for more details
16
*/
17
18
19
#include <yarp/os/all.h>
20
#include <time.h>
21
22
#include "
pasar.h
"
23
24
25
using namespace
yarp::os
;
26
using namespace
yarp::sig
;
27
28
29
int
main
(
int
argc,
char
*
argv
[]) {
30
srand((
int
)time(
nullptr
));
31
/* initialize yarp network */
32
Network
yarp
;
33
34
/* prepare and configure the resource finder */
35
ResourceFinder
rf
;
36
rf.setVerbose(
true
);
37
rf.setDefaultConfigFile(
"pasar.ini"
);
//overridden by --from parameter
38
rf.setDefaultContext(
"pasar"
);
//overridden by --context parameter
39
rf.configure(argc, argv);
40
41
/* create your module */
42
PasarModule
module;
43
44
/* run the module: runModule() calls configure first and, if successful, it then runs */
45
module.runModule(rf);
46
47
return
0;
48
}
49
drive_control_gui.argv
argv
Definition:
drive_control_gui.py:6
PasarModule
Definition:
pasar.h:45
allostatic_plot.rf
rf
Definition:
allostatic_plot.py:237
yarp
main
int main()
Definition:
main.cpp:32
pasar.h
os
sig
Generated on Wed Feb 19 2020 23:45:25 for icub-client by
1.8.13