# Sample World for Regional Finale

## Sample world (without obstacles)

This is a practice simulation world, which particpants can use to develope there own algorithms for self driving around the track.

{% hint style="warning" %}
Teams have to submit a video on this world to be eligible for region finale.
{% endhint %}

To access the world in simulation, there are two different approaches:

### Option-1

Download the following file and copy paste it content in ***models\_config.json*** file present in ***\~/cognipilot/cranium/AIM\_2024\_launcher*** directory. After that run the launcher script by executing following commands:

```
$ cd ~/cognipilot/cranium/AIM_2024_launcher
$ python launch_sim.py start
```

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-5efd75e9b5c53e14d11005c8a2a6ff8c124047e4%2Fmodels_config_only_tack.json?alt=media>" %}
Sample world without obstacles json file
{% endfile %}

### Option-2

Download the following file and copy paste it content in ***Raceway\_1.sdf*** file present in ***\~/cognipilot/cranium/src/dream\_world/worlds*** directory.

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-29786569c4ea78aa88405aa363d6e190e5804729%2FRaceway_1_only_track.sdf?alt=media>" %}
Sample world without obstacles sdf file
{% endfile %}

After that you need to follow the steps mentioned on Running of AIM 2024 software stack and Updating Code Base for AIM 2024 gitbook pages

### Output

After following the above steps, the Simulation world should look like this:

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-94e1593943c2b91ce70bb2da5d1e2598ba285e0d%2Fonly_track_1.png?alt=media)

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-259f33c98a5baae5fa5233c92db7b5bb3ae594ac%2Fonly_track_2.png?alt=media)

## Sample world (with obstacles)

This is a practice simulation world, which particpants can use to develope there own algorithms for self driving around the track and avoid obstacles.

{% hint style="warning" %}
This is just a sample world. In regional finale, there will be more obstacles and simulation world will be unkown.
{% endhint %}

To access the world in simulation, there are two different approaches:

### Option-1

Download the following file and copy paste it content in ***models\_config.json*** file present in ***\~/cognipilot/cranium/AIM\_2024\_launcher*** directory. After that run the launcher script by executing following commands:

```
$ cd ~/cognipilot/cranium/AIM_2024_launcher
$ python launch_sim.py start
```

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-2c65374e69d7dd9fdb7d14777799f190eb333ced%2Fmodels_config_sample_world.json?alt=media>" %}
Sample world json file
{% endfile %}

### Option-2

Download the following file and copy paste it content in ***Raceway\_1.sdf*** file present in ***\~/cognipilot/cranium/src/dream\_world/worlds*** directory.

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-dc83be6ea436da8954e803ebf2194ee13ea162af%2FRaceway_1_sample_world.sdf?alt=media>" %}
Sample world sdf file
{% endfile %}

After that you need to follow the steps mentioned on Running of AIM 2024 software stack and Updating Code Base for AIM 2024 gitbook pages

### Output

After following the above steps, the Simulation world should look like this:

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-92988ef447b360263f6b0ab8eb9c31a17f3fe501%2Fsample_world_0.png?alt=media)

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-a971ca30b9c891cc13a704083a1885e14a2811c3%2Fsample_world_1.png?alt=media)

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-25fb9b2f9417feecaf0072364b559af78a850a22%2Fsample_world_2.png?alt=media)

## Advance Sample World (only for reference)

{% hint style="warning" %}
All teams are advised to finish the above sample world before proceeding further, as Regional Finale will be an upgradation from the sample world given in previous section and not the advance sample world
{% endhint %}

This is a very advance practice simulation world whcich covers majority of edge and tricky use cases.Particpants can use this world to further enhance their logic after they have succesfully completed a lap on sample world provided in previous section.

{% hint style="danger" %}
This is just a sample world, it's extremly tough and very hard to achieve as it covers majority of edge and tricky use cases for car to move. All teams are recommended to **primarly focus on sample world given above this advance sample world to prepare for regional finale**.
{% endhint %}

To access the world in simulation, there are two different approaches:

### Option-1

Download the following file and copy paste it content in ***models\_config.json*** file present in ***\~/cognipilot/cranium/AIM\_2024\_launcher*** directory. After that run the launcher script by executing following commands:

```
$ cd ~/cognipilot/cranium/AIM_2024_launcher
$ python launch_sim.py start
```

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-29ec992f34861d116a93d619d2bca1224fecfb38%2Fmodels_config_sampleAdvanceWorld.json?alt=media>" %}
Advance Sample world json file
{% endfile %}

### Option-2

Download the following file and copy paste it content in ***Raceway\_1.sdf*** file present in ***\~/cognipilot/cranium/src/dream\_world/worlds*** directory.

{% file src="<https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-03c20cf41833685f1877b18fbf4b1d461239f67c%2FRaceway_1_advance_sample_world.sdf?alt=media>" %}
Advance Sample world sdf file
{% endfile %}

After that you need to follow the steps mentioned on Running of AIM 2024 software stack and Updating Code Base for AIM 2024 gitbook pages

### Output

After following the above steps, the Simulation world should look like this:

![](https://1677675178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWeiLnwrIKZJWLFsXhf%2Fuploads%2Fgit-blob-d8e33639ab6d3b03d4b4f111b86c2e8e9d6b8b1d%2Fadvance%20world.png?alt=media)
