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


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