YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: LGPL-2.1-or-later
4
*/
5
6
#include <
yarp/os/Network.h
>
7
#include <
yarp/os/RFModule.h
>
8
#include <
yarp/os/Bottle.h
>
9
#include <
yarp/os/BufferedPort.h
>
10
#include <
yarp/os/ResourceFinder.h
>
11
#include <
yarp/os/Os.h
>
12
#include <
yarp/os/Log.h
>
13
#include <
yarp/os/LogStream.h
>
14
#include <
yarp/os/Time.h
>
15
#include <
yarp/sig/Vector.h
>
16
17
#include <QApplication>
18
#include <QMainWindow>
19
#include <iostream>
20
#include <iomanip>
21
#include <string>
22
#include <cstdlib>
23
#include <ctime>
24
25
#include "
display.h
"
26
#include "ui_display.h"
27
28
29
using namespace
yarp::os
;
30
using namespace
yarp::dev
;
31
32
int
main
(
int
argc,
char
*argv[])
33
{
34
// Guis shall run always on system clock. No need to have it in synch with network clock
35
yarp::os::Network
yarp
(
yarp::os::YARP_CLOCK_SYSTEM
);
36
37
if
(!
yarp
.checkNetwork())
38
{
39
yError
(
"Error initializing yarp network (is yarpserver running?)"
);
40
return
0;
41
}
42
43
ResourceFinder
rf;
44
rf.
configure
(argc,argv);
45
46
QApplication
a(argc, argv);
47
48
if
(rf.
check
(
"help"
))
49
{
50
yInfo
() <<
"Options:"
;
51
yInfo
() <<
"--port <name> the full name of the output port"
;
52
yInfo
() <<
"--step_lin_vel the increase step of linear velocity (m/s)"
;
53
yInfo
() <<
"--step_ang_vel the increase step of angular velocity (deg/s)"
;
54
yInfo
() <<
"--default_lin_vel the default value for max linear velocity (m/s)"
;
55
yInfo
() <<
"--default_ang_vel the default value for max angular velocity (deg/s)"
;
56
return
0;
57
}
58
59
MainWindow
w(rf,
nullptr
);
60
w.show();
61
int
ret
= a.exec();
62
63
return
ret
;
64
65
}
Bottle.h
BufferedPort.h
ret
bool ret
Definition
ImplementAxisInfo.cpp:77
LogStream.h
Log.h
yInfo
#define yInfo(...)
Definition
Log.h:319
yError
#define yError(...)
Definition
Log.h:361
Network.h
Os.h
RFModule.h
ResourceFinder.h
Time.h
Vector.h
contains the definition of a Vector type
MainWindow
MainWindow class.
Definition
display.h:22
yarp::os::BufferedPort
A mini-server for performing network communication in the background.
Definition
BufferedPort.h:60
yarp::os::Network
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition
Network.h:706
yarp::os::ResourceFinder
Helper class for finding config files and other external resources.
Definition
ResourceFinder.h:29
yarp::os::ResourceFinder::check
bool check(const std::string &key) const override
Check if there exists a property of the given name.
Definition
ResourceFinder.cpp:903
yarp::os::ResourceFinder::configure
bool configure(int argc, char *argv[], bool skipFirstArgument=true)
Sets up the ResourceFinder.
Definition
ResourceFinder.cpp:786
main
int main(int argc, char *argv[])
Definition
main.cpp:32
yarp::dev
For streams capable of holding different kinds of content, check what they actually have.
Definition
BatteryData.cpp:13
yarp::os
An interface to the operating system, including Port based communication.
Definition
AbstractCarrier.h:13
yarp::os::YARP_CLOCK_SYSTEM
@ YARP_CLOCK_SYSTEM
Definition
Time.h:28
yarp
The main, catch-all namespace for YARP.
Definition
dirs.h:16
display.h
YARP
3.11.100+20250603.4+gitaa77f8b5c
src
guis
yarpmobilebasegui
main.cpp
Generated on Wed Jun 4 2025 02:40:10 for YARP by
1.9.8