iol
main.cpp
1 /*
2  * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3  * Author: Ugo Pattacini
4  * email: ugo.pattacini@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 
271 #include <yarp/os/Network.h>
272 
273 #include "module.h"
274 
275 using namespace yarp::os;
276 
277 
278 /**********************************************************/
279 int main(int argc, char *argv[])
280 {
281  Network yarp;
282  if (!yarp.checkNetwork())
283  return 1;
284 
285  ResourceFinder rf;
286  rf.setDefaultContext("iolStateMachineHandler");
287  rf.setDefaultConfigFile("config.ini");
288  rf.configure(argc,argv);
289 
290  Manager manager;
291  return manager.runModule(rf);
292 }