Skip to main content

AerialDrone

Inherits from: Robot Abstract base class defining the interface for aerial drone robots. This class extends the base Robot class with additional methods specific to aerial robot tasks and control.

Inherited methods

  • From Robot: addSensor, getImage, getState, getPosition, getOrientation, moveByVelocity, stop, cleanup

init

AerialDrone.__init__(server_port: int = 4774, enable_websocket: bool = True, client_timeout: float = 30.0) -> None
Initialize aerial drone robot.
Arguments
server_port (int)
int
Port for WebSocket server (default 4774)
enable_websocket (bool)
bool
Whether to start the WebSocket server (default True)
client_timeout (float)
float
Client timeout in seconds (default 30.0)
Returns
returns
None

takeoff

AerialDrone.takeoff() -> None
Command the drone to takeoff. Initiates takeoff sequence and transitions the drone to hover mode at a safe altitude.
Returns
returns
None
Raises
NotImplementedError
Must be implemented by subclasses

land

AerialDrone.land() -> None
Command the drone to land. Initiates controlled landing sequence and safely lands the drone at the current position.
Returns
returns
None
Raises
NotImplementedError
Must be implemented by subclasses