How can I acquire the distance between a traveling AGV and a fixed resource object in the AGV system?

How can I acquire the distance between a traveling AGV and a fixed resource object in the AGV system?

yangyang_lan
Not applicable
31 Views
5 Replies
Message 1 of 6

How can I acquire the distance between a traveling AGV and a fixed resource object in the AGV system?

yangyang_lan
Not applicable

[ FlexSim 16.1.2 ]

How can I find the distance between a traveling AGV and a fixed resource object in the AGV module? The AGV is traveling on the path, and the fixed resource object is connected to a control point on the path.

Accepted solutions (1)
32 Views
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel_HsH
Mentor
Mentor

Here a not tested command: cpdistance(start object, destination object). But I think this command works only stationary objects and not traveling objects. Perhaps you can test it in a small model and tell us your results.

Message 3 of 6

yangyang_lan
Not applicable

Thanks for answering. This command does not work well. Do you have any other solutions?

0 Likes
Message 4 of 6

adrian_haws
Not applicable
Accepted solution

This is a somewhat difficult thing to find. There is a forum post here with a model that does something similar to finding the location of the AGV on a network. The difference is that it's finding the distance between two AGVs on the network. Some of the logic would have to be changed.

Message 5 of 6

yangyang_lan
Not applicable

Thank you so much! I will try it later.

0 Likes
Message 6 of 6

joerg_vogel_HsH
Mentor
Mentor

All the travel is based on kinematics and you can query the kinematic node to get the information of the travel distance to its destination. There are three conditions to be fulfilled. Firstly the kinematics to the destination you wish to query has to be created, secondly you need the time you like to get the distance and thirdly you have to know which node stores the kinematics. Maybe someone from Flexsim can give us a hint where we can find the node where the kinematic is stored. The command itself is well documented in the manual and the command manual.