carla
carla copied to clipboard
Carla Simulator is not responding
Hi everyone, I don't know why every time I try to execute this code on jupyter notebook it works but then Carla doesn't respond anymore delta = 0.05 settings.fixed_delta_seconds = delta settings.synchronous_mode = True settings.no_rendering_mode = False # You can set this based on your needs world.apply_settings(settings)
That is normal because carla is in synchronous_mode
If you activate synchronous_mode, carla will wait until it gets a world.tick() from the Python API (for your example)
You can make a simple loop that makes carla run again
delta = 0.05
frequenz = 1 / delta # the number of steps in one second
for _ in range(frequenz * 10): # 10 simulation seconds
world.tick()
If you set synchronous_mode to False, you don't have to use world.tick() because carla will do that for you, but it is less consistent with the time you get data from carla.
thanks a lot