|
ASCO Aerial Autonomy
|
Maps Joystick goals to rpythrust commands to quadrotor. More...
#include <manual_rpyt_controller_drone_connector.h>


Public Member Functions | |
| ManualRPYTControllerDroneConnector (parsernode::Parser &drone_hardware, Controller< JoysticksYaw, EmptyGoal, RollPitchYawThrust > &controller) | |
| Constructor. More... | |
Public Member Functions inherited from ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust > | |
| ControllerHardwareConnector (Controller< JoysticksYaw, EmptyGoal, RollPitchYawThrust > &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 (EmptyGoalgoal) |
| Set the goal for controller. More... | |
| EmptyGoal | 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 (JoysticksYaw &sensor_data) |
| Extracts joystick commands and current yaw from hardware. More... | |
| virtual void | sendHardwareCommands (RollPitchYawThrust controls) |
| Send RPYT commands to hardware. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust > | |
| HardwareType | hardware_type_ |
| Type of hardware controlled by the controller. More... | |
Maps Joystick goals to rpythrust commands to quadrotor.
|
inline |
Constructor.
Store drone hardware with hardware type as UAV. Uses parsernode::Parser::cmdrpythrust function.
| drone_hardware | Drone hardware used to send commands |
| controller | RpyThrust controller |
|
protectedvirtual |
Extracts joystick commands and current yaw from hardware.
| sensor_data | Joystick commands and current yaw |
Implements ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust >.
|
protectedvirtual |
Send RPYT commands to hardware.
| controls | RPYT command to send to drone |
Implements ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust >.
1.8.6