Closed pAplakidis closed 1 year ago
Nevermind, I solved it by uncommenting the traffic manager lines:
traffic_manager = client.get_trafficmanager()
traffic_manager.set_global_distance_to_leading_vehicle(2.5)
traffic_manager.set_respawn_dormant_vehicles(True)
...
settings = world.get_settings()
settings.synchronous_mode = True
settings.no_rendering_mode = False
settings.fixed_delta_seconds = 0.05
world.apply_settings(settings)
traffic_manager.set_synchronous_mode(True)
I've been trying to collect driving data for a project of mine using carla. My first problem was that the collected frames and poses were not synched properly. This was solved by turning sync mode on in my client script and matching delta_seconds (0.05) with the server's fps (20). However, after doing this the car accelerates a bit and then starts steering left and right until it crashes. My code is the following:
And the server-start script start_carla.sh:
!/bin/bash
/opt/carla-simulator/CarlaUE4.sh -opengl -nosound -RenderOffScreen -benchmark -fps=20 -quality -level=High