Corrected Sensor.is_listening
Was changed to a function in 0.9.15. More info see: https://github.com/carla-simulator/carla/pull/7439
This commit is contained in:
parent
34649f61b1
commit
adcf1069a0
|
@ -2945,12 +2945,16 @@ class Sensor(Actor):
|
|||
"""
|
||||
|
||||
# region Instance Variables
|
||||
@property
|
||||
def is_listening() -> bool:
|
||||
"""When `True` the sensor will be waiting for data."""
|
||||
#@property
|
||||
#def is_listening() -> bool:
|
||||
# """When `True` the sensor will be waiting for data."""
|
||||
# endregion
|
||||
|
||||
# region Methods
|
||||
|
||||
def is_listening(self) -> bool:
|
||||
"""Returns whether the sensor is in a listening state."""
|
||||
|
||||
def is_listening_gbuffer(self, gbuffer_id: GBufferTextureID) -> bool:
|
||||
"""Returns whether the sensor is in a listening state for a specific GBuffer texture.
|
||||
|
||||
|
|
Loading…
Reference in New Issue