clockworkbits / CarND-Capstone

Capstone project - Hupla Hupla team
MIT License
1 stars 0 forks source link

[#38] tl_detector: base tl waypoint on stopline, not light coord #40

Closed agotterba closed 6 years ago

agotterba commented 6 years ago

Reverts tl_detector to reporting the next traffic light whose stopline is in front of the car, instead of whose traffic light is in front of the car.

This should fix issue #38 , where the car stops in the middle of an intersection and does not proceed, because a light cut off at the top of the frame is detected as yellow. The car will still detect this as yellow, but will report the waypoint of the next traffic light instead of the current, so the car should proceed through this intersection.

I had changed tl_detector to base the waypoint off the traffic light when I saw the car not quite stop in time, and then run through a red light. However, I think that's fixed by waypoint_updater having the car's center-point stop 3m behind the stopline, instead of 1m.