Create the get_waypoint function
Fix the wrong component id issue