Fixed tm_demo.py

This commit is contained in:
Praveen Kumar 2019-10-15 12:00:21 +05:30 committed by bernat
parent 2798a2cdaf
commit 63cb416d7e
1 changed files with 3 additions and 1 deletions

View File

@ -37,9 +37,11 @@ for n, transform in enumerate(spawn_points):
driver_id = random.choice(blueprint.get_attribute('driver_id').recommended_values)
blueprint.set_attribute('driver_id', driver_id)
blueprint.set_attribute('role_name', 'autopilot')
vehicle = world.spawn_actor(blueprint, transform)
vehicle = world.try_spawn_actor(blueprint, transform)
vehicle_list.append(vehicle)
tm = None
try:
long_pid = parameters()