Closed mithi closed 7 years ago
I think the reason for this is because how we get the closest way point for each traffic light is very inefficient since it is not hard coded.
Why don't you do that once in your init. function And you can do that in one loop, instead of passing a single pose, pass an array and return what ever suits you. So it can be done in 1 pass. Or, since this is just temporary code, just let it be, and run it 8 times for the 8 lights once. Store them in a dictionary with poses as keys and you are done.
@buffos Okay I will do that, I wasn't able to think of that last time (maybe because I was already sleepy haha).
Updated pull request: https://github.com/kung-fu-panda-automotive/carla-driver/pull/41
IMPORTANT NOTE: please test first on your machine before approving/merging! Not sure if it works for all machines!
I’m considering deleting the pull request.
WaypointUpdater
TLDetector
Vehice/TrafficLight
WaypointUpdater
prints that it chooses to mode CRUISE from mode BRAKE, I suspect that in more powerful machines this shouldn't be an issue, I hope...