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 
27 #include <yarp/os/all.h>
28 #include "behaviorManager.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("behaviorManager");
46  rf.setDefaultConfigFile("default.ini");
47  rf.configure( argc, argv);
48  return mod.runModule(rf);
49 }
STL namespace.
int main()
Definition: main.cpp:32