as2_keyboard_teleoperation.drone_manager module

Drone control manager.

class as2_keyboard_teleoperation.drone_manager.DroneManager(uav_list: List[as2_python_api.drone_interface_teleop.DroneInterfaceTeleop], drone_id_list, pose_frame_id, twist_frame_id)

Bases: object

Manage drone control.

emergency_stop(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop)

Emergency stop.

execute_common_behaviors(method)

Execute common behaviors.

Parameters:

method (function) – behavior to be executed

execute_function(target, args)

Execute function.

Parameters:

method (function) – function to be executed

go_to_pose(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop, position, orientation)

Go to pose.

hover(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop)

Hover.

land(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop)

Land.

manage_common_behaviors(key)

Manage behaviors common to every control mode.

Parameters:

key (string) – Control order

manage_pose_behaviors(key, value_list)

Manage pose control behaviors.

Parameters:
  • key (string) – Control order

  • value_list (float) – Pose value

manage_speed_behaviors(key, value_list)

Manage speed control behaviors.

Parameters:
  • key (string) – Control order

  • value_list (float) – Speed value

move_at_speed(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop, lineal, yaw_speed)

Move at speed.

take_off(uav: as2_python_api.drone_interface_teleop.DroneInterfaceTeleop)

Take off.