as2_python_api.drone_interface_base module
Python interface base.
- class as2_python_api.drone_interface_base.DroneInterfaceBase(*args: Any, **kwargs: Any)
Bases:
Node
Drone interface base node
- arm() None
Arm drone.
- disarm() None
Disarm drone.
- 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]]
- load_module(pkg: str) None
load module on drone
- offboard() None
Enable offboard mode.
- 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
Set controller to hover mode. You will have to take the control manually
- send_emergency_hover_to_aircraft() None
Call platform hover. BE CAREFUL, you will have to take it control manually!
- send_emergency_killswitch_to_aircraft() None
Call platform stop. BE CAREFUL, motors will stop!
- send_emergency_land() None
Emergency landing
- send_emergency_land_to_aircraft() None
Call platform emergency land
- shutdown() None
Shutdown properly
- property speed: List[float]
Get drone speed (vx, vy, vz) in m/s.
- Return type:
List[float]