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>
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
31class QUtilities;
32//class MainWindow;
33
34/**********************************************************/
35class QEngine : public QObject, public yarp::yarpDataplayer::DataplayerEngine
36{
37
38public:
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;
56
57 void stepFromCmd();
58 void runNormally();
59
60};
61
62#endif
contains the definition of a Vector type
void run() override
Definition worker.cpp:149
void setEngine(QEngine &qEngine)
Definition worker.h:52
~QEngine()
Definition worker.cpp:43
QMainWindow * gui
Definition worker.h:40
QEngine::QMasterThread * thread
void stepFromCmd()
Definition worker.cpp:49
QUtilities * qutils
Definition worker.h:39
void runNormally()
Definition worker.cpp:86