Avoid carla tick after spawning vehicles

This commit is contained in:
Joel Moriana 2020-03-30 08:56:48 +02:00 committed by bernat
parent 1d8afd4ccb
commit 1dd08c29e9
1 changed files with 1 additions and 1 deletions

View File

@ -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