Open Daraan opened 3 months ago
Answer:
When passing (or leaving) the bounding box of a traffic light the next_traffic_light
changes to one after the intersection.
While the tlight_detection_result
stays the same to the bounding box that was just passed.
Detect when this is the case.
Can it be fixed and how serve is it?
Maybe because we just passed a traffic light (detected) != next in line (next along waypoints)?
https://github.com/Daraan/LunaticAI-Driver-for-CARLA-Simulator/blob/4f602d3da42fa7ae7e795fa6e7434108280b171f/agents/lunatic_agent.py#L631-L636