19 #include <QtCore/QScopedPointer> 43 QScopedPointer<MspI2cInterface> mI2c;
46 QScopedPointer<MspUsbInterface> mUsb;
49 QScopedPointer<SystemConsoleInterface> mSystemConsole;
Communicates with MSP processor over I2C bus.
Definition: mspI2cInterface.h:22
Event file abstraction. Can be opened or closed, when opened can emit signal containing event data...
Definition: eventFileInterface.h:27
static const int port
Definition: trikCommunicatorTest.cpp:24
~TrikHardwareAbstraction() override
Definition: trikHardwareAbstraction.cpp:38
EventFileInterface * createEventFile(const QString &fileName, QThread &thread) const override
Creates new event file, passes ownership to a caller.
Definition: trikHardwareAbstraction.cpp:57
MspI2cInterface & mspI2c() override
Returns MSP I2C bus implementation.
Definition: trikHardwareAbstraction.cpp:42
Communicates with MSP processor over USB bus.
Definition: mspUsbInterface.h:22
OutputDeviceFileInterface * createOutputDeviceFile(const QString &fileName) const override
Creates new output device file, passes ownership to a caller.
Definition: trikHardwareAbstraction.cpp:72
InputDeviceFileInterface * createInputDeviceFile(const QString &fileName) const override
Creates new input device file, passes ownership to a caller.
Definition: trikHardwareAbstraction.cpp:67
MspUsbInterface & mspUsb() override
Returns MSP USB bus implementation.
Definition: trikHardwareAbstraction.cpp:47
Output device file abstraction.
Definition: outputDeviceFileInterface.h:23
Hardware abstraction layer for a real robot.
Definition: trikHardwareAbstraction.h:25
QVector< uint8_t > captureV4l2StillImage(const QString &port, const QString &pathToPic) const override
Returns QVector with info about picture pixels.
Definition: trikHardwareAbstraction.cpp:77
FifoInterface * createFifo(const QString &fileName) const override
Creates new FIFO, passes ownership to a caller.
Definition: trikHardwareAbstraction.cpp:62
TrikHardwareAbstraction()
Definition: trikHardwareAbstraction.cpp:31
SystemConsoleInterface & systemConsole() override
Returns system console wrapper, able to execute system command and launch processes.
Definition: trikHardwareAbstraction.cpp:52
Definition: brickFactory.h:21
Abstraction of Linux FIFO used to receive events. To write to FIFO, use OutputDeviceFileInterface.
Definition: fifoInterface.h:23
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