segmentation
All Data Structures Namespaces Files Functions Variables Modules Pages
main.cpp
1 /*
2  * Copyright (C) 2015 Department of iCub Facility - 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 "lbpExtract.h"
19 
20 using namespace yarp::os;
21 
22 int main(int argc, char * argv[])
23 {
24  /* initialize yarp network */
25  Network::init();
26 
27  /* create the module */
28  SEGMENTModule module;
29 
30  /* prepare and configure the resource finder */
31  ResourceFinder rf;
32  rf.setDefaultContext( "lbpExtract" );
33  rf.setDefaultConfigFile( "lbpExtract.ini" );
34  rf.setDefault("name","lbpExtract");
35  rf.configure( argc, argv );
36 
37  /* run the module: runModule() calls configure first and, if successful, it then runs */
38  module.runModule(rf);
39  Network::fini();
40 
41  return 0;
42 }
43 //empty line to make gcc happy