question

Alessio Merlo avatar image
1 Like"
Alessio Merlo asked anthony.johnson commented

Error while creating automatically AGV network

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.

FlexSim 21.0.0
agvagv networkflexsim 21.0.0autobuild
5 |100000

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

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered anthony.johnson commented

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.

· 6
5 |100000

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

Alessio Merlo avatar image Alessio Merlo commented ·

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 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Alessio Merlo commented ·

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

0 Likes 0 ·
Alessio Merlo avatar image Alessio Merlo Jason Lightfoot ♦♦ commented ·

That is! I'm sorry.

agv_autoBuild_autoRun.fsm

1 Like 1 ·
Show more comments