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() bool
Arm drone.
- disarm() bool
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.
- manual() bool
Disable offboard mode.
- offboard() bool
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]