Hello,
Hope the command "distancetotravel()" will be better in future version.
In the model you can find 3 problems:
1. Result is not correct after AGV passed the destination.
2. Result is not correct on arriving destination (should be zero).
3. Result is not correct on calculating distance between AGVs.