iCub-main
icub-main
src
tools
fakeRawDataPublisherTester
src
main.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 iCub Facility - Istituto Italiano di Tecnologia
3
* Author: Jacopo Losi
4
* email: jacopo.losi@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 "
FakeRawDataPublisherTester.h
"
19
#include <yarp/os/ResourceFinder.h>
20
#include <yarp/os/Network.h>
21
22
#include <yarp/os/Log.h>
23
#include <yarp/os/LogStream.h>
24
25
26
27
using namespace
yarp::os;
28
29
int
main
(
int
argc
,
char
* argv[])
30
{
31
/* initialize yarp network */
32
Network
yarp
;
33
if
(!
yarp
.checkNetwork())
34
{
35
yError() <<
" YARP network does not work. Aborting..."
;
36
return
EXIT_FAILURE;
37
}
38
39
/* create your module */
40
FakeRawDataPublisherTester
module;
41
/* prepare and configure the resource finder */
42
ResourceFinder rf;
43
rf.
configure
(
argc
, argv);
44
rf.setVerbose(
true
);
45
yDebug() <<
"Configuring and starting module. \n"
;
46
module.runModule(rf);
// This calls configure(rf) and, upon success, the module execution begins with a call to updateModule()
47
yDebug()<<
"Main returning..."
;
48
return
0;
49
}
FakeRawDataPublisherTester.h
FakeRawDataPublisherTester
Definition:
FakeRawDataPublisherTester.h:34
FakeRawDataPublisherTester::configure
bool configure(yarp::os::ResourceFinder &rf)
Definition:
FakeRawDataPublisherTester.cpp:28
main
int main(int argc, char *argv[])
Definition:
main.cpp:31
scripting.argc
argc
Definition:
scripting.py:184
yarp
Copyright (C) 2008 RobotCub Consortium.
Definition:
DebugInterfaces.h:51
Generated on Mon Oct 28 2024 12:22:43 for iCub-main by
1.9.1