Hi,
It looks like the distance to travel function does not always work.
Attached is an example model that shows the problem.
If you run the script before time 10 or after time 52.11 you will see the following exception.
exception: Exception Caught in distancetotravel(treenode traveler, treenode destination) exception: Exception Caught in ObjectFunction94__project_exec_commandlist_distancetotravel_node object: MAIN:/project/exec/commandlist/distancetotravel/node i: MAIN:/project/exec/commandlist/distancetotravel/node class: MAIN:/project/exec/commandlist/distancetotravel/node exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/exec/commandlist/distancetotravel/node c: MAIN:/project/exec/commandlist/distancetotravel/node i: MAIN:/project/exec/commandlist/distancetotravel/node thisClass: MAIN:/project/exec/commandlist/distancetotravel/nodeexception: Exception caught in evaluation of MAIN:/project/exec/commandlist/distancetotravel/node
There is no exception between time 10 and 52.2 (the AGV is moving at that moment).
In the actual model the problem only seems to be before the first travel task of the AGV, but I get the same exception. Is there a workaround for this bug?
Thank you