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:
Daniel 2024-06-14 18:56:03 +02:00 committed by Daraan
parent 34649f61b1
commit adcf1069a0
1 changed files with 7 additions and 3 deletions

View File

@ -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.