karma
All Modules
main.cpp
1 /*
2  * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3  * Author: Vadim Tikhanoff Ugo Pattacini
4  * email: vadim.tikhanoff@iit.it
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  * http://www.robotcub.org/icub/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 #include <yarp/os/Network.h>
19 #include "iCub/module.h"
20 
21 using namespace yarp::os;
22 
23 
24 /**********************************************************/
25 int main(int argc, char *argv[])
26 {
27  Network yarp;
28  if (!yarp.checkNetwork())
29  return 1;
30 
31  ResourceFinder rf;
32  rf.setDefault("name","karmaManager");
33  rf.setDefaultContext("karma");
34  rf.setDefaultConfigFile("karmaManager.ini");
35  rf.setDefault("tracking_period","30");
36  rf.configure(argc,argv);
37 
38  Manager manager;
39  return manager.runModule(rf);
40 }
41 
42 
43