Giter Club home page Giter Club logo

airsim-neurips2019-drone-racing's Introduction

Game of Drones: A NeurIPS 2019 Competition

Quickstart

Unreal Environments

This competition marks the advent of a new release process for AirSim, in which we have separated out the AirSim plugin from environment content. Instead of having a series of individual executables for each environment, we have compacted all of the relevant AirSim content and API into a single binary (AirSimExe).
Unreal environments containing race courses are released as separate downloadable content (DLC) packages, in the form of .pak files, which can be loaded and unloaded into the main binary as needed.

Downloading AirSimExe and Unreal Environments

  • Navigate to the releases page.
  • Download the latest Windows or Linux AirSim.zip.
  • Download your desired environments (pakfiles) - Building99.pak / SoccerField.pak / ZhangJiaJie.pak.
  • Move the environment pakfile into AirSim/AirSimExe/Content/Paks.
  • The contents in the environment pakfile will now be linked to your AirSim binary!

Running the Executable

  • Linux

    • Open a terminal window, cd to AirSim/ directory, and enter the following command:
       ./AirSimExe.sh -windowed
      
  • Windows

    • Navigate to the AirSim/ directory, and double-click run.bat

AirSim API

To control your drone and get information from the environment, you will need the airsimneurips API, which is accessible via Python.

Installation

  • To install the Python API for the Neurips competition, please use:
     pip install airsimneurips
    
    Corollary: Do not do a pip install airsim, as we will have a few custom APIs specific to this competition.
  • Resources

Changing Environments

There are two ways to swap between levels, either via AirSIm API or by the UI menu.

  • API

    • We have added a new API simLoadLevel(level_name="MainMenu") to change Unreal environments on the fly.
      Possible values for level_name are : "Soccer_Field_Easy", "Soccer_Field_Medium", "ZhangJiaJie_Medium", "Building99_Hard". Here's a quick snippet to iterate throught them all. Before trying this, please ensure you've downloaded the corresponding pak files from our releases page.
     import airsimneurips as airsim
     client = airsim.MultirotorClient()
     client.confirmConnection()
     client.simLoadLevel('Soccer_Field_Easy')	
     client.simLoadLevel('Soccer_Field_Medium')	
     client.simLoadLevel('ZhangJiaJie_Medium')
     client.simLoadLevel('Building99_Hard')
  • UI Menu

    • Press F10 to toggle the level menu
    • Click your desired level. (Note: the UI lists all the pakfiles in the AirSim/AirSimExe/Content/Paks directory. Ensure you downloaded the pakfile, if you are not able to see a particular environment)

Baselines

  • Plan and move on minimum jerk trajectory using gate ground truth poses:
    • Generate an AirSim settings.json file
    $ cd baselines;
    $ python generate_settings_file.py
    $ python baseline_racer.py \
    	--viz_traj \
    	--plot_transform \
    	--planning_baseline_type all_gates_at_once \
    	--planning_and_control_api moveOnSpline \
    	--level_name ZhangJiaJie_Medium 

List of Environments in Increasing Order of Difficulty

  • Soccer Field: A simple outdoors environment with few obstacles, and an easy to follow course.
  • ZhangJiaJie: A mountainous landscape based on a national park in the Hunan province of China.
  • Building99: A tight race course designed inside one of Microsoft's very own buildings.

Questions

Please open a Github Issue on this repository (not AirSim) for any technical questions w.r.t. the Neurips competition.

airsim-neurips2019-drone-racing's People

Contributors

madratman avatar microsoftopensource avatar msb336 avatar msftgits avatar timethy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.