|
ASCO Aerial Autonomy
|
Performs a single step of extracting data, running controller and sending data back to hardware. More...
#include <base_controller_hardware_connector.h>


Public Member Functions | |
| ControllerHardwareConnector (Controller< SensorDataType, GoalType, ControlType > &controller, HardwareType hardware_type) | |
| ControlHardwareConnector runs the controller and sends the commands to hardware. More... | |
| virtual void | run () |
| Extracts sensor data, run controller and send data back to hardware. More... | |
| void | setGoal (GoalType goal) |
| Set the goal for controller. More... | |
| GoalType | getGoal () const |
| Get the goal for controller. More... | |
| HardwareType | getHardwareType () |
| Return the type of hardware (HardwareType) used by the controller. More... | |
| ControllerStatus | getStatus () const |
| Provide the status of the controller. More... | |
Public Member Functions inherited from AbstractControllerHardwareConnector | |
| virtual | ~AbstractControllerHardwareConnector () |
| Destructor to get polymorphism. More... | |
Protected Member Functions | |
| virtual bool | extractSensorData (SensorDataType &sensor_data)=0 |
| extract relevant data from hardware/estimators More... | |
| virtual void | sendHardwareCommands (ControlType controls)=0 |
| Send hardware commands for example UAV rpy. More... | |
Protected Attributes | |
| HardwareType | hardware_type_ |
| Type of hardware controlled by the controller. More... | |
Performs a single step of extracting data, running controller and sending data back to hardware.
| SensorDataType | Type of data to take from hardware |
| GoalType | Type of goal for controller |
| ControlType | Type of control sent to hardware |
|
inline |
ControlHardwareConnector runs the controller and sends the commands to hardware.
The subclass controlhardwareconnectors should take the required hardware in the constructor and implement the run function to get the command from controller and send to hardware
| controller | Controller to run during run function |
| hardware_type | Type of Hardware. Used to group the connectors and ensure only one connector is running per hardware type. |
|
protectedpure virtual |
extract relevant data from hardware/estimators
| sensor_data | Data to be updated based on sensor measurements |
Implemented in VisualServoingControllerArmConnector, VisualServoingControllerDroneConnector, PositionControllerDroneConnector, BuiltInVelocityControllerDroneConnector, and ManualRPYTControllerDroneConnector.
|
inline |
Get the goal for controller.
|
inline |
Return the type of hardware (HardwareType) used by the controller.
|
inlinevirtual |
Provide the status of the controller.
Implements AbstractControllerHardwareConnector.
|
inlinevirtual |
Extracts sensor data, run controller and send data back to hardware.
Implements AbstractControllerHardwareConnector.
|
protectedpure virtual |
Send hardware commands for example UAV rpy.
| controls | Data structure the UAV is expecting |
Implemented in VisualServoingControllerArmConnector, VisualServoingControllerDroneConnector, PositionControllerDroneConnector, BuiltInVelocityControllerDroneConnector, and ManualRPYTControllerDroneConnector.
|
inline |
Set the goal for controller.
| goal | Goal for controller |
|
protected |
Type of hardware controlled by the controller.
Used to group controllers. Only one controller will be running per hardware.
1.8.6