autowarefoundation / autoware_ai_common

Apache License 2.0
39 stars 47 forks source link

libwaypoint_follower: Fix getClosestWaypoint, remove logging from library functions #18

Closed icolwell-as closed 4 years ago

icolwell-as commented 4 years ago

Fixed a small bug where the getClosestWaypoint function would start at index 1 instead of 0, which caused it to miss the first point which could actually be the closest point.

Also removed logging from library functions, it should be up to the caller of the function to check return values and produce appropriate log messages according to the use case.