iCub-main
main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 RobotCub Consortium, European Commission FP6 Project IST-004370
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 
148 #include <iCub/particleFilter.h>
149 
150 using namespace yarp::os;
151 
152 int main(int argc, char * argv[])
153 {
154  /* initialize yarp network */
155  //Network yarp;
156  Network::init();
157 
158  /* create the module */
159  PARTICLEModule module;
160 
161  /* prepare and configure the resource finder */
162  ResourceFinder rf;
163  rf.setDefaultConfigFile( "templatePFTracker.ini" ); //overridden by --from parameter
164  rf.setDefaultContext( "templatePFTracker" ); //overridden by --context parameter
165  rf.configure( argc, argv );
166 
167  /* run the module: runModule() calls configure first and, if successful, it then runs */
168  module.runModule(rf);
169  Network::fini();
170 
171  return 0;
172 }
173 
particleFilter.h
PARTICLEModule
Definition: particleFilter.h:245
main
int main(int argc, char *argv[])
Definition: main.cpp:31
scripting.argc
argc
Definition: scripting.py:184
PARTICLEModule::configure
bool configure(yarp::os::ResourceFinder &rf)
Definition: particleFilter.cpp:880