i confuse about that code, how can i get the list of the waypoint ? waypoint_get() just return true or false
Yes. You are right, there seems to be a bug in CPP API. In the meantime, can you please use the python API? Thanks, for pointing out the issue.