question

Francisco D9 avatar image
0 Likes"
Francisco D9 asked Jason Lightfoot commented

Can I export AGV information (position, next workpoint, etc...) in JSON ?

Im currently trying to apply an algorithm based from A-star an apply it to a multi-agv system. I need to send the AGVs information to the algortihm in a JSON format, how can i achieve this ?

FlexSim 22.1.0
agv
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Francisco D9, was anthony.johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
anthony.johnson avatar image
2 Likes"
anthony.johnson answered

You can create a Map containing the desired structure and values, and then call JSON.stringify(map) to get that structure into a JSON string. Then you can pass it to the algorithm as needed.

In the next release we're also adding more accessors to various AGV classes such as the AGV's current travel path and allocation points on that path. From your description, though, it sounds like you can probably do what you need with what is already there.

5 |100000

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

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.