43 explicit Controller(
const QString &configPath);
48 void runFile(
const QString &filePath);
51 void runScript(
const QString &
script);
67 bool communicatorConnectionStatus();
70 bool gamepadConnectionStatus()
const;
74 void abortExecution();
78 void showRunningWidget(
const QString &fileName,
int scriptId);
81 void hideRunningWidget(
int scriptId);
84 void showError(
const QString &error,
int scriptId);
87 void hideGraphicsWidget();
90 void hideScriptWidgets();
97 void gamepadDisconnected();
100 void gamepadConnected();
103 void wiFiConnected();
106 void wiFiDisconnected();
110 void communicatorStatusChanged(
bool status);
113 void mailboxStatusChanged(
bool connected);
116 void scriptExecutionCompleted(
const QString &error,
int scriptId);
118 void scriptExecutionFromFileStarted(
const QString &fileName,
int scriptId);
119 void directScriptExecutionStarted(
int scriptId);
121 void updateCommunicatorStatus();
124 QScopedPointer<trikControl::BrickInterface> mBrick;
125 QScopedPointer<trikNetwork::MailboxInterface> mMailbox;
126 QScopedPointer<trikScriptRunner::TrikScriptRunner> mScriptRunner;
127 QScopedPointer<trikCommunicator::TrikCommunicator> mCommunicator;
128 QScopedPointer<trikTelemetry::TrikTelemetry> mTelemetry;
129 QScopedPointer<trikWiFi::TrikWiFi> mWiFi;
130 QScopedPointer<AutoRunner> mAutoRunner;
132 QHash<int, RunningWidget *> mRunningWidgets;
Provides backend features like Qt Script runner for frontend.
Definition: controller.h:35
Abstract class for widgets which will be used for conversation with user.
Definition: mainWidget.h:28
Class for WiFi management.
Definition: trikWiFi.h:31
Definition: abstractIndicator.h:21
Definition: controller.h:25
Allows communication between robots.
Definition: mailboxInterface.h:31
script
Definition: system.py:83
Interface representing TRIK controller board and devices installed on it, also provides access to per...
Definition: brickInterface.h:46