|
ASCO Aerial Autonomy
|
Manages communication between a drone plugin and a position controller that outputs position commands. More...
#include <position_controller_drone_connector.h>


Public Member Functions | |
| PositionControllerDroneConnector (parsernode::Parser &drone_hardware, Controller< PositionYaw, PositionYaw, PositionYaw > &controller) | |
| Constructor. More... | |
Public Member Functions inherited from ControllerHardwareConnector< PositionYaw, PositionYaw, PositionYaw > | |
| ControllerHardwareConnector (Controller< PositionYaw, PositionYaw, PositionYaw > &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 (PositionYawgoal) |
| Set the goal for controller. More... | |
| PositionYaw | 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 (PositionYaw &sensor_data) |
| does not extract any data since nothing is needed More... | |
| virtual void | sendHardwareCommands (PositionYaw controls) |
| Send position commands to hardware. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ControllerHardwareConnector< PositionYaw, PositionYaw, PositionYaw > | |
| HardwareType | hardware_type_ |
| Type of hardware controlled by the controller. More... | |
Manages communication between a drone plugin and a position controller that outputs position commands.
|
inline |
Constructor.
Store drone hardware with hardware type as UAV. Uses parsernode::Parser::cmdwaypoint function.
| drone_hardware | Drone hardware used to send commands |
| controller | Position controller that achieves a desired position, yaw |
|
protectedvirtual |
does not extract any data since nothing is needed
| sensor_data | Current position and yaw of UAV |
Implements ControllerHardwareConnector< PositionYaw, PositionYaw, PositionYaw >.
|
protectedvirtual |
Send position commands to hardware.
| controls | position command to send to UAV |
Implements ControllerHardwareConnector< PositionYaw, PositionYaw, PositionYaw >.
1.8.6