question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Patrick Zweekhorst commented

Let AGV drive forward as much as possible

Hi,

It is possible to let the AGV drive forward as much as possible? The AGV can only rotate on the spot, but when it rotates it could choose between +90 degrees or -90 degrees. Depending on this choice the AGV will travel backward or forward after the rotation. Since traveling backwards is much slower it would in this model be best if the AGV rotates such that it will travel forward after the rotation.

We have been playing with the Turn Around Threshold in the AGV Network. Setting this value below 90 will let the AGV change travel direction all the time. Setting this value above 91 will never let the AGV change direction. You can play a little bit with these numbers in the attached model.

Would there be some kind of setting to let the AGV drive forward as much as possible?

One thing we thought about was to change the rotation in the custom delegate node. But one of the conditions there is:

  • The cumulative distances of the z parameters of all addkinematic() calls should be exactly rotation (param(2)).

So the end result of the rotation will never change. In the second model (RotateTestSolve_1) we tried to play around with this a little bit (ignoring the rule mentioned above). Getting the rotation correct is possible, but it won’t result in the correct driving speeds. So this is probably not a good solution!

Any help on this would be highly appreciated.

Patrick

RotateTest.fsmrotate.gif


RotateTestSolve_1.fsm

FlexSim 23.0.4
agvamrrotatecrossing
rotate.gif (224.6 KiB)
rotatetest.fsm (37.0 KiB)
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

·
Kavika F avatar image
0 Likes"
Kavika F answered Patrick Zweekhorst commented

Hey @Patrick Zweekhorst, it looks like your Turn Around Threshold for the AGV system could be increased to force the AGV to always go forward. The documentation states that an AGV

"will check the difference in travel direction for the respective paths, and if it must change direction by more than this amount in transferring to the new path, then it will stop and reverse its direction before continuing onto the path."

If you change it to be 180 degrees, then it will always drive in one direction. If you change the starting orientation of the AGV, then it will drive forward and rotate accordingly. Here's what it looks like after making those modifications.

agv-turn-correctly.gif

rotatetest_kf.fsm


rotatetest-kf.fsm (128.1 KiB)
· 8
5 |100000

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·
@Kavika F ,


I continued this discussion with Anthony and we some ideas to make this easier. Probably the best way to give this control to the user is to make two turn around around thresholds, one for when the AGV is driving forward and one for when the AGV is driving backwards.


1 Like 1 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @Kavika F ,

Thank you for looking into this. However, when I change the threshold to 180 degrees I still get the same rotations, see the attached model. Changing the value to 180 works only if the vehicle starts driving forward, but that is not always the case, as in my example model. Or am I missing something?


RotateTest.fsm

0 Likes 0 ·
rotatetest.fsm (37.6 KiB)
Kavika F avatar image Kavika F ♦ Patrick Zweekhorst commented ·
If you try a Turn Around Threshold of 181, it will turn around for that last case in the model.
0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Kavika F ♦ commented ·
I see yes. In this model we would like the AGV to only rotate at curve. And when there are multiple options (+90 or -90) to take the one such that it can drive forward after the curve. But the AGV is not allowed to rotate 180 degrees at a straight path. Does this situation make sense to you?
0 Likes 0 ·
Show more comments

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.