iCub-main
skinManagerMain.cpp
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2009 RobotCub Consortium, European Commission FP6 Project IST-004370
4  * Authors: Andrea Del Prete, Alexander Schmitz
5  * email: andrea.delprete@iit.it, alexander.schmitz@iit.it
6  * website: www.robotcub.org
7  * Permission is granted to copy, distribute, and/or modify this program
8  * under the terms of the GNU General Public License, version 2 or any
9  * later version published by the Free Software Foundation.
10  *
11  * A copy of the license can be found at
12  * http://www.robotcub.org/icub/license/gpl.txt
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17  * Public License for more details
18  */
19 
21 
22 using namespace iCub::skinManager;
23 
24 int main(int argc, char * argv[])
25 {
26  /* initialize yarp network */
27  Network yarp;
28 
29  /* create your module */
30  skinManager module;
31 
32  /* prepare and configure the resource finder */
33  ResourceFinder rf;
34  rf.setDefaultConfigFile("skinManAll.ini"); //overridden by --from parameter
35  rf.setDefaultContext("skinGui"); //overridden by --context parameter
36  rf.configure(argc, argv);
37 
38  /* run the module: runModule() calls configure first and, if successful, it then runs */
39  module.runModule(rf);
40 
41  return 0;
42 }
43 
bool configure(yarp::os::ResourceFinder &rf)
Definition: skinManager.cpp:47
Copyright (C) 2008 RobotCub Consortium.
int main(int argc, char *argv[])