-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b402b67
commit c9f8d69
Showing
18 changed files
with
14,238 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# API Reference | ||
# REST API | ||
|
||
```{eval-rst} | ||
`API Reference <_static/restapi.html>`_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Examples | ||
Several examples are provided [here](https://github.com/inverted-ai/invertedai/tree/master/examples). | ||
## Demo | ||
- **Goolge Colab**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/inverted-ai/invertedai-drive/blob/develop/examples/Colab-Demo.ipynb) | ||
|
||
- **Locally**: Download the | ||
<a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/inverted-ai/invertedai/tree/master/examples" target="_blank">examples directory</a>, navigate to the unzipped directory in terminal and run | ||
|
||
``` | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -r requirements.txt | ||
.venv/bin/jupyter notebook Drive-Demo.ipynb | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Spawning Agents | ||
To run the simulation, the map must be first populated with agents. | ||
Inverted AI provides the {ref}`INITIALIZE`, a state-of-the-art model trained with real-life driving scenarios which can generate realistic positions for the initial state of the simulation. | ||
<!-- Having realistic, complicated and diverse initial conditions are particularly crucial to observer interesting and informative <!-- interaction -\->between the agents, i.e., the ego vehicle and NPCs (non-player characters). --> | ||
|
||
<!-- You can use **INITIALIZE** in two modes: --> | ||
## Initialize all agents: | ||
generates initial conditions (position and speed) for all the agents including the ego vehicle | ||
```python | ||
response = iai.initialize( | ||
location="CARLA:Town03:Roundabout", | ||
agent_count=10, | ||
) | ||
``` | ||
<!-- - _Initialize NPCs_: generates initial conditions (position and speed) only for the NPCs according to the provided state of the ego vehicle. --> | ||
<!-- ```python --> | ||
<!-- response = iai.initialize( --> | ||
<!-- location="CARLA:Town03:Roundabout", --> | ||
<!-- agent_count=10, --> | ||
<!-- ) --> | ||
<!-- ``` --> | ||
> _response_ is a dictionary of _states_, and _agent-attribute_ (_recurrent-states_ is also returned for compatibility with **drive**)\ | ||
> _response["states"]_ is a list of agent states, by default the first on the list is always the ego vehicle. | ||
--- | ||
{ref}`INITIALIZE`: more information about the python SDK.\ | ||
{ref}`REST API`: more information about the REST API and other programming languages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
docs/source/getstarted/mapinfo.md → docs/source/getstarted/gs-mapinfo.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# Locations and Maps | ||
|
||
Inverted AI provides an assortment of diverse road configurations and geometries, including real-world locations and maps from simulators (CARLA, Huawei SMARTS, ...).\ | ||
Inverted AI provides an assortment of diverse road configurations and geometries, including real-world locations and maps from simulators (CARLA, Huawei SMARTS, ...). | ||
|
||
## AVAILABLE-LOCATIONS | ||
To search the catalog for available maps to your account (API key) use **iai.available_locations** method by providing keywords | ||
To search the catalog for available maps to your account (API key) use **{ref}`AVAILABLE-LOCATIONS`** method by providing keywords | ||
```python | ||
iai.available_locations("roundabout", "carla") | ||
``` | ||
|
||
## GET-MAP | ||
To get information about a scene use **iai.location_info**. | ||
## LOCATION_INFO | ||
To get information about a scene use **{ref}`LOCATION_INFO`**. | ||
```python | ||
iai.location_info**("CARLA:Town03:Roundabout") | ||
iai.location_info("CARLA:Town03:Roundabout") | ||
``` | ||
The scene information include the map in [Lanelet2](https://github.com/fzi-forschungszentrum-informatik/Lanelet2) format, map in JPEG format, maximum number of allowed (driveable) vehicles, latitude longitude coordinates (for real-world locations), id and list of traffic light and signs (if any exist in the map), etc. | ||
|
||
|
||
--- | ||
{ref}`LOCATION_INFO`, {ref}`AVAILABLE-LOCATIONS`: more information about the python SDK.\ | ||
{ref}`REST API`: more information about the REST API and other programming languages. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
docs/source/pythonapi/initialize.md → docs/source/pythonapi/sdk-initialize.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# INITIALIZE | ||
|
||
|
||
```{eval-rst} | ||
.. autofunction:: invertedai.api_resources.initialize | ||
``` | ||
|
2 changes: 1 addition & 1 deletion
2
docs/source/pythonapi/getmap.md → docs/source/pythonapi/sdk-location-info.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# GET-MAP | ||
# LOCATION_INFO | ||
|
||
|
||
```{eval-rst} | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.