Provides functions to switch between active controllers and get goals.
More...
#include <base_robot_system.h>
Provides functions to switch between active controllers and get goals.
| BaseRobotSystem::BaseRobotSystem |
( |
| ) |
|
|
inline |
Constructor to initialize active controllers and mutexes to NULL.
| void BaseRobotSystem::abortController |
( |
HardwareType |
hardware_type | ) |
|
|
inline |
Remove active controller for given hardware type.
- Parameters
-
| hardware_type | Type of hardware for which active controller is switched off |
Get the status of the active controller.
- Parameters
-
| hardware_type | Hardware to get controller for |
- Returns
- status of the active controller. If no active controller returns status as not engaged
template<class ControllerHardwareConnectorT , class GoalT >
| GoalT BaseRobotSystem::getGoal |
( |
| ) |
const |
|
inline |
Get the goal from connector.
- Template Parameters
-
| ControllerHardwareConnectorT | Type of connector to use |
| GoalT | Type of Goal to get |
- Returns
- goal of GoalT type
template<class ControllerHardwareConnectorT >
Get the status of a controller.
- Template Parameters
-
| ControllerHardwareConnectorT | Type of connector |
- Returns
- Status is active/completed/critical
| virtual std::string BaseRobotSystem::getSystemStatus |
( |
| ) |
const |
|
pure virtual |
| void BaseRobotSystem::runActiveController |
( |
HardwareType |
hardware_type | ) |
|
|
inline |
Run active controller stored for a given hardware type.
- Parameters
-
| hardware_type | Type of hardware for which active controller is run |
template<class ControllerHardwareConnectorT , class GoalT >
| void BaseRobotSystem::setGoal |
( |
GoalT |
goal | ) |
|
|
inline |
sets goal to the connector and swaps the active connector with the specified connector type.
- Template Parameters
-
| ControllerHardwareConnectorT | type of connector to use |
| GoalT | Type of Goal to set to connector |
- Parameters
-
| goal | Goal to set to connector |
Container to store and retrieve controller-hardware-connectors.
The documentation for this class was generated from the following file: