diff --git a/Docs/adv_traffic_manager.md b/Docs/adv_traffic_manager.md index d0312fc10..a5b93df50 100644 --- a/Docs/adv_traffic_manager.md +++ b/Docs/adv_traffic_manager.md @@ -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. diff --git a/Docs/python_api.md b/Docs/python_api.md index b293f7042..fa8cd6f21 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -2435,8 +2435,8 @@ With hybrid physics on, changes the radius of the area of influence where physic - **set_osm_mode**(**self**, **mode_switch**=True) 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. -- **set_percentage_keep_right_rule**(**self**, **actor**, **perc**) + - `mode_switch` (_bool_) – If __True__, the OSM mode is enabled. +- **keep_right_rule_percentage**(**self**, **actor**, **perc**) 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. diff --git a/PythonAPI/docs/client.yml b/PythonAPI/docs/client.yml index 5fcc8cc69..e4ab35192 100644 --- a/PythonAPI/docs/client.yml +++ b/PythonAPI/docs/client.yml @@ -42,7 +42,7 @@ 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. 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 __apply_batch_sync()__ 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 __apply_batch_sync()__ 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. # -------------------------------------- - def_name: apply_batch_sync @@ -438,7 +438,7 @@ doc: > Between 0 and 100. Amount of times stop signs will be ignored. 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 params: @@ -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 @@ -539,11 +539,11 @@ type: bool default: true doc: > - If __True__, the OSM mode is enabled. + If __True__, the OSM mode is enabled. 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: - param_name: actor type: carla.Actor @@ -561,7 +561,7 @@ - param_name: value type: int doc: > - Seed value for the random number generation of the Traffic Manager. + Seed value for the random number generation of the Traffic Manager. doc: > Sets a specific random seed for the Traffic Manager, thereby setting it to be deterministic. # -------------------------------------- @@ -571,11 +571,11 @@ type: bool default: true doc: > - If __True__, the TM synchronous mode is enabled. + If __True__, the TM synchronous mode is enabled. 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: > - If the server is set to synchronous mode, the TM must be set to synchronous mode too in the same client that does the tick. + If the server is set to synchronous mode, the TM must be set to synchronous mode too in the same client that does the tick. # -------------------------------------- - def_name: set_respawn_dormant_vehicles params: