question

Andreas BH avatar image
0 Likes"
Andreas BH asked Ralf Gruber commented

Crane Colision with agent System

Hello,

last week i looked for a solution to avoid crane collision. I found this thread very interesting and tried to use it. It use the file "crane-collidsion-with-agent-system" from this topic and inserted it to my model. The problem is, that "Kran528" stops and "Kran528" crosses K528. I don't know why.

Thank You!

FlexSim 22.1.4
crane movementproximity agent system
· 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.

Andreas BH avatar image Andreas BH commented ·

cranecollision_1.fsm

i fort the file..

0 Likes 0 ·

1 Answer

·
Ralf Gruber avatar image
0 Likes"
Ralf Gruber answered Ralf Gruber commented

Andreas,

In your logic a new TS is created for Crane528 with every in proximity check, e.g. every 0.1s. This creates a new TS preempting the old one every single time for Crane528, always starting at speed zero. With the little acceleration of the cranes, Crane528 does not make any significant distance, while crane523 stays at the same speed and sooner or later bumps into Crane528.

If you change the crane´s Gantry acceleration to "0", meaning infinite, you´ll see it move. You will have to change your logic to not create a new TS, when a preemptive TS alreay exist to move it out of the way.

Good Luck

· 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.

Andreas BH avatar image Andreas BH commented ·

Thank you! I changed the update interval and gantry Acceleration. It works fine.

0 Likes 0 ·
Ralf Gruber avatar image Ralf Gruber ♦ Andreas BH commented ·

Andreas,

I would modify the logic in a way that the task sequence to move the lower priority crane out of the way is only created once, not with every single call of the logic.

It seems the original design was meant to do this, therefore the TAG task to mark the task sequence and not recreate it. For some reason it just doesn´t work.


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.