Hi all,
For my master thesis project at Alten Mechatronics/TU Delft I'm looking into imitation learning.
Therefore I captured trajectories that I performed using the teach modus of the UR5. This was done by a Matlab driver for the UR5 that was developed at the TU Delft.
Now I would like to do the learning in the cartesian space and use ROS for the control of the UR5.
However I'm now running into the problem of converting the data that I captured to ROS. Especially I can't figure out setting the quaternion that is needed for the Pose.
The x,y,z values is no problem. I also know that a quaternion can be set by a angle-axis representation which are the rx,ry,rz values given by the UR5.
The problem is on what frame are the rx,ry,rz defined?
If I use the frame that is used by the UR5 (not the base_link of ROS but the base_link with a rotation because x and y axis are different), I don't get the right quaternions.
Because I also know the joint positions, I can set the robot to that pose and then do getCurrentPose() to get the quaternions. In this way I can check if I computed the same quaternions by setRotation(vector,angle).
So does anyone know how to use rx,ry,rz in ROS for setting the quaternion?
Another solution might be to capture the trajectories using ROS however from what I know teach modus does not work once ROS is connected.
For clarity the control screen of the UR5:
X = red(towards you), y=green(to the right, direction of wire), z=blue(up)
Does anyone have any input on this? You would be my personal hero if you have anything useful ;)