Notes on spawn_npc.py
This commit is contained in:
parent
aa2d37a124
commit
b17b2e44df
|
@ -2040,6 +2040,8 @@ With hybrid physics on, changes the radius of the area of influence where physic
|
|||
Enables or disables the OSM mode. This mode allows the user to run TM in a map created with the [OSM feature](tuto_G_openstreetmap.md). These maps allow having dead-end streets. Normally, if vehicles cannot find the next waypoint, TM crashes. Now it throws an exception, warning the user to activate <code>set_osm_mode</code> and then stops.
|
||||
- **Parameters:**
|
||||
- `mode_switch` (_bool_) – If __True__, the OSM mode is enabled.
|
||||
- **Note:** <font color="#8E8E8E">_The argument `--osm` in `PythonAPI/examples/spawn_npc.py` makes use of this method to enable OSM mode.
|
||||
_</font>
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ Either way, the map should be ingested automatically in CARLA and the result sho
|
|||
<div style="text-align: right"><i>Outcome of the CARLA map generation using OpenStreetMap.</i></div>
|
||||
|
||||
!!! Warning
|
||||
The roads generated end abruptly in the borders of the map. This will cause the TM to crash when vehicles are not able to find the next waypoint. Use [set_osm_mode()](python_api.md#carlatrafficmanager) to enable de OSM mode. This will destroy the vehicles when no next waypoint is found.
|
||||
The roads generated end abruptly in the borders of the map. This will cause the TM to crash when vehicles are not able to find the next waypoint. Use [set_osm_mode()](python_api.md#carlatrafficmanager) or directly the `--osm` argument in `PythonAPI/examples/spawn_npc.py` to enable de OSM mode. This will destroy the vehicles when no next waypoint is found.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -450,6 +450,8 @@
|
|||
default: true
|
||||
doc: >
|
||||
If __True__, the OSM mode is enabled.
|
||||
note: >
|
||||
The argument `--osm` in `PythonAPI/examples/spawn_npc.py` makes use of this method to enable OSM mode.
|
||||
doc: >
|
||||
Enables or disables the OSM mode. This mode allows the user to run TM in a map created with the [OSM feature](tuto_G_openstreetmap.md). These maps allow having dead-end streets. Normally, if vehicles cannot find the next waypoint, TM crashes. Now it throws an exception, warning the user to activate <code>set_osm_mode</code> and then stops.
|
||||
# --------------------------------------
|
||||
|
|
Loading…
Reference in New Issue