Error while creating automatically AGV network

Error while creating automatically AGV network

amerloQ2XZU
Advocate Advocate
92 Views
7 Replies
Message 1 of 8

Error while creating automatically AGV network

amerloQ2XZU
Advocate
Advocate

[ FlexSim 21.0.0 ]

Hi,

I would like create the model objects at reset and then run the model.

My trigger works good, but when the simulation starts an error occurs.

I attached the model to reproduce the issue (AGV_square_network.fsm). You can simply reset and run the model. The model is composed by:

  • a plane which destroys all objects and creates the new one in the OnReset trigger;
  • a process flow which create a simply travel task sequence;

Moreover I noted that the model works well if I put a breakpoint at the trigger end, but it doesn't work when I don't debug the script.

Could someone help me? @anthony.johnson @Jordan Johnson

Thanks in advance for your support.

Accepted solutions (1)
93 Views
7 Replies
Replies (7)
Message 2 of 8

JordanLJohnson
Autodesk
Autodesk
Accepted solution

Perhaps @anthony.johnson knows more. I noticed that for some control points, I get an exception. For others, I get the message that there is no path from the start point to that CP.

It looks like each intersection is an intersection of four paths, and that there is a control point on top of each intersection. I think part of the problem is that AGV only allows a control point to be associated with a single path. I'm guessing this leads to troubles in the assumptions in the AGV code, possibly including floating point issues.

I'd probably work with another approach, if possible. A* has options to turn off diagonal travel. It might be easier to fight with A* and put objects near each node than to fight with AGV this way.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 8

amerloQ2XZU
Advocate
Advocate

Thanks @Jordan Johnson!

I obtained your issue too. But if I debug the build code, the issue disappears. I don't understand the reason!

I simplified the model to exclude the problem related to control point position, even if @anthony.johnson would solve the issue after this post (https://answers.flexsim.com/questions/81841/something-broken-in-code-built-agv-network.html).

The issue changes and doesn't occur systematically. Could you check on your pc?

The model is very basic:

  • OnModelReset the code destroys all objects and recreates them;
  • the process flow generare a travel task;
  • sometimes in the system console an exception is caught;

To reproduce the issue you have to reset and run the model several times. The error isn't systematically.

agv_autoBuild_autoRun.fsm

0 Likes
Message 4 of 8

jason_lightfootVL7B4
Autodesk
Autodesk

I think you may have edited the last post meaning the model link is lost - can you re-upload it?

0 Likes
Message 5 of 8

amerloQ2XZU
Advocate
Advocate

That is! I'm sorry.

agv_autoBuild_autoRun.fsm

Message 6 of 8

anthony_johnsonT83CM
Autodesk
Autodesk

@Alessio Merlo This is a bug. We'll add a case to the dev list to fix this.

Message 7 of 8

amerloQ2XZU
Advocate
Advocate

Thanks @anthony.johnson! Is it easy to solve? Will be available in the next bug release?

Moreover, could AGV network support square network as I built?

0 Likes
Message 8 of 8

anthony_johnsonT83CM
Autodesk
Autodesk

No, it's a weird memory issue where a pointer is somehow corrupted, and it's hard to repeat. We'll try to get a fix in soon. As far as square grid networks, the AGV network was not designed for such use cases. I would suggest using A* instead.