human-sensing
main.cpp
1 /*
2  * Copyright (C) 2012 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3  * Author: Vadim Tikhanoff
4  * email: vadim.tikhanoff@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 #include "faceLandmarks.h"
19 
20 int main(int argc, char * argv[])
21 {
22  /* initialize yarp network */
23  yarp::os::Network::init();
24 
25  yarp::os::Network yarp;
26  if (!yarp.checkNetwork())
27  {
28  yError()<<"YARP server not available!";
29  return 1;
30  }
31 
32  /* create the module */
33  FACEModule module;
34 
35  /* prepare and configure the resource finder */
36  yarp::os::ResourceFinder rf;
37  rf.setVerbose( true );
38  rf.setDefaultContext( "faceLandmarks" );
39  rf.setDefaultConfigFile( "faceLandmarks.ini" );
40  rf.setDefault("name","faceLandmarks");
41 
42  rf.configure( argc, argv );
43 
44  /* run the module: runModule() calls configure first and, if successful, it then runs */
45  module.runModule(rf);
46  yarp::os::Network::fini();
47 
48  return 0;
49 }
50 //empty line to make gcc happy