Skip to content

Commit

Permalink
Fix missing include foes in sensor instantiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Nov 21, 2022
1 parent ccf3635 commit 710152a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smarts/core/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
)

Expand Down

0 comments on commit 710152a

Please sign in to comment.