Skip to content

Commit

Permalink
Fix spawning order between ego and NPC vehicles (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwong16 authored Jan 27, 2023
1 parent cbc937c commit a71ae92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylot/simulation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ def reset_world(world):
def spawn_actors(client, world, traffic_manager_port: int,
simulator_version: str, ego_spawn_point_index: int,
auto_pilot: bool, num_people: int, num_vehicles: int, logger):
vehicle_ids = spawn_vehicles(client, world, traffic_manager_port,
num_vehicles, logger)
ego_vehicle = spawn_ego_vehicle(world, traffic_manager_port,
ego_spawn_point_index, auto_pilot)
vehicle_ids = spawn_vehicles(client, world, traffic_manager_port,
num_vehicles, logger)
people = []

if check_simulator_version(simulator_version,
Expand Down

0 comments on commit a71ae92

Please sign in to comment.