百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AirSim-NeurIPS2019-Drone-Racing

> DevOps
开源

基于 Microsoft AirSim 的无人机赛车 @ NeurIPS 2019

393 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

基于 Microsoft AirSim 的无人机赛车 @ NeurIPS 2019

Game of Drones: A NeurIPS 2019 Competition

Note: This repository is not being maintained any more. Please use AirSim Drone Racing Lab.

Quickstart

  • Website
  • Register
  • Competition guidelines
  • Linux and Windows Binaries
  • Python API, airsimneurips PyPI package

Note: If you use this repository in your research, please cite our pre-print, AirSim Drone Racing Lab.

@article{madaan2020airsim,
  title={AirSim Drone Racing Lab},
  author={Madaan, Ratnesh and Gyde, Nicholas and Vemprala, Sai and Brown, Matthew and Nagami, Keiko and Taubner, Tim and Cristofalo, Eric and Scaramuzza, Davide and Schwager, Mac and Kapoor, Ashish},
  journal={arXiv preprint arXiv:2003.05654},
  year={2020}
}

Downloading and running AirSim Binaries

Downloading

  • Final round binaries and environments (v1.1)

    • tl;dr:
      • [Linux] Use the download_final_round_binaries.sh script
    • Long version:
      • Download the v1.1 Linux or Windows AirSim.zip, and unzip it.
      • Download your qualifier environments (shipped in pakfiles) - Final_Tier_1_and_Tier_2.pak and Final_Tier_3.pak.
      • Move the environment pakfiles into AirSim/AirSimExe/Content/Paks.
      • Download and move the settings.json file to ~/Documents/AirSim/settings.json.
      • Use airsimneurips >= 1.2.0
  • Qualifier binaries and environments (v1.0)

    • tl;dr:
      • [Linux] Use the download_qualification_binaries.sh script
    • Long version:
      • Download the v1.0 Linux or Windows AirSim.zip, and unzip it.
      • Download your qualifier environments (shipped in pakfiles) - Qual_Tier_1_and_Tier_3.pak and Qual_Tier_2.pak.
      • Move the environment pakfiles into AirSim/AirSimExe/Content/Paks.
      • Download and move the settings.json file to ~/Documents/AirSim/settings.json.
  • Training binaries and environments (v0.3):

    • tl;dr:
      • [Linux] Use the download_training_binaries.sh script
    • Long version:
      • Download the v0.3 Linux or Windows AirSim.zip, and unzip it.
      • Download training environments (shipped in pakfiles) - Soccer_Field.pak, ZhangJiaJie.pak, and Building99.pak.
      • Move the environment pakfiles into AirSim/AirSimExe/Content/Paks.
      • Download and move the settings.json file to ~/Documents/AirSim/settings.json.

Notes:

  • Source code (zip) or Source code (tar.gz) might not be up-to-date with the master branch of this repository. It can be lagging by n commits to master since this release, specified on the released page.
    For the code on this repository, it's best to just git clone.

  • List of disabled APIs in qualification binaries: The following APIs on the server side in the qualification binaries. You should see an error message pop up in the terminal message when you call these. They do work in the training binaries:

    • simSetObjectPose
    • simSetVehiclePose
    • simSetObjectScale
    • simGetObjectScale
    • simSetSegmentationObjectID
    • simGetSegmentationObjectID
    • simPause
    • simContinueForTime

Running

  • Linux

    • Open a terminal window, cd to AirSim_Training/ or AirSim_Qualification directory, and enter the following command:
      ./AirSimExe.sh -windowed -opengl4
    • Running headless (with rendering of images enabled):
      DISPLAY= ./AirSimExe.sh -opengl4
    • To disable rendering completely for training planning and / or control policies, you can use:
      -./AirSimExe.sh -nullrhi
      Note that simGetImages will not work with this option.
    • To increase speed of simGetImages / increase speed of Unreal Engine's game thread;
      • Add the "ViewMode": "NoDisplay" to your settings.json file, or use this file directly.
        This disables rendering in the main viewport camera.
        Then run the binary with the following options.
      ./AirSimExe.sh -windowed -NoVSync -BENCHMARK

      You can also use the Unreal console commands Stat FPS, Stat UnitGraph, r.VSync, t.maxFPS. See Issue #111 for more details.

  • Windows

    • Navigate to the AirSim/ directory, and double-click run.bat (or AirSimExe.exe -windowed)

Docker

  • Prerequisites:

    • Install docker-ce.
    • Complete the desired post-installation steps for linux after installing docker.
      At the minimum, the page tells you how torun docker without root, and other useful setup options.
    • Install nvidia-docker2.
  • Dockerfile:
    We provide a sample dockerfile you can modify.
    It downloads the training and qualification binaries automatically, and installs the python client.
    By default, it uses Ubuntu 18.04 and CUDA 10.0 with OpenGL, and is build on top of nvidia/cudagl:10.0-devel-ubuntu18.04.
    This can be changed of course, as explained in the following section.

  • Building the docker image:
    You can use build_docker_image.py to build the dockerfile above (or your own custom one)
    Usage (with default arguments)

    bash
    cd docker/;
    python3 build_docker_image.py \
        --dockerfile Dockerfile \
        --base_image nvidia/cudagl:10.0-devel-ubuntu18.04 \
        -- target_image airsim_neurips:10.0-devel-ubuntu18.04
  • Running the docker image: See docker/run_docker_image.sh to run the docker image:
    Usage

    • for running default image, training binaries, in windowed mode:
      $ ./run_docker_image.sh "" training
    • for running default image, qualification binaries, in windowed mode:
      $ ./run_docker_image.sh "" qualification
    • for running default image, training binaries, in headless mode:
      $ ./run_docker_image.sh "" training headless
    • for running default image, qualification binaries, in headless mode:
      $ ./run_docker_image.sh "" qualification headless
    • for running a custom image in windowed mode, pass in you image name and tag:
      $ ./run_docker_image.sh DOCKER_IMAGE_NAME:TAG
    • for running a custom image in headless mode, pass in you image name and tag, followed by "headless":
      $ ./run_docker_image.sh DOCKER_IMAGE_NAME:TAG headless

AirSim API

  • To control your drone and get information from the environment, you will need the airsimneurips API, which is accessible via Python.
    We recommend you used python >= 3.6. Python 2.7 will go out of support soon

  • To install the Python API, do a :

    bash
    pip install airsimneurips
  • See quick overview of the API below

  • The API is documented at airsimneurips API doc

  • Resources

    • Going through both open and closed issues in this repository might answer some of your questions. The search bar on top left can prove useful.
    • AirSim upstream API and examples can also be of use. However, please note that the main AirSim repo's API is not used in the competition (there's some overlap and some differences), however is a good learning resource.

Submitting Results and Leaderboard - Qualification Round

  • For the qualification round, we have one race track for each tier. The relevant binaries (v1.0) are available for linux and windows

    • Tier 1: This is in the Soccer Field environment.
      THe race track is in the Qual_Tier_1_and_Tier_3.pak pakfile
    • Tier 2: This is in the ZhangJiaJie environment.
      The race track is in the Qual_Tier_2.pak pakfile.
    • Tier 3: This is again in the Soccer Field environment.
      The race track is in the Qual_Tier_1_and_Tier_3.pak pakfile.
  • How to generate logfiles for each tier:

    • Loading level and starting race:

      • Please update your airsimneurips pythonclient (should be >=1.0.0).

      • Calling simStartRace(race_tier=1, 2, or 3) generates the appropriate log files.

      • Tier 1:

        python
            airsim_client.simLoadLevel('Qualifier_Tier_1')
            airsim_client.simStartRace(1)
      • Tier 2:

        python
            airsim_client.simLoadLevel('Qualifier_Tier_2')
            airsim_client.simStartRace(2)
      • Tier 3:

        python
            airsim_client.simLoadLevel('Qualifier_Tier_3')
            airsim_client.simStartRace(3)
    • As Tier 2 focuses on perception and Tier 3 focuses on both perception and planning, note that simGetObjectPose returns noisy gate poses, after simStartRace(2) and simStartRace(3) is called.

    • As soon as simStartRace(1) or simStartRace(3) is called, drone_2 (MSR opponent racer) will start flying.

    • See baseline_racer.py for sample code. The previous bullet points are being called in wrapper functions in the following snippet in baseline_racer.py:

    python
        baseline_racer.load_level(args.level_name)
        if args.level_name == "Qualifier_Tier_1":
            args.race_tier = 1
        if args.level_name == "Qualifier_Tier_2":
            args.race_tier = 2
        if args.level_name == "Qualifier_Tier_3":
            args.race_tier = 3
        baseline_racer.start_race(args.race_tier)
  • To submit your results to the leaderboard:

    • Navigate to the submission site, enter your team name in the proper field, and upload any number of race logs.
      It's ok to make a submission for as little as a single track and/or a single tier.
      You can find race logs inside of AirSimExe/Saved/Logs/RaceLogs in your downloaded binary folder.
      Please read the race monitoring section in the competition guidelines for more details.
    • The leaderboard will publish the results of a drone that is named drone_1 (call generate_settings_file.py to generate an AirSim settings file, as done for the baseline_racer below.
    • Please submit a PDF file in the report section to help us verify the honesty of your submission for the Nov 21st deadline. Please summarize your approach for all tiers you

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonairsimcomputer-visiondrone-racingdrones

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理