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
|
```python
|
||||||
tm = client.get_trafficmanager(port)
|
tm = client.get_trafficmanager(port)
|
||||||
for actor in my_vehicles:
|
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.
|
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>)
|
- <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.
|
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:**
|
- **Parameters:**
|
||||||
- `mode_switch` (_bool_) - If __True__, the OSM mode is enabled.
|
- `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>)
|
- <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.
|
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:**
|
- **Parameters:**
|
||||||
- `actor` (_[carla.Actor](#carla.Actor)_) - Vehicle whose behaviour is being changed.
|
- `actor` (_[carla.Actor](#carla.Actor)_) - Vehicle whose behaviour is being changed.
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
doc: >
|
doc: >
|
||||||
A list of commands to execute in batch. Each command is different and has its own parameters. They appear listed at the bottom of this page.
|
A list of commands to execute in batch. Each command is different and has its own parameters. They appear listed at the bottom of this page.
|
||||||
doc: >
|
doc: >
|
||||||
Executes a list of commands on a single simulation step and retrieves no information. If you need information about the response of each command, use the __<font color="#7fb800">apply_batch_sync()</font>__ method.
|
Executes a list of commands on a single simulation step and retrieves no information. If you need information about the response of each command, use the __<font color="#7fb800">apply_batch_sync()</font>__ method.
|
||||||
[Here](https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/generate_traffic.py) is an example on how to delete the actors that appear in carla.ActorList all at once.
|
[Here](https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/generate_traffic.py) is an example on how to delete the actors that appear in carla.ActorList all at once.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
- def_name: apply_batch_sync
|
- def_name: apply_batch_sync
|
||||||
|
@ -438,7 +438,7 @@
|
||||||
doc: >
|
doc: >
|
||||||
Between 0 and 100. Amount of times stop signs will be ignored.
|
Between 0 and 100. Amount of times stop signs will be ignored.
|
||||||
doc: >
|
doc: >
|
||||||
During the traffic light stage, which runs every frame, this method sets the percent chance that stop signs will be ignored for a vehicle.
|
During the traffic light stage, which runs every frame, this method sets the percent chance that stop signs will be ignored for a vehicle.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
- def_name: ignore_vehicles_percentage
|
- def_name: ignore_vehicles_percentage
|
||||||
params:
|
params:
|
||||||
|
@ -481,7 +481,7 @@
|
||||||
|
|
||||||
Default is 30. Exceeding a speed limit can be done using negative percentages.
|
Default is 30. Exceeding a speed limit can be done using negative percentages.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
- def_name: auto_update_lights
|
- def_name: update_vehicle_lights
|
||||||
params:
|
params:
|
||||||
- param_name: actor
|
- param_name: actor
|
||||||
type: carla.Actor
|
type: carla.Actor
|
||||||
|
@ -539,11 +539,11 @@
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
doc: >
|
doc: >
|
||||||
If __True__, the OSM mode is enabled.
|
If __True__, the OSM mode is enabled.
|
||||||
doc: >
|
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.
|
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:
|
params:
|
||||||
- param_name: actor
|
- param_name: actor
|
||||||
type: carla.Actor
|
type: carla.Actor
|
||||||
|
@ -561,7 +561,7 @@
|
||||||
- param_name: value
|
- param_name: value
|
||||||
type: int
|
type: int
|
||||||
doc: >
|
doc: >
|
||||||
Seed value for the random number generation of the Traffic Manager.
|
Seed value for the random number generation of the Traffic Manager.
|
||||||
doc: >
|
doc: >
|
||||||
Sets a specific random seed for the Traffic Manager, thereby setting it to be deterministic.
|
Sets a specific random seed for the Traffic Manager, thereby setting it to be deterministic.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
@ -571,11 +571,11 @@
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
doc: >
|
doc: >
|
||||||
If __True__, the TM synchronous mode is enabled.
|
If __True__, the TM synchronous mode is enabled.
|
||||||
doc: >
|
doc: >
|
||||||
Sets the Traffic Manager to [synchronous mode](adv_traffic_manager.md#synchronous-mode). In a [multiclient situation](adv_traffic_manager.md#multiclient), only the TM-Server can tick. Similarly, in a [multiTM situation](adv_traffic_manager.md#multitm), only one TM-Server must tick. Use this method in the client that does the world tick, and right after setting the world to synchronous mode, to set which TM will be the master while in sync.
|
Sets the Traffic Manager to [synchronous mode](adv_traffic_manager.md#synchronous-mode). In a [multiclient situation](adv_traffic_manager.md#multiclient), only the TM-Server can tick. Similarly, in a [multiTM situation](adv_traffic_manager.md#multitm), only one TM-Server must tick. Use this method in the client that does the world tick, and right after setting the world to synchronous mode, to set which TM will be the master while in sync.
|
||||||
warning: >
|
warning: >
|
||||||
If the server is set to synchronous mode, the TM <b>must</b> be set to synchronous mode too in the same client that does the tick.
|
If the server is set to synchronous mode, the TM <b>must</b> be set to synchronous mode too in the same client that does the tick.
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
- def_name: set_respawn_dormant_vehicles
|
- def_name: set_respawn_dormant_vehicles
|
||||||
params:
|
params:
|
||||||
|
|
Loading…
Reference in New Issue