#include <Decomposition.h>
◆ Decomposition() [1/3]
Decomposition::Decomposition |
( |
| ) |
|
◆ Decomposition() [2/3]
Decomposition::Decomposition |
( |
std::shared_ptr< SemanticTask > |
_mainTask | ) |
|
- Parameters
-
_mainTask | The root task in the decomposition tree. |
◆ Decomposition() [3/3]
- Parameters
-
_node | The xml node containing the decomposition information. |
_problem | The parent MPProblem that this decomposition belongs to. |
◆ ~Decomposition()
Decomposition::~Decomposition |
( |
| ) |
|
◆ AddGroupMotionTask()
void Decomposition::AddGroupMotionTask |
( |
SemanticTask * |
_task | ) |
|
Add a semantic task to the set of tasks with group motion tasks.
- Parameters
-
_task | Task with corresponding group motion task. |
◆ AddMotionTask()
Add a semantic task to the set of tasks with motion tasks.
- Parameters
-
_task | Task with corresponding motion task. |
◆ AddTask()
void Decomposition::AddTask |
( |
std::shared_ptr< SemanticTask > |
_task | ) |
|
Add a new task to the decomposition.
- Parameters
-
_task | New task to add to decomposition. |
◆ GetCoordinator()
Robot * Decomposition::GetCoordinator |
( |
| ) |
const |
Return the robot responsible for the decomposition.
◆ GetGroupMotionTasks()
std::vector< SemanticTask * > & Decomposition::GetGroupMotionTasks |
( |
| ) |
|
Return the set of tasks with corresponding group motion tasks.
◆ GetLabel()
const std::string Decomposition::GetLabel |
( |
| ) |
const |
Return the label for the decomposition.
◆ GetMotionTasks()
std::vector< SemanticTask * > & Decomposition::GetMotionTasks |
( |
| ) |
|
Return the set of tasks with corresponding motion tasks.
◆ GetRootTask()
Return the root task in the decomposition tree.
◆ GetTask()
Return the named task from the decomposition.
- Parameters
-
_label | Label of desired task. |
◆ GetTaskMap()
const std::unordered_map< std::string, std::shared_ptr< SemanticTask > > & Decomposition::GetTaskMap |
( |
| ) |
const |
Return the map of all semantic tasks in the decomposition.
◆ IsComplete()
bool Decomposition::IsComplete |
( |
| ) |
|
Checks if the decompsition has been marked complete.
◆ SetComplete()
void Decomposition::SetComplete |
( |
bool |
_complete = true | ) |
|
Marks the decomposition as (in)complete.
- Parameters
-
_complete | Flag indicating complete status. |
◆ SetCoordinator()
void Decomposition::SetCoordinator |
( |
Robot * |
_robot | ) |
|
Set the coordinator responsible for the decomposition.
- Parameters
-
_robot | The new coordinator responsible for the decomposition. |
◆ SetRootTask()
Set the root task for the decomposition tree.
- Parameters
-
_task | The new root task in the decomp tree. |
The documentation for this class was generated from the following files:
- /opt/actions-runner/_work/open-ppl/open-ppl/src/MPProblem/TaskHierarchy/Decomposition.h
- /opt/actions-runner/_work/open-ppl/open-ppl/src/MPProblem/TaskHierarchy/Decomposition.cpp