Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: carla-simulator/carla
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 73d49da3c376e83459369633486a976de85d820b
Choose a base ref
..
head repository: carla-simulator/carla
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0a149f70d8fe90db2e96cb9be710d219d98f2f33
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 PythonAPI/examples/synchronous_mode.py
6 changes: 3 additions & 3 deletions PythonAPI/examples/synchronous_mode.py
Original file line number Diff line number Diff line change
@@ -76,14 +76,14 @@ def tick(self, timeout):
assert all(x.frame == self.frame for x in data)
return data

def __exit__(self, type, value, traceback):
def __exit__(self, _, _, _):
settings = self.world.get_settings()
settings.synchronous_mode = False
self.world.apply_settings(settings)

def _retrieve_data(self, queue, timeout):
def _retrieve_data(self, sensor_queue, timeout):
while True:
data = queue.get(timeout=timeout)
data = sensor_queue.get(timeout=timeout)
if data.frame == self.frame:
return data