question

Danny W avatar image
0 Likes"
Danny W asked Danny W commented

AGV change path problem

test Travel proble

How can I let KID unload to the pointB,and travel to the point as PF

not turn back to the pointA, please help me!!!


FlexSim 20.0.10
agv
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

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Danny W commented

Internally, for the navigator, the AGV is still positioned at Control Point A after it is moved. You have to update its "currentCP" before giving it the next travel task, otherwise it will continue from its last known position.

You can do that with the following code

AGV(Model.find("KID")).currentCP = Model.find("ControlPointB");

You can replace the "Model.find()" with other valid references to the AGV and control point. This specific code assumes that the "KID" is in moved back into the model after moving it to ControlPointB. I did that as a precaution; leaving the "KID" inside the control point node seems to work fine, but would have to be reflected in the ".find" command ( Model.find("ControlPointB/KID") ).

test-travel-problem_fm.fsm


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

Danny W avatar image Danny W commented ·

Itˊs AMAZING!!!!!

you are literally fix my problem!!!

I appreciate your kind assistance:)

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.