segmentation
All Data Structures Namespaces Files Functions Variables Modules Pages
main.cpp
1 /*
2  * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3  * Authors: Vadim Tikhanoff
4  * email: vadim.tikhanoff@iit.it
5  * website: www.robotcub.org
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  * http://www.robotcub.org/icub/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 
164 #include "lumaChroma.h"
165 
166 using namespace yarp::os;
167 
168 int main(int argc, char * argv[])
169 {
170  /* initialize yarp network */
171  Network yarp;
172 
173  /* create the module */
174  lumaChroma module;
175 
176  /* prepare and configure the resource finder */
177  ResourceFinder rf;
178  rf.setDefaultConfigFile( "config.ini" ); //overridden by --from parameter
179  rf.setDefaultContext( "lumaChroma" ); //overridden by --context parameter
180  rf.configure( argc, argv );
181 
182  /* run the module: runModule() calls configure first and, if successful, it then runs */
183  module.runModule(rf);
184 
185  return 0;
186 }
187 
188 
189