AirGen Drone
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
moveByVelocity
Fly the drone with velocity
for the specified duration
of seconds with respect to chosen frame (NED or Nav).
Velocity type containing the three axis (X, Y, Z) velocity with respect to selected frame
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.
Examples
moveToPositionDelta
Move the drone by position_delta: (x_val, y_val, z_val) relative to the current location with respect to selected frame.
delta position of type Position(x, y, z) in meters with respect to the world coordinate
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)
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)
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).
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
Current 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