icub-client
main.cpp
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2011 ICUBCLIENT Consortium, European Commission FP7 Project IST-270490
3 * Authors: Stephane Lallee
4 * email: stephane.lallee@gmail.com
5 * website: https://github.com/robotology/icub-client/
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 * $ICUBCLIENT_ROOT/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 /*
20 
21 Handle the integration of all sensors and reactions of the robot.
22 The robot is reacting to tactile stimuli, gestures, voice and joystick inputs.
23 It also includes the subscenarios of Pon, DJ, and Tic Tac Toe.
24 
25 */
26 
27 #include <yarp/os/all.h>
28 #include "sensationManager.h"
29 
30 using namespace std;
31 using namespace yarp::os;
32 
33 int main(int argc, char * argv[])
34 {
35  srand(time(NULL));
36  yarp::os::Network yarp;
37  if (!yarp.checkNetwork())
38  {
39  yError()<<"YARP network seems unavailable!";
40  return 1;
41  }
43  ResourceFinder rf;
44  rf.setVerbose(true);
45  rf.setDefaultContext("sensationManager");
46  rf.setDefaultConfigFile("default.ini");
47  rf.configure( argc, argv);
48  return mod.runModule(rf);
49 }
STL namespace.
int main()
Definition: main.cpp:32