How to capture photos in a fixed frequency while flying? #4958
Unanswered
Konjak2e8
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried using multithread to make a drone capture photos while flying by trajectory. However, after it reached the first trajectory point, the drone just hovered there, and the python script keeps waiting for
simGetImages()to complete. Here is my code:settings.jsonis here:{ "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/main/docs/settings.md", "SettingsVersion": 1.2, "SimMode": "Multirotor", "ViewMode": "Manual", "ClockSpeed": 1, "SubWindows": [ {"WindowID": 0, "ImageType": 0, "CameraName": "front_center", "Visible": true}, {"WindowID": 1, "ImageType": 3, "CameraName": "front_center", "Visible": true}, {"WindowID": 2, "ImageType": 4, "CameraName": "front_center", "Visible": true} ], "Recording": { "RecordInterval": 0.05, "Cameras": [ { "CameraName": "front_center", "ImageType": 0, "PixelsAsFloat": false, "Compress": true } ] }, "CameraDefaults": { "CaptureSettings": [ { "ImageType": 0, "Width": 600, "Height": 400, "FOV_Degrees": 90 } ] }, "Vehicles": { "UAV1": { "VehicleType": "SimpleFlight", "X": 0, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV2": { "VehicleType": "SimpleFlight", "X": 1.5, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV3": { "VehicleType": "SimpleFlight", "X": -1.5, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV4": { "VehicleType": "SimpleFlight", "X": 3, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV5": { "VehicleType": "SimpleFlight", "X": -3, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV6": { "VehicleType": "SimpleFlight", "X": 4.5, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV7": { "VehicleType": "SimpleFlight", "X": -4.5, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV8": { "VehicleType": "SimpleFlight", "X": 6, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV9": { "VehicleType": "SimpleFlight", "X": -6, "Y": 0, "Z": 0, "Yaw": 0 }, "UAV10": { "VehicleType": "SimpleFlight", "X": 7.5, "Y": 0, "Z": 0, "Yaw": 0 } } }Beta Was this translation helpful? Give feedback.
All reactions