team-fusionx / CarND-Capstone

Team FusionX - Capstone Project for Udacity Self-Driving Car Nanodegree
MIT License
8 stars 3 forks source link

TL Detector: Add condition on main loop to wait for pose and waypoints #128

Closed edufford closed 6 years ago

edufford commented 6 years ago

To prevent sending an initial waypoint of -1 on initial loop, add a condition to wait until self.pose and self.waypoint_tree have also finished initializing from their callbacks so that the get_closest_waypoint() check can return the actual waypoint index for the first published message to Waypoint Updater.