Added method to set radius in hybrid mode.

This commit is contained in:
sergi-e 2020-04-09 14:41:28 +02:00 committed by Jacopo Bartiromo
parent 88148eb3de
commit 9cb8f19c72
2 changed files with 14 additions and 0 deletions

View File

@ -1506,6 +1506,10 @@ Default is 30. Exceeding a speed limit can be done using negative percentages.
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.
- <a name="carla.TrafficManager.set_hybrid_mode_radius"></a>**<font color="#7fb800">set_hybrid_mode_radius</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**r**=70.0</font>)
With hybrid physics on, changes the radius of the area of influence where physics are enabled.
- **Parameters:**
- `r` (_float_) New radius where physics are enabled.
---

View File

@ -418,3 +418,13 @@
doc: >
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.
# --------------------------------------
- def_name: set_hybrid_mode_radius
params:
- param_name: r
type: float
default: 70.0
doc: >
New radius where physics are enabled.
doc: >
With hybrid physics on, changes the radius of the area of influence where physics are enabled.
# --------------------------------------