Fixed a possibly unintended busy wait for a long period in a while loop, instead of a periodic shorter wait.
Previous implementation performs a busy wait when arriving earlier at a waypoint, and blocks any updates to goals as well. This PR updates the task ids first before the goal paths, which will stop the client from waiting any longer.
Using updated task request to signal that the client doesn't need to wait for remaining time anymore
Signed-off-by: Aaron Chong aaronchongth@gmail.com
Bug fix
Fixed bug
Fixes: https://github.com/open-rmf/free_fleet/issues/119
Fix applied
Fixed a possibly unintended busy wait for a long period in a while loop, instead of a periodic shorter wait.
Previous implementation performs a busy wait when arriving earlier at a waypoint, and blocks any updates to goals as well. This PR updates the task ids first before the goal paths, which will stop the client from waiting any longer.