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: GrĂ©goire Pointeau
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 #include <yarp/os/Network.h>
19 #include <yarp/os/LogStream.h>
20 #include "ears.h"
21 
22 using namespace std;
23 using namespace yarp::os;
24 
25 int main(int argc, char * argv[])
26 {
27  yarp::os::Network yarp;
28  if (!yarp.checkNetwork())
29  {
30  yError()<<"YARP network seems unavailable!";
31  return 1;
32  }
33 
34  ears mod;
35  ResourceFinder rf;
36  rf.setVerbose(true);
37  rf.setDefaultContext("ears");
38  rf.setDefaultConfigFile("ears.ini");
39  rf.configure(argc, argv);
40  return mod.runModule(rf);
41 }
STL namespace.
Definition: ears.h:14
int main()
Definition: main.cpp:32