From a71ae927328388dc44acc784662bf32a99f273f0 Mon Sep 17 00:00:00 2001 From: Zhijie Wang Date: Thu, 26 Jan 2023 20:24:16 -0700 Subject: [PATCH] Fix spawning order between ego and NPC vehicles (#288) --- pylot/simulation/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/simulation/utils.py b/pylot/simulation/utils.py index a6a0d62a2..0db156eac 100644 --- a/pylot/simulation/utils.py +++ b/pylot/simulation/utils.py @@ -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,