Merge commit
This commit is contained in:
parent
a55e877bf1
commit
2d8d738c33
|
@ -346,7 +346,7 @@ By default, vehicle lights (brake, turn indicators, etc...) of the vehicles mana
|
|||
```python
|
||||
tm = client.get_trafficmanager(port)
|
||||
for actor in my_vehicles:
|
||||
tm.auto_update_lights(actor, True)
|
||||
tm.update_vehicle_lights(actor, True)
|
||||
```
|
||||
|
||||
Vehicle lights management has to be specified on a per-vehicle basis, and there could be at any given time both vehicles with and without the automatic light management.
|
||||
|
|
|
@ -2435,8 +2435,8 @@ With hybrid physics on, changes the radius of the area of influence where physic
|
|||
- <a name="carla.TrafficManager.set_osm_mode"></a>**<font color="#7fb800">set_osm_mode</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**mode_switch**=True</font>)
|
||||
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. If OSM mode is enabled, it will show a warning, and destroy vehicles when necessary.
|
||||
- **Parameters:**
|
||||
- `mode_switch` (_bool_) - If __True__, the OSM mode is enabled.
|
||||
- <a name="carla.TrafficManager.set_percentage_keep_right_rule"></a>**<font color="#7fb800">set_percentage_keep_right_rule</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**actor**</font>, <font color="#00a6ed">**perc**</font>)
|
||||
- `mode_switch` (_bool_) – If __True__, the OSM mode is enabled.
|
||||
- <a name="carla.TrafficManager.keep_right_rule_percentage"></a>**<font color="#7fb800">keep_right_rule_percentage</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**actor**</font>, <font color="#00a6ed">**perc**</font>)
|
||||
During the localization stage, this method sets a percent chance that vehicle will follow the *keep right* rule, and stay in the right lane.
|
||||
- **Parameters:**
|
||||
- `actor` (_[carla.Actor](#carla.Actor)_) - Vehicle whose behaviour is being changed.
|
||||
|
|
|
@ -481,7 +481,7 @@
|
|||
|
||||
Default is 30. Exceeding a speed limit can be done using negative percentages.
|
||||
# --------------------------------------
|
||||
- def_name: auto_update_lights
|
||||
- def_name: update_vehicle_lights
|
||||
params:
|
||||
- param_name: actor
|
||||
type: carla.Actor
|
||||
|
@ -543,7 +543,7 @@
|
|||
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. If OSM mode is enabled, it will show a warning, and destroy vehicles when necessary.
|
||||
# --------------------------------------
|
||||
- def_name: set_percentage_keep_right_rule
|
||||
- def_name: keep_right_rule_percentage
|
||||
params:
|
||||
- param_name: actor
|
||||
type: carla.Actor
|
||||
|
|
Loading…
Reference in New Issue