17 #include <QtCore/QObject> 18 #include <QtCore/QScopedPointer> 19 #include <QtCore/QString> 20 #include <QtCore/QStringList> 26 class HardwareAbstractionInterface;
28 class OutputDeviceFileInterface;
29 class SystemConsoleInterface;
53 Status status()
const override;
68 void sendCommand(
const QString &command);
72 void onNewDataInOutputFifo(
const QString &data);
76 virtual QString sensorName()
const = 0;
79 virtual void onNewData(
const QString &dataLine) = 0;
82 void initVirtualSensor();
86 bool launchSensorScript(
const QString &command);
89 void startVirtualSensor();
104 QScopedPointer<trikHal::FifoInterface> mOutputFifo;
111 QScopedPointer<trikHal::OutputDeviceFileInterface> mInputFile;
114 QStringList mCommandQueue;
123 const QString mOutputFile;
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
Status
Device status.
Definition: deviceInterface.h:33
Definition: trikCommunicator.h:27
TRIK device interface, base interface for everything that can be plugged to a brick or already on boa...
Definition: deviceInterface.h:23
Base class for all virtual sensor workers.
Definition: abstractVirtualSensorWorker.h:38
Definition: brickFactory.h:21
script
Definition: system.py:83
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it...
Definition: hardwareAbstractionInterface.h:29
Represents console of an OS.
Definition: systemConsoleInterface.h:22