From c225cae5ad5b24a17fb5133b7d6604a4c7dc3660 Mon Sep 17 00:00:00 2001 From: Tucker Date: Mon, 21 Nov 2022 09:36:55 -0500 Subject: [PATCH] Fix missing include foes in sensor instantiation. --- smarts/core/vehicle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smarts/core/vehicle.py b/smarts/core/vehicle.py index 15398ceecc..6762708ea9 100644 --- a/smarts/core/vehicle.py +++ b/smarts/core/vehicle.py @@ -568,7 +568,10 @@ def attach_sensors_to_vehicle(sim, vehicle, agent_interface, plan): lookahead = agent_interface.signals.lookahead vehicle.attach_signals_sensor( SignalsSensor( - vehicle=vehicle, road_map=sim.road_map, lookahead=lookahead + vehicle=vehicle, + road_map=sim.road_map, + lookahead=lookahead, + include_foes=agent_interface.include_foes, ) )