How to rotate a pose

Hello,

I’m trying to pick up a part than can be rotated, but the further its rotated, the further my TCP is away from where its supposed to be.

there is a sensopart camera that sends the location of my part to my UR10e. When the part moves but does not rotate, they UR10e will always pick it up right in the middle, but when I rotate the part aswell, suddenly my cobot fails to pick it up in the middle. (the TCP is correct and the camera has been calibrated)

using this pose that contains the variables in the proper form, with both pose_trans and pose_add it will not stay accurate.
Am I supposed to use something else to make the TCP turn to the proper angle?

var_1=p[dx,dy,0,0,0,dz]

Any help is appreciated.

hi @luca-0

i had a similar problem in the past.
try reading this answer on my post.

basically, where thinking in terms of RPY but we need to convert that to rotation vector using rpy2rotvec()
(hopefully, i understood it correctly)