This tutorial demonstrates how to use the AirGen simulation environment to control a drone, capture infrared (thermal) images, and highlight fire objects for thermal analysis. You will learn how to:
Command the drone to take off, ascend to a height of 25 units, and rotate to face west (yaw -90 degrees).
Copy
Ask AI
# Take off and move to a specific altitude and orientationairgen_drone_0.client.takeoffAsync().join()airgen_drone_0.client.moveToZAsync(-25, 2).join()airgen_drone_0.client.rotateToYawAsync(-90).join()
To make fire objects stand out in the infrared image, set their segmentation ID to the highest intensity value.
Copy
Ask AI
# List all objects in the scene whose names start with "Fire"fire_obj_refs = airgen_drone_0.client.simListSceneObjects("Fire.*")print(fire_obj_refs)# Select the first fire objectfire_obj = fire_obj_refs[^0]# Set the fire object's segmentation ID to 255 (max intensity)airgen_drone_0.client.simSetSegmentationObjectID(fire_obj, 255, True)