Magician Execution time and feedback of motion complete


#1

So, I have a python script that runs the magician. I am using it to do a time-critical process.

I can command it to move, but I don’t get any feedback of when the move actually is completed.

I am doing it in a very bad way right now:

destination = [x_commanded, y_commanded, z_commanded, r_commanded];
dobot.go(destination);
while(eucledian(dobot.pose() , destination) > 2) #tolerance is 2mm
{
//keep looping
}

What is a better way to achieve this, because I want to control other peripherals in a timed manner based on the location of the dobot magician.

Thanks for your help.


#2

Anyone?

Appreciate your help. Thanks.