/
vasandi
/
AirSim
Обзор
Документация
Войти
/
vasandi
/
AirSim
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
PythonClient/multirotor/drone_stress_test.py
21 строка
549 B
Андрей Васильченко
сборка под ubuntu 26.04
08 июл 2026, 10:15
08 июл 2026, 10:15
d53c5a2
Код
Авторство
О чём код?
import setup_path import airsim # this script moves the drone to a location, then rests it thousands of time # purpose of this script is to stress test reset API # connect to the AirSim simulator client = airsim.MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) for idx in range(3000): client.moveToPositionAsync(0, 0, -10, 5).join() client.reset() client.enableApiControl(True) print("%d" % idx) # that's enough fun for now. let's quite cleanly client.enableApiControl(False)