iCub-main
icub-main
src
modules
templatePFTracker
src
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
165
#include <
iCub/particleFilter.h
>
166
167
using namespace
yarp::os;
168
169
int
main
(
int
argc
,
char
* argv[])
170
{
171
/* initialize yarp network */
172
//Network yarp;
173
Network::init();
174
175
/* create the module */
176
PARTICLEModule
module;
177
178
/* prepare and configure the resource finder */
179
ResourceFinder rf;
180
rf.setDefaultConfigFile(
"templatePFTracker.ini"
);
//overridden by --from parameter
181
rf.setDefaultContext(
"templatePFTracker"
);
//overridden by --context parameter
182
rf.
configure
(
argc
, argv );
183
184
/* run the module: runModule() calls configure first and, if successful, it then runs */
185
module.runModule(rf);
186
Network::fini();
187
188
return
0;
189
}
190
PARTICLEModule
Definition:
particleFilter.h:246
PARTICLEModule::configure
bool configure(yarp::os::ResourceFinder &rf)
Definition:
particleFilter.cpp:880
main
int main(int argc, char *argv[])
Definition:
main.cpp:31
scripting.argc
argc
Definition:
scripting.py:184
particleFilter.h
Generated on Tue Mar 26 2024 16:02:16 for iCub-main by
1.9.1