Adavanced operation of the robot arm
Mainly realize that the robot arm intelligent judge the function that the robot arm has already arrived the specified position, based on this function, simply let the robot arm repeat two arrival instructions.
- Firstly use
if domodule to judge if the robot arm is powered, if not, you should power the robot arm. Output the current angle node information.
- Transfer the robot arm to zero. Define
anglesvariable. Use the
repeatedmethod in the creation of
listtype data to assign zero node information to
limit_timeto determine if the movement times out.
is in positionmethod to determine whether the robot arm has reached the specified position. Use the
repeatmodule 0.5s per movement to detect whether the robot arm has reached the specified position and time out the timer, and if more than 7s the robot arm has not yet reached the specified position, determine that it has arrived and execute the next instructions.
- The principle is similiar, so no more explanation