Hi
How to know which controlpoint that agv traveling now? At picture, I use agv.currentCP but it shows the controlpoint(CP11) which agv haven't arrive yet. I want to get controlpoint which agv arrive now(CP6). How can I do it?
Hi
How to know which controlpoint that agv traveling now? At picture, I use agv.currentCP but it shows the controlpoint(CP11) which agv haven't arrive yet. I want to get controlpoint which agv arrive now(CP6). How can I do it?
As far as I understand the system, "currentCP" returns the most recent control point the AGV "arrived" at. Arrived in this context means that the Pre-Arrival event for that control point has happened and the AGV has decided to come to a stop at that point or continue beyond it. Depending on the current speed and the deceleration value, the AGV has already "arrived" at CP11 since it couldn't actually come to a stop in time anymore.
The actual next control point it will pass can be determined by looking at the "traversal points" of the AGV. An entry for a control point in these traversal points determines when the point will be deallocated. So for the default setting of "Deallocate At Next Control Point", the second control point in the list would be the next one the AGV passes (since the first control point in the list will already be behind). (Apart from when there is only one because the AGV has finished its travel.
Object agvObj = Model.find("TaskExecuter1"); AGV agv = AGV(agvObj); if(agv.traversalPoints.length > 1) { return ownerobject(agv.traversalPoints[2].as(treenode).value); } return ownerobject(agv.traversalPoints[1].as(treenode).value);
A question: Why do you place so many control points so close together on a path with no intersections? Maybe there is a better approach for what you want to achieve, such as setting paths to use an accumulation behaviour.
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved