Fixed typo on TM
This commit is contained in:
parent
bfec9d099e
commit
f95feddbb7
|
@ -1730,7 +1730,7 @@ Tunes on/off collisions between a vehicle and another specific actor. In order t
|
|||
- **Parameters:**
|
||||
- `reference_actor` (_[carla.Actor](#carla.Actor)_) – Vehicle that is going to ignore collisions.
|
||||
- `other_actor` (_[carla.Actor](#carla.Actor)_) – The actor that `reference_actor` is going to ignore collisions with.
|
||||
- `detect_collision` (_bool_) – __True__ is default and enables collisions. __False will disable them.
|
||||
- `detect_collision` (_bool_) – __True__ is default and enables collisions. __False__ will disable them.
|
||||
- <a name="carla.TrafficManager.distance_to_leading_vehicle"></a>**<font color="#7fb800">distance_to_leading_vehicle</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**actor**</font>, <font color="#00a6ed">**distance**</font>)
|
||||
Sets the minimum distance in meters that a vehicle has to keep with the others. The distance is in meters and will affect the minimum moving distance. It is computed from front to back of the vehicle objects.
|
||||
- **Parameters:**
|
||||
|
@ -1773,10 +1773,14 @@ Default is 30. Exceeding a speed limit can be done using negative percentages.
|
|||
- **Parameters:**
|
||||
- `actor` (_[carla.Actor](#carla.Actor)_) – Vehicle whose speed behaviour is being changed.
|
||||
- `percentage` (_float_) – Percentage difference between intended speed and the current limit.
|
||||
- <a name="carla.TrafficManager.get_port"></a>**<font color="#7fb800">get_port</font>**(<font color="#00a6ed">**self**</font>)
|
||||
|
||||
<h5 style="margin-top: -20px">Getters</h5>
|
||||
<div style="padding-left:30px;margin-top:-25px"></div>- <a name="carla.TrafficManager.get_port"></a>**<font color="#7fb800">get_port</font>**(<font color="#00a6ed">**self**</font>)
|
||||
Returns the port where the Traffic Manager is connected. If the object is a TM-Client, it will return the port of its TM-Server. Read the [documentation](#adv_traffic_manager.md#multiclient-and-multitm-management) to learn the difference.
|
||||
- **Return:** _uint16_
|
||||
- <a name="carla.TrafficManager.set_hybrid_physics_mode"></a>**<font color="#7fb800">set_hybrid_physics_mode</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**enabled**=False</font>)
|
||||
|
||||
<h5 style="margin-top: -20px">Setters</h5>
|
||||
<div style="padding-left:30px;margin-top:-25px"></div>- <a name="carla.TrafficManager.set_hybrid_physics_mode"></a>**<font color="#7fb800">set_hybrid_physics_mode</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**enabled**=False</font>)
|
||||
Enables or disables the hybrid physics mode. In this mode, vehicle's farther than a certain radius from the ego vehicle will have their physics disabled. Computation cost will be reduced by not calculating vehicle dynamics. Vehicles will be teleported.
|
||||
- **Parameters:**
|
||||
- `enabled` (_bool_) – If __True__, enables the hybrid physics.
|
||||
|
@ -1941,8 +1945,9 @@ Retrieves the traffic light actor affecting this vehicle (if any) according to l
|
|||
- <a name="carla.Vehicle.get_traffic_light_state"></a>**<font color="#7fb800">get_traffic_light_state</font>**(<font color="#00a6ed">**self**</font>)
|
||||
The client returns the state of the traffic light affecting this vehicle according to last tick. The method does not call the simulator. If no traffic light is currently affecting the vehicle, returns <b>green</b>.
|
||||
- **Return:** _[carla.TrafficLightState](#carla.TrafficLightState)_
|
||||
|
||||
<h5 style="margin-top: -20px">Setters</h5>
|
||||
<div style="padding-left:30px;margin-top:-25px"></div>- <a name="carla.Vehicle.set_autopilot"></a>**<font color="#7fb800">set_autopilot</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**enabled**=True</font>, <font color="#00a6ed">**tm**=None</font>)
|
||||
<div style="padding-left:30px;margin-top:-25px"></div>- <a name="carla.Vehicle.set_autopilot"></a>**<font color="#7fb800">set_autopilot</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**enabled**=True</font>, <font color="#00a6ed">**port**=8000</font>)
|
||||
Registers or deletes the vehicle from a Traffic Manager's list. When __True__, the Traffic Manager passed as parameter will move the vehicle around. The autopilot takes place client-side.
|
||||
- **Parameters:**
|
||||
- `enabled` (_bool_)
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
- param_name: detect_collision
|
||||
type: bool
|
||||
doc: >
|
||||
__True__ is default and enables collisions. __False will disable them.
|
||||
__True__ is default and enables collisions. __False__ will disable them.
|
||||
doc: >
|
||||
Tunes on/off collisions between a vehicle and another specific actor. In order to ignore all other vehicles, traffic lights or walkers, use the specific __ignore__ methods described in this same section.
|
||||
# --------------------------------------
|
||||
|
|
Loading…
Reference in New Issue