From 710152a76a3a6a14b4346e3bdcfa6eb474870817 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 8222b4abc3..d29ca93af7 100644 --- a/smarts/core/vehicle.py +++ b/smarts/core/vehicle.py @@ -570,7 +570,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, ) )