Skip to content

Commit 98dc258

Browse files
committed
98-npc-behaviour.py: Use UUID of CubeTown; add it to settings.py
1 parent 165ae6a commit 98dc258

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ examples, first make sure that these assets have been added to your Library:
2828
| Type | Name | URL |
2929
| ------- | -------------- | --- |
3030
| Map | BorregasAve | https://wise.svlsimulator.com/maps/profile/aae03d2a-b7ca-4a88-9e41-9035287a12cc |
31+
| Map | CubeTown | https://wise.svlsimulator.com/maps/profile/06773677-1ce3-492f-9fe2-b3147e126e27 |
3132
| Map | SanFrancisco | https://wise.svlsimulator.com/maps/profile/5d272540-f689-4355-83c7-03bf11b6865f |
3233
| Map | SingleLaneRoad | https://wise.svlsimulator.com/maps/profile/a6e2d149-6a18-4b83-9029-4411d7b2e69a |
3334
| Map | Straight1LanePedestrianCrosswalk | https://wise.svlsimulator.com/maps/profile/a3a818b5-c66b-488a-a780-979bd5692db1 |

quickstart/98-npc-behaviour.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818

1919
drunkDriverAvailable = False
2020
trailerAvailable = 0
21-
map = "CubeTown"
2221

2322
print("Current Scene = {}".format(sim.current_scene))
24-
# Loads the named map in the connected simulator. The available maps can be set up in web interface
25-
if sim.current_scene == map:
23+
# Loads the named map in the connected simulator.
24+
if sim.current_scene == SimulatorSettings.map_cubetown:
2625
sim.reset()
2726
else:
28-
print("Loading Scene = {}".format(map))
29-
sim.load(map)
27+
print("Loading Scene = {}".format(SimulatorSettings.map_cubetown))
28+
sim.load(SimulatorSettings.map_cubetown)
3029

3130
agents = sim.available_agents
3231
print("agents:")

settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class SimulatorSettings:
2424
# https://wise.svlsimulator.com/maps/profile/aae03d2a-b7ca-4a88-9e41-9035287a12cc
2525
map_borregasave = "aae03d2a-b7ca-4a88-9e41-9035287a12cc"
2626

27+
# Map loaded in the quickstart scripts. Changing the map may lead to unexpected behaviour in the quickstart scripts. Default value is "CubeTown".
28+
# https://wise.svlsimulator.com/maps/profile/06773677-1ce3-492f-9fe2-b3147e126e27
29+
map_cubetown = "06773677-1ce3-492f-9fe2-b3147e126e27"
30+
2731
# Map loaded in some of the examples. Changing the map may lead to unexpected behaviour in the example scripts. Default value is "SanFrancisco".
2832
# https://wise.svlsimulator.com/maps/profile/5d272540-f689-4355-83c7-03bf11b6865f
2933
map_sanfrancisco = "5d272540-f689-4355-83c7-03bf11b6865f"

0 commit comments

Comments
 (0)