Skip to main content

AirGenDrone

Inherits from: AerialRobot

AirGenDrone

Set up client and connect to airgen Args: None Returns: None

record_state

undo

reset

try_cancel_robot_last_task

setVelocity

Set the velocity of the drone for moving instructions
required
velocity in meters per second

moveByVelocity

Fly the drone with velocity for the specified duration of seconds with respect to chosen frame (NED or Nav).
required
VelocityVelocity type containing the three axis (X, Y, Z) velocity with respect to selected frame
required
number of seconds that the drone should be moving
the frame of reference for the velocity vector, one of (default: “ned”)
whether the function should block until the drone finishes moving (default: True)

takeoff

Takeoff the aerial robot

land

Land the aerial robot

getPosition

Get the current position of the drone with respect to the world coordinate.

moveToPosition

Move the drone to absolute position: (x_val, y_val, z_val) with respect to world coordinate frame.
required
Positiontarget position of type Position(x, y, z) in meters with respect to the world coordinate
whether the function should block until the drone finishes moving (default: True)

Examples

moveToPositionDelta

Move the drone by position_delta: (x_val, y_val, z_val) relative to the current location with respect to selected frame.
required
Positiondelta position of type Position(x, y, z) in meters with respect to the world coordinate
required
the frame of reference for the position vector, one of (default: “ned”)
whether the function should block until the drone finishes moving (default: True)

moveToGPS

Move the drone to gps coordinate: (lat, lng, alt)
required
latitude
required
longitude
required
altitude
whether the function should block until the drone finishes moving (default: True)

setYaw

Set the yaw (in radians) of the drone to the specified degrees. Yaw measures the rotation of the drone around the z-axis (downwards)
required
the target yaw (radians) for the drone
whether the function should block until the drone finishes moving (default: True)

setYawDelta

Set a yaw delta (in radians) for the drone to rotate to. Yaw measures the rotation of the drone around the z-axis (downwards).
required
the change in yaw (radians) for the drone
whether the function should block until the drone finishes moving (default: True)

getYaw

Return the current yaw of the drone in radians. Yaw measures the rotation of the drone

getOrientation

Return the current orientation of the drone in radians
OrientationCurrent orientation of the drone in Orientation type with pitch, roll, and yaw in radians

getImage

return the image of camera(camera_name) with the drone’s current position and pose
required
name of the camera, one of front_center or bottom_center
required
supported image types,
ImageImage type containing the requested image and the camera parameters of capture.