I am trying to loop through a series of movements as long as an input is false. When that input goes true I want to immediately exit the loop and do something else.
This is very simple with a loop command and using "check expression continuously option."
My problem is that when the input goes true, the robot jolts to a stop as if performing a security stop. I tried using a stopl() command right after the loop, but this does work.
I looked at the underlying script code, and it seems that with the "check expression continuously" option, a separate thread is spawned to handle it.
I'm guessing that the when the input goes true and the thread is "killed," the path planner does not immediately "see" what to do and so hands out 0 velocity to all the joints which is this sudden violent stop.
Is this what is going on? Is there any way around this behaviour?
Thanks!