I can set "Stop for Turns" in A* Navigator.
Is there a way to know how many times this "Stop for Turns" has been done?
I can set "Stop for Turns" in A* Navigator.
Is there a way to know how many times this "Stop for Turns" has been done?
Hi @Ryusuke T, was Felix Möhlmann'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.
Here is one idea how this could be done:
I an instanced process flow with the task executer as instance object, I listen to the "OnAStarNavigatePath" event. This happens when the task executer starts traveling and let's you assign the node with the kinematics info to a label on the token.
I then use the "getkinematics()" command (see link below) to search the kinematics for rotations and store their start times in an array. The token then waits for the start time of the first rotate kinematic and increments a label on the task executer. It then loops around until there are no more entries in the array (no more rotations in the travel path).
I also write the current token to a label on the task executer. When it becomes blocked as has to take a new path, this allows me to prematurely release the counting token from the loop so only the rotations that actually happen are counted.
https://docs.flexsim.com/en/22.1/Reference/DeveloperAdvancedUser/Kinematics/Kinematics.html#other
Edit: added 21.2 version of model
Sorry for the late reply.
This is exactly what I wanted to do!
Thank you for your answer.
15 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