Hello,
is there a way to get a determimed rotation direction if I want to turn the TCP about 180° degree.
Code could look like this:
ptcp = get_actual_tcp_pose()
movel(pose_trans(ptcp,p[0,0,0,0,0,d2r(180)]),rAcc,rVel,r=0)
Sometimes the robot turns left, sometimes the robot turns right.
Is there a possibility to get a detemined direction ?
My workaround is to split the movement in pieces so the robot is forced to turn in my preferred direction. The downside is, that the robot stops at each of the split movements.
Code could looks something like that
ptcp = get_actual_tcp_pose()
movel(pose_trans(ptcp,p[0,0,0,0,0,d2r(90)]),rAcc,rVel,r=0)
movel(pose_trans(ptcp,p[0,0,0,0,0,d2r(180)]),rAcc,rVel,r=0)
Blending the movements doesn´t work because the position of the TCP is always the same and the blending algorithm doesn´t consider the orientation of the TCP.
Any ideas about another solution or an additional workaround for the blending ?
Thank you
Best Regards,
Alexander Apostolidis