YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
worker.h
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
#ifndef WORKER_H
7
#define WORKER_H
8
9
#include <QObject>
10
11
#include <
yarp/sig/Image.h
>
12
#include <
yarp/sig/Vector.h
>
13
#include <
yarp/os/PeriodicThread.h
>
14
#include <
yarp/os/Semaphore.h
>
15
#include <
yarp/os/Stamp.h
>
16
#include <
yarp/sig/ImageFile.h
>
17
#include "
include/utils.h
"
18
#include <
yarp/os/Event.h
>
19
#include <
yarp/os/Time.h
>
20
#include <QMainWindow>
21
#include <yarp/dataplayer/YarpDataplayer.h>
22
23
#include <chrono>
24
25
#ifdef HAS_OPENCV
26
#include <opencv2/core/core.hpp>
27
#include <opencv2/highgui/highgui.hpp>
28
#include <
yarp/cv/Cv.h
>
29
#endif
30
31
class
QUtilities
;
32
//class MainWindow;
33
34
/**********************************************************/
35
class
QEngine
:
public
QObject,
public
yarp::yarpDataplayer::DataplayerEngine
36
{
37
38
public
:
39
QUtilities
*
qutils
;
40
QMainWindow*
gui
;
41
45
QEngine
(
QUtilities
*qutilities,
int
subDirCnt, QMainWindow *
gui
, QObject *parent = NULL);
46
~QEngine
();
47
48
class
QMasterThread
:
public
yarp::yarpDataplayer::DataplayerEngine::dataplayer_thread
49
{
50
QEngine
*qEngine;
51
public
:
52
void
setEngine
(
QEngine
&qEngine)
53
{ this->qEngine = &qEngine; }
54
void
run
()
override
;
55
} *
thread
;
56
57
void
stepFromCmd
();
58
void
runNormally
();
59
60
};
61
62
#endif
Cv.h
Event.h
ImageFile.h
Image.h
PeriodicThread.h
Semaphore.h
Stamp.h
Time.h
Vector.h
contains the definition of a Vector type
QEngine::QMasterThread
Definition
worker.h:49
QEngine::QMasterThread::run
void run() override
Definition
worker.cpp:149
QEngine::QMasterThread::setEngine
void setEngine(QEngine &qEngine)
Definition
worker.h:52
QEngine
Definition
worker.h:36
QEngine::~QEngine
~QEngine()
Definition
worker.cpp:43
QEngine::gui
QMainWindow * gui
Definition
worker.h:40
QEngine::thread
QEngine::QMasterThread * thread
QEngine::stepFromCmd
void stepFromCmd()
Definition
worker.cpp:49
QEngine::qutils
QUtilities * qutils
Definition
worker.h:39
QEngine::runNormally
void runNormally()
Definition
worker.cpp:86
QUtilities
Definition
utils.h:28
utils.h
YARP
3.11.100+20250603.4+gitaa77f8b5c
src
guis
yarpdataplayer
include
worker.h
Generated on Wed Jun 4 2025 02:40:09 for YARP by
1.9.8