as2_python_api package
Subpackages
- as2_python_api.behavior_actions package
- Submodules
- as2_python_api.behavior_actions.behavior_handler module
BehaviorHandler
BehaviorHandler.BehaviorNotAvailable
BehaviorHandler.GoalRejected
BehaviorHandler.ResultUnknown
BehaviorHandler.TIMEOUT
BehaviorHandler.destroy()
BehaviorHandler.feedback
BehaviorHandler.is_running()
BehaviorHandler.modify()
BehaviorHandler.pause()
BehaviorHandler.result
BehaviorHandler.result_status
BehaviorHandler.resume()
BehaviorHandler.start()
BehaviorHandler.status
BehaviorHandler.stop()
BehaviorHandler.wait_to_result()
- as2_python_api.behavior_actions.follow_reference_behavior module
- as2_python_api.behavior_actions.followpath_behavior module
- as2_python_api.behavior_actions.go_to_behavior module
- as2_python_api.behavior_actions.land_behavior module
- as2_python_api.behavior_actions.navigate_to_behavior module
- as2_python_api.behavior_actions.point_gimbal_behavior module
- as2_python_api.behavior_actions.takeoff_behavior module
- as2_python_api.behavior_actions.trajectory_generation_behavior module
- Module contents
- as2_python_api.behavior_manager package
- Submodules
- as2_python_api.behavior_manager.behavior_manager module
DroneBehaviorManager
DroneBehaviorManager.drone_behavior_func()
DroneBehaviorManager.get_behavior_status()
DroneBehaviorManager.pause_all_behaviors()
DroneBehaviorManager.pause_behaviors()
DroneBehaviorManager.resume_all_behaviors()
DroneBehaviorManager.resume_behaviors()
DroneBehaviorManager.stop_all_behaviors()
DroneBehaviorManager.stop_behaviors()
SwarmBehaviorManager
SwarmBehaviorManager.get_behaviors_status()
SwarmBehaviorManager.pause_all_behaviors()
SwarmBehaviorManager.pause_behaviors()
SwarmBehaviorManager.resume_all_behaviors()
SwarmBehaviorManager.resume_behaviors()
SwarmBehaviorManager.stop_all_behaviors()
SwarmBehaviorManager.stop_behaviors()
SwarmBehaviorManager.swarm_all_behavior_func()
SwarmBehaviorManager.swarm_behavior_func()
ThreadWithReturnValue
- Module contents
- as2_python_api.mission_interpreter package
- Submodules
- as2_python_api.mission_interpreter.mission module
- as2_python_api.mission_interpreter.mission_interpreter module
MissionInterpreter
MissionInterpreter.append_mission()
MissionInterpreter.drone
MissionInterpreter.feedback
MissionInterpreter.feedback_dict
MissionInterpreter.insert_mission()
MissionInterpreter.load_mission()
MissionInterpreter.load_modules()
MissionInterpreter.mission
MissionInterpreter.mission_stack
MissionInterpreter.modify_current()
MissionInterpreter.next_item()
MissionInterpreter.pause_mission()
MissionInterpreter.reset()
MissionInterpreter.resume_mission()
MissionInterpreter.shutdown()
MissionInterpreter.start_mission()
MissionInterpreter.status
MissionInterpreter.stop_mission()
test()
- as2_python_api.mission_interpreter.mission_stack module
- as2_python_api.mission_interpreter.ros2_adapter module
- Module contents
- as2_python_api.modules package
- Submodules
- as2_python_api.modules.dummy_module module
- as2_python_api.modules.follow_path_gps_module module
- as2_python_api.modules.follow_path_module module
- as2_python_api.modules.follow_reference_module module
- as2_python_api.modules.go_to_gps_module module
- as2_python_api.modules.go_to_module module
- as2_python_api.modules.gps_module module
- as2_python_api.modules.land_module module
- as2_python_api.modules.module_base module
- as2_python_api.modules.motion_reference_handler_module module
- as2_python_api.modules.navigate_to_module module
- as2_python_api.modules.point_gimbal_module module
- as2_python_api.modules.rtl_module module
- as2_python_api.modules.takeoff_module module
- as2_python_api.modules.trajectory_generation_module module
- Module contents
- as2_python_api.service_clients package
- as2_python_api.shared_data package
- Submodules
- as2_python_api.shared_data.gps_data module
- as2_python_api.shared_data.orientation_data module
- as2_python_api.shared_data.platform_info_data module
- as2_python_api.shared_data.pose_data module
- as2_python_api.shared_data.position_data module
- as2_python_api.shared_data.twist_data module
- Module contents
- as2_python_api.tools package
Submodules
as2_python_api.drone_interface module
Drone interface to easily command drones with Aerostack2.
- class as2_python_api.drone_interface.DroneInterface(drone_id: str = 'drone0', verbose: bool = False, use_sim_time: bool = False, spin_rate: float = 20.0)[source]
Bases:
DroneInterfaceBase
Drone interface node.
as2_python_api.drone_interface_base module
Python interface base.
- class as2_python_api.drone_interface_base.DroneInterfaceBase(drone_id: str = 'drone0', verbose: bool = False, use_sim_time: bool = False, spin_rate: float = 20.0, executor: ~rclpy.executors.Executor = <class 'rclpy.executors.SingleThreadedExecutor'>)[source]
Bases:
Node
Drone interface base node.
- property drone_id: str
Get drone id (namespace).
- Return type:
str
- property info: dict[str, bool | str]
Get drone info.
- Return type:
dict[str, Union[bool, str]]
- property orientation: list[float]
Get drone orientation [roll, pitch, yaw] in rad.
- Return type:
list[float]
- property position: list[float]
Get drone position [x, y, z] in m.
- Return type:
list[float]
- send_emergency_hover() None [source]
Set controller to hover mode. You will have to take the control manually.
- send_emergency_hover_to_aircraft() None [source]
Call platform hover.
BE CAREFUL, you will have to take it control manually!
- send_emergency_killswitch_to_aircraft() None [source]
Call platform stop.
BE CAREFUL, motors will stop!
- property speed: list[float]
Get drone speed [vx, vy, vz] in m/s.
- Return type:
list[float]
as2_python_api.drone_interface_gps module
Drone interface GPS to easily command drones with Aerostack2.
- class as2_python_api.drone_interface_gps.DroneInterfaceGPS(drone_id: str = 'drone0', verbose: bool = False, use_sim_time: bool = False, spin_rate: float = 20.0)[source]
Bases:
DroneInterfaceBase
Drone interface node.
as2_python_api.drone_interface_teleop module
Drone interface with motion handlers to teleoperate.
- class as2_python_api.drone_interface_teleop.DroneInterfaceTeleop(drone_id: str = 'drone0', verbose: bool = False, use_sim_time: bool = False, spin_rate: float = 20.0)[source]
Bases:
DroneInterface
Drone interface for teleoperation.