icub-client
main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 WYSIWYD Consortium, European Commission FP7 Project ICT-612139
3  * Authors: Stéphane Lallée, moved from ICUBCLIENT by Maxime Petit
4  * email: stephane.lallee@gmail.com
5  * website: http://wysiwyd.upf.edu/
6  * Permission is granted to copy, distribute, and/or modify this program
7  * under the terms of the GNU General Public License, version 2 or any
8  * later version published by the Free Software Foundation.
9  *
10  * A copy of the license can be found at
11  * icub-client/license/gpl.txt
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16  * Public License for more details
17  */
18 
19 #include <yarp/os/Network.h>
20 #include "AgentDetector.h"
21 using namespace yarp::os;
22 int main(int argc, char *argv[])
23 {
24  Network yarp;
25 
26  if (!yarp.checkNetwork())
27  {
28  fprintf(stdout, "Yarp network not available\n");
29  return -1;
30  }
31 
32  ResourceFinder rf;
33  rf.setVerbose(true);
34  rf.setDefaultContext("agentDetector");
35  rf.setDefaultConfigFile("agentDetector.ini");
36  rf.configure(argc,argv);
37 
39 
40  mod.runModule(rf);
41 
42  return 0;
43 }
44 
int main()
Definition: main.cpp:32