How do I force an AGV to maintain same orientation on sideways path(crab)?

How do I force an AGV to maintain same orientation on sideways path(crab)?

michael_oconnell
Not applicable
1,125 Views
5 Replies
Message 1 of 6

How do I force an AGV to maintain same orientation on sideways path(crab)?

michael_oconnell
Not applicable

[ FlexSim 16.1.0 ]

I'm trying to create an AGV network that carries different parts. Some allow the AGVs to rotate and do forward/reverse travel. Other parts don't allow rotation and the AGVs will just move sideways or crab.

Attached model captures the essence of the situation in an overly simplified form. Travel network on left represents movement desired of the AGV system as TE maintains vertical orientation.

crabbing.fsm

Accepted solutions (1)
1,126 Views
5 Replies
Replies (5)
Message 2 of 6

sam_stubbsYXX86
Alumni
Alumni
Accepted solution

As far as I can tell there's not really a way to override the rotation etc that the AGV network assigns to its task executers. However, if you're using Network Nodes, you can simply add a trigger on the Node where you want the Task Executer to "crab" and have it set its rotation using the setrot() command.

Message 3 of 6

cody_f
Not applicable

Where do you apply this setrot() command? I tried to type this as a code snippet in a trigger, "setrot(90)" and it tells me not enough parameters in call to command. I know nothing when it comes to the flexscript so any help would be appreciated.

0 Likes
Message 4 of 6

benjamin_w2
Not applicable

Hi @Cody F, There are 4 arguments that go into "setrot".

setrot(obj object, num rx, num ry, num rz)

0 Likes
Message 5 of 6

cody_f
Not applicable

20350-capture.jpg

@Benjamin W2 Thanks for the reply and so I inputted what I thought would be right based off what you put but I am still missing something. Its saying "syntax error, unexpected identifier, expecting ')' or '.'". I am not sure what it's looking for exactly.

0 Likes
Message 6 of 6

benjamin_w2
Not applicable

Try this:

20370-codesnippet.png

0 Likes