question

Bing Z avatar image
0 Likes"
Bing Z asked tannerp commented

AGV transverse deviation

agv-transverse-deviation.gif

How to use agv module to realize transverse deviation by agv module as pic showing?

sb. tells me to do it in the following steps:

1. Pull in an 「AGV B」with the same appearance ;

2. In OnDraw or other real-time update triggers, type the code to synchronize the position of 「AGV B」and the original AGV;

3. Hide the original actuator.

maybe code like "「AGV B」location = Vec3(x,y,z)", but I don't know how to realize it.

Can you tell me how to do it ?

FlexSim 19.0.1
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

tannerp avatar image
0 Likes"
tannerp answered tannerp commented

Hi @Bing Z,

We recommend using a dummy AGV with an On Draw trigger like you mentioned.

I've created a small example model of how this can be done using a simple line of code. The code is found in the On Draw trigger of the original Task Executer ("RealAGV"). Hopefully this helps.

dummy-agv.fsm


dummy-agv.fsm (25.2 KiB)
· 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.

Bing Z avatar image Bing Z commented ·

Thanks for your excellent answer,it really help.Now there is a new question, the item on AGV won’t thansverse,can you tell me how to solve this problem, thank you

0 Likes 0 ·
tannerp avatar image tannerp Bing Z commented ·

Hi @Bing Z,

You can simply duplicate the code used for the Dummy AGV and reference the item instead. The only caveat is you have to first verify that there is an item loaded. To be safe, I created a loop that will reference all of the subnodes of the Real AGV so as to rotate as many items as are loaded on the AGV. I've updated the model and attached it to this comment.

dummy-agv-load-object.fsm

0 Likes 0 ·