trikRuntime
trikScriptRunnerInterface.h File Reference
Include dependency graph for trikScriptRunnerInterface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trikScriptRunner::TrikScriptRunnerInterface
 Interface for all script executors. More...
 
struct  trikScriptRunner::TrikScriptRunnerInterface::Helper
 

Namespaces

 trikScriptRunner
 

Macros

#define TRIKSCRIPTRUNNER_EXPORT   Q_DECL_IMPORT
 
#define REGISTER_METATYPE(TYPE)   qRegisterMetaType<TYPE*>(TYPE::staticMetaObject.className());
 
#define REGISTER_DEVICES_WITH_TEMPLATE(TEMPLATE)
 Here we define a convenient template that registers all devices used in trik. More...
 

Enumerations

enum  trikScriptRunner::ScriptType { trikScriptRunner::ScriptType::UNINITIALIZED = -1, trikScriptRunner::ScriptType::JAVASCRIPT, trikScriptRunner::ScriptType::PYTHON, trikScriptRunner::ScriptType::Size }
 

Functions

static constexpr std::underlying_type< ScriptType >::type trikScriptRunner::to_underlying (ScriptType t) noexcept
 

Macro Definition Documentation

#define REGISTER_DEVICES_WITH_TEMPLATE (   TEMPLATE)
Value:
Uses virtual line sensor to detect x coordinate of a center of an object that was in camera&#39;s field o...
Definition: lineSensorInterface.h:29
Class for work with i2c.
Definition: i2cDeviceInterface.h:26
Class that emits events from event device with specific event type and event code.
Definition: eventCodeInterface.h:27
Controls light-emitting diode on a brick.
Definition: ledInterface.h:26
Interface that represents linux FIFO file, which is commonly used by various sensors.
Definition: fifoInterface.h:26
Abstract motor. It is differently implemented by different motor types (like servo and power motors)...
Definition: motorInterface.h:26
Sensor that returns a vector.
Definition: vectorSensorInterface.h:29
Generic event device.
Definition: eventDeviceInterface.h:27
Provides battery voltage info.
Definition: batteryInterface.h:26
Encoder of power motor.
Definition: encoderInterface.h:26
Represents event that can be produced by event device.
Definition: eventInterface.h:27
Uses virtual color sensor to detect dominant color in every cell of m * n grid of camera field of vie...
Definition: colorSensorInterface.h:27
Remote control of a robot via Android gamepad.
Definition: gamepadInterface.h:24
Abstract sensor, inherited by various sensor types.
Definition: sensorInterface.h:26
Class that returns raw and processed data from the gyroscope.
Definition: gyroSensorInterface.h:27
Provides ability to draw something on robot display.
Definition: displayInterface.h:28
Class for handling keys on a brick.
Definition: keysInterface.h:26
Allows communication between robots.
Definition: mailboxInterface.h:31
Uses virtual sound sensor to detect angle of sound source.
Definition: soundSensorInterface.h:27
Controls marker.
Definition: markerInterface.h:27
Uses virtual line sensor to detect x coordinate of a center of an object that was in camera&#39;s field o...
Definition: objectSensorInterface.h:28

Here we define a convenient template that registers all devices used in trik.

When creating a new device(interface), you should append it to this list. So it lets you write the device just one time rather than append appropriate line to each place that uses devices. ATTENTION: do not forget to append newly created device to this list!

#define REGISTER_METATYPE (   TYPE)    qRegisterMetaType<TYPE*>(TYPE::staticMetaObject.className());
#define TRIKSCRIPTRUNNER_EXPORT   Q_DECL_IMPORT