Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
madratman authored Jul 19, 2019
1 parent 6fdec66 commit 7ded3e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,17 @@ To control your drone and get information from the environment, you will need to
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"`, `"ZhangJiaJie"`, `"Building99"`, or `"MainMenu"`.
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](https://github.com/microsoft/AirSim-NeurIPS2019-Drone-Racing/releases).

```python
import airsimneurips as airsim
client = airsim.MultirotorClient()
client.confirmConnection()
client.simLoadLevel('Soccer_Field')
client.simLoadLevel('ZhangJiaJie')
client.simLoadLevel('Building99')
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
Expand Down

0 comments on commit 7ded3e7

Please sign in to comment.