Skip to content

Commit

Permalink
[docs] Add info about listVehicles API
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Aug 16, 2020
1 parent e5f229b commit 6bbd257
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/multi_vehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,12 @@ The new APIs since AirSim 1.2 allows you to specify `vehicle_name`. This name co

[Example code for multirotors](https://github.com/Microsoft/AirSim/tree/master/PythonClient//multirotor/multi_agent_drone.py)

Using APIs for multi-vehicles requires specifying the `vehicle_name`, which needs to be hardcoded in the script or requires parsing of the settings file. There's also a simple API `listVehicles()` which returns a list (vector in C++) of strings containing names of the current vehicles. For example, with the above settings for 2 Cars -

```
>>> client.listVehicles()
['Car1', 'Car2']
```

### Demo
[![AirSimMultiple Vehicles Demo Video](images/demo_multi_vehicles.png)](https://youtu.be/35dgcuLuF5M)

0 comments on commit 6bbd257

Please sign in to comment.