I didn't use the script about AGV before, so i don't know how to use the scripts below:
- Added user-customizable deadlock recovery. Added parameters to the OnAllocationFailed trigger that lets the user know if the allocation request represents a deadlock, as well as an array that is the deadlock cycle. The user can thus implement logic if the allocation failure is a deadlock, and return 1 to tell the system that the deadlock has been handled.
- New features for AMR simulation:
- Added an OnNavigationFailed trigger that is fired when the AGV can't resolve a valid path to a destination. This is to give the user the ability to handle the error. Returning 1 means try again, returning 2 means end the task.
- Added parameters to the Custom Path Cost: a forward/backward boolean and a reference to the AGV if there is one.
- Added AGV.traversalPoints property and AGV.TraversalPoint class.
- Made AGV.AllocationPoint.stopDist writable.
- Added AGV.stopRecharge() and AGV.addAllocationPoint() methods.