I am writing a simple script for universal robots UR10 robotic arm.
I am trying to find a way to to see if the tool current position is outside of a 3D bounding box. the 3D bounding box is defined in the coordinate system of the tool. (y is up, x right, z backwards).
The get_actual_tcp_pose()
function returns the tool pose in the 'base frame' coordinate system. it is my understanding that this is the coordinate system where the origin is at the base of the robotic arm.
So my questions are:
- How do I get the actual tcp pose in the TCP coordinate system (tool space)?
- Alternatively, how do I convert the pose returned by get_actual_tcp_pose() to the cooridnate system of the TCP using URScript?