From 1dd08c29e9d851f4a1ae0a1c88f448969e7d8dd6 Mon Sep 17 00:00:00 2001 From: Joel Moriana Date: Mon, 30 Mar 2020 08:56:48 +0200 Subject: [PATCH] Avoid carla tick after spawning vehicles --- Co-Simulation/Sumo/sumo_integration/carla_simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Co-Simulation/Sumo/sumo_integration/carla_simulation.py b/Co-Simulation/Sumo/sumo_integration/carla_simulation.py index c22e33bed..a2a91fd6f 100644 --- a/Co-Simulation/Sumo/sumo_integration/carla_simulation.py +++ b/Co-Simulation/Sumo/sumo_integration/carla_simulation.py @@ -87,7 +87,7 @@ class CarlaSimulation(object): carla.command.SpawnActor(blueprint, transform) .then(carla.command.SetSimulatePhysics(carla.command.FutureActor, False)) ] - response = self.client.apply_batch_sync(batch, True)[0] + response = self.client.apply_batch_sync(batch, False)[0] if response.error: logging.error('Spawn carla actor failed. %s', response.error) return INVALID_ACTOR_ID