carla icon indicating copy to clipboard operation
carla copied to clipboard

Carla Simulator is not responding

Open eyabesbes opened this issue 1 year ago • 1 comments

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)

image

image

eyabesbes avatar Feb 03 '24 14:02 eyabesbes

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.

PatrickPromitzer avatar Feb 07 '24 12:02 PatrickPromitzer

thanks a lot

eyabesbes avatar Feb 21 '24 11:02 eyabesbes