how to get agv path offset?

how to get agv path offset?

jiang_j
Not applicable
352 Views
8 Replies
Message 1 of 9

how to get agv path offset?

jiang_j
Not applicable

[ FlexSim 20.1.3 ]

how to get agv path offset along current path?

0 Likes
Accepted solutions (1)
353 Views
8 Replies
Replies (8)
Message 2 of 9

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Do you mean to the side, similar to this post?

0 Likes
Message 3 of 9

ryan_c10
Not applicable

Hi @jiang J, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 4 of 9

jiang_j
Not applicable

i mean how to get the value of "path offset" of AGV Traveler follow this picture1645855864709.png

0 Likes
Message 5 of 9

jiang_j
Not applicable

and how to let the AGV run a Specified offset length along current path?

0 Likes
Message 6 of 9

jason_lightfoot_adsk
Autodesk
Autodesk

The initialPathOffset at reset is an agv attribute which is accessed at this location using sdt or the tree:

agv.as(treenode).subnodes["initialPathOffset"].value;
0 Likes
Message 7 of 9

jason_lightfoot_adsk
Autodesk
Autodesk

You specify an extra parameter in the travel task - see the documentation about customizing agv travel.

0 Likes
Message 8 of 9

jiang_j
Not applicable

can u show me how to use the "agv.as(treenode).subnodes["initialPathOffset"].value " ; ths

0 Likes
Message 9 of 9

jason_lightfoot_adsk
Autodesk
Autodesk
AGV myAGV=AGV(Model.find("TaskExecuter1"));
double initialOffset=myAGV.as(treenode).subnodes["initialPathOffset"].value;  //read the current value
print(initialOffset);    //print to the output console
myAGV.as(treenode).subnodes["initialPathOffset"].value=5;   //set it to 5 

You won't see the agv move to a new initialoffset value until you reset the model.

0 Likes