Hi Uwe,
You should be able to use pose_trans to accomplish this. A pose p[x,y,z,ax,ay,az] describes the TCP completely in base coordinates. Your statement makes me believe this is a misunderstanding.
whereas the Rotation (ax, ay, az) of the Tool head is seen from the tool head position itself
I picked a somewhat arbitrary start position and then, this will rotate by 90 degrees around the base z-axis. I commented out the moves, but poses will be logged on the log tab.
p1=p[0,0.5,0.5,2.22,-2.22,0]
#movej(p1)
textmsg("p1 ", p1)
pr=p[0,0,0,0,0,1.57]
p2=pose_trans(pr, p1)
textmsg("p2 ", p2)
#movej(p2)
Hope that helps.
Hi,
in our PC based UR robot application we would like to provide a control panel for manual robot control of an URe robot like you know it from the UR robot teach pendant. That means the user should be able to manual move the robot in tool space (with respect to tool) and in base space (wrt base). We are almost there. We use the servoj command to implement this kind of control. To do this, we manipulate the pose that is given in cartesian space and then convert this with the get_inverse_kin function into joint position that are passed to the servoj function (see the thread jog_thread(): function here: https://gitlab.com/gitlabuser0xFFFF/ur_rtde/-/blob/uk_dev/scripts/rtde_control.script).
A UR robot pose is given as p[x,y,z,ax,ay,az], where x,y,z is the position of the TCP, and ax,ay,az is the orientation of the TCP, given in axis-angle notation. The x, y and z coordinates are seen from the Base position whereas the Rotation (ax, ay, az) of the Tool head is seen from the tool head position itself. To move with respect to the base frame, we can simply add a value to the x, y, z coordinate of a pose. To move with respect to the tool, we use the pose_trans function like it is written here (https://www.universal-robots.com/articles/ur/urscript-move-with-respect-to-a-custom-featureframe/). To rotate with respect to the tool, we can simply add an angle to the ax, ay and az part of the pose. This all works perfectly fine. But in the teach pendant it is also possible, to rotate with respect to the base frame. And this is something that we do not know how to implements this. That means, we do not know, how to translate a pose rotation wrt to the tool into a rotation wrt to the base frame.