Fixed tm_demo.py
This commit is contained in:
parent
2798a2cdaf
commit
63cb416d7e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue