icub-client
main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 iCub Facility - Istituto Italiano di Tecnologia
3  * Author: Bertand Higy
4  * email: bertrand.higy@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 
19 #include <yarp/os/Network.h>
20 #include <yarp/os/ResourceFinder.h>
21 
22 #include "touchDetectorModule.h"
23 
24 using namespace yarp::os;
25 
26 int main(int argc, char *argv[])
27 {
28  Network yarp;
29 
30  if (!yarp.checkNetwork())
31  return -1;
32 
33  ResourceFinder rf;
34  rf.setDefaultContext("touchDetector");
35  rf.setDefaultConfigFile("clustersConfig.ini");
36  rf.configure(argc,argv);
37  TouchDetectorModule server;
38 
39  return server.runModule(rf);
40 }
int main()
Definition: main.cpp:32