kung-fu-panda-automotive / carla-driver

The CarND Capstone Project
8 stars 8 forks source link

Update WaypointUpdater, Revamp Fake TLdetector #39

Closed mithi closed 7 years ago

mithi commented 7 years ago

IMPORTANT NOTE: please test first on your machine before approving/merging! Not sure if it works for all machines!

WaypointUpdater

TLDetector

buffos commented 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.

mithi commented 7 years ago

@buffos Okay I will do that, I wasn't able to think of that last time (maybe because I was already sleepy haha).

mithi commented 7 years ago

Updated pull request: https://github.com/kung-fu-panda-automotive/carla-driver/pull/41