question

Steven Chen avatar image
1 Like"
Steven Chen asked Phil BoBo commented

Get all control points on path that AGV is going to travel

Hello,

Currently I can only retrieve origin CP, current CP, destination CP, and final CP when a AGV is traveling. How can I know all control points from origin CP to final CP on a travel task fired?

FlexSim 18.2.2
agvcontrol point
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Chen avatar image Steven Chen commented ·

Under the node allocationPoints, I found 5 sub-nodes that indicates each control point that the agv is going to allocate from start to end. But I can't retrieve value in the nodes to know how the agv will travel.

0 Likes 0 ·
01.png (23.5 KiB)
Steven Chen avatar image Steven Chen Steven Chen commented ·

I noticed that some information in node AGVNetwork>variables/agvs/AGV1 are able to be retrieved by AGV class. Is there no way to read other values in current version?

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

The values in those nodes can be accessed with the getsdtvalue() command, but based on your question, it seems that you have an underlying problem that you are not explaining.

If you access that data directly and it changes in a subsequent release of the software, then your model will not work correctly when you try to upgrade it from one version to another.

Perhaps if you explained why you want to access this data, we could suggest a better solution for what you are trying to do.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Chen avatar image Steven Chen commented ·

We are trying to make the AGVs choosing paths smarter. On travel task dispatched, the route from start to end is determined by Flexsim in the shortest way. If another AGV also received a travel task and its route overlaps the one of first AGV or entering another direction on a two-way path, then we want the second AGV to use other path to avoid blocking.

I understand that command may have compatibility issue between different versions. Nevertheless, I will use it to solve my question for now.

Thank you.

0 Likes 0 ·
Emily K avatar image Emily K Steven Chen commented ·

@Steven Chen Hi Steven, I am trying to do the same things as you described.

Would you mind sharing how you did it?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Emily K commented ·

The AGV API now has more properties for accessing information about an AGV's path than when this question was first asked.

For example, see FlexScript Class - AGV.TraversalPoint (flexsim.com)

0 Likes 0 ·
Meng,Li avatar image Meng,Li commented ·

Hi!bobo,There is a circumstance under which i need to access all control points on path that AGV is going to travel. I've asked a question here: https://answers.flexsim.com/questions/83333/simulate-agvs-rotation-correctly-during-traveling.html .Please take a look. Thanks in advance.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.