Learn Environment
Signals | Public Member Functions | List of all members
TaskExecutor Class Reference

Executes tasks and manages their execution state. More...

#include <task_executor.hpp>

Inheritance diagram for TaskExecutor:
Inheritance graph
Collaboration diagram for TaskExecutor:
Collaboration graph

Signals

void taskExecutionStarted ()
 Signal emitted when task execution starts. More...
 
void taskExecutionFinished ()
 Signal emitted when task execution finishes. More...
 
void taskExecutionFailed (const QString &error)
 Signal emitted when task execution fails. More...
 
void resetRobotStarted ()
 Signal emitted when robot reset starts. More...
 
void resetRobotFinished ()
 Signal emitted when robot reset finishes. More...
 
void resetRobotFailed (const QString &error)
 Signal emitted when robot reset fails. More...
 

Public Member Functions

 TaskExecutor (QObject *parent=nullptr)
 Constructs a TaskExecutor object. More...
 
void executeTask (const Subtask &subtask, bool startSolution=false)
 Executes a given subtask. More...
 
void forceStop ()
 Forces the stop of all currently running tasks. More...
 
void resetRobot ()
 Triggers python script to reset the robot to its initial state and removes all objects from the scene. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TaskExecutor()

TaskExecutor::TaskExecutor ( QObject parent = nullptr)
explicit

Constructs a TaskExecutor object.

Parameters
parentPointer to the parent QObject.

Member Function Documentation

◆ executeTask()

void TaskExecutor::executeTask ( const Subtask subtask,
bool  startSolution = false 
)

Executes a given subtask.

Parameters
subtaskThe 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.

Here is the caller graph for this function:

◆ resetRobotFailed

void TaskExecutor::resetRobotFailed ( const QString &  error)
signal

Signal emitted when robot reset fails.

Parameters
errorThe error message.
Here is the caller graph for this function:

◆ resetRobotFinished

void TaskExecutor::resetRobotFinished ( )
signal

Signal emitted when robot reset finishes.

Here is the caller graph for this function:

◆ resetRobotStarted

void TaskExecutor::resetRobotStarted ( )
signal

Signal emitted when robot reset starts.

Here is the caller graph for this function:

◆ taskExecutionFailed

void TaskExecutor::taskExecutionFailed ( const QString &  error)
signal

Signal emitted when task execution fails.

Parameters
errorThe error message.
Here is the caller graph for this function:

◆ taskExecutionFinished

void TaskExecutor::taskExecutionFinished ( )
signal

Signal emitted when task execution finishes.

Here is the caller graph for this function:

◆ taskExecutionStarted

void TaskExecutor::taskExecutionStarted ( )
signal

Signal emitted when task execution starts.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: