ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
ManualRPYTControllerDroneConnector Class Reference

Maps Joystick goals to rpythrust commands to quadrotor. More...

#include <manual_rpyt_controller_drone_connector.h>

Inheritance diagram for ManualRPYTControllerDroneConnector:
Inheritance graph
[legend]
Collaboration diagram for ManualRPYTControllerDroneConnector:
Collaboration graph
[legend]

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...
 

Detailed Description

Maps Joystick goals to rpythrust commands to quadrotor.

Constructor & Destructor Documentation

ManualRPYTControllerDroneConnector::ManualRPYTControllerDroneConnector ( parsernode::Parser &  drone_hardware,
Controller< JoysticksYaw, EmptyGoal, RollPitchYawThrust > &  controller 
)
inline

Constructor.

Store drone hardware with hardware type as UAV. Uses parsernode::Parser::cmdrpythrust function.

Parameters
drone_hardwareDrone hardware used to send commands
controllerRpyThrust controller

Member Function Documentation

bool ManualRPYTControllerDroneConnector::extractSensorData ( JoysticksYaw sensor_data)
protectedvirtual

Extracts joystick commands and current yaw from hardware.

Parameters
sensor_dataJoystick commands and current yaw
Returns
true if succesfully extracted joystick data

Implements ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust >.

void ManualRPYTControllerDroneConnector::sendHardwareCommands ( RollPitchYawThrust  controls)
protectedvirtual

Send RPYT commands to hardware.

Parameters
controlsRPYT command to send to drone

Implements ControllerHardwareConnector< JoysticksYaw, EmptyGoal, RollPitchYawThrust >.


The documentation for this class was generated from the following files: