Daraan / LunaticAI-Driver-for-CARLA-Simulator

MIT License
1 stars 0 forks source link

Next detected traffic light might not be the same as the one from obstacle detection #26

Open Daraan opened 3 months ago

Daraan commented 3 months ago

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

Daraan commented 1 week 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.