Executes tasks and manages their execution state.
More...
#include <task_executor.hpp>
Executes tasks and manages their execution state.
The TaskExecutor class is responsible for executing tasks and managing their execution state. It interacts with ScriptWorker objects to perform the actual execution of tasks.
◆ TaskExecutor()
TaskExecutor::TaskExecutor |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ executeTask()
void TaskExecutor::executeTask |
( |
const Subtask & |
subtask, |
|
|
bool |
startSolution = false |
|
) |
| |
Executes a given subtask.
- Parameters
-
subtask | The subtask to be executed. |
◆ forceStop()
void TaskExecutor::forceStop |
( |
| ) |
|
Forces the stop of all currently running tasks.
◆ resetRobot()
void TaskExecutor::resetRobot |
( |
| ) |
|
Triggers python script to reset the robot to its initial state and removes all objects from the scene.
◆ resetRobotFailed
void TaskExecutor::resetRobotFailed |
( |
const QString & |
error | ) |
|
|
signal |
Signal emitted when robot reset fails.
- Parameters
-
◆ resetRobotFinished
void TaskExecutor::resetRobotFinished |
( |
| ) |
|
|
signal |
Signal emitted when robot reset finishes.
◆ resetRobotStarted
void TaskExecutor::resetRobotStarted |
( |
| ) |
|
|
signal |
Signal emitted when robot reset starts.
◆ taskExecutionFailed
void TaskExecutor::taskExecutionFailed |
( |
const QString & |
error | ) |
|
|
signal |
Signal emitted when task execution fails.
- Parameters
-
◆ taskExecutionFinished
void TaskExecutor::taskExecutionFinished |
( |
| ) |
|
|
signal |
Signal emitted when task execution finishes.
◆ taskExecutionStarted
void TaskExecutor::taskExecutionStarted |
( |
| ) |
|
|
signal |
Signal emitted when task execution starts.
The documentation for this class was generated from the following files: