Hi, i have a problem trying to solve the direct kinematic using matlab, for the given model. I want to calculate it symbolically, through the transformation given by the homogeneous matrices.
I used the DH extract tool for Vrep, but i can't understand why it gives me only 5 rows of the dhtable(there are 6 different joints).
I tried also to use the official parameters for the robot(and here the dhtable has 6 row as i was expected), but the endeffector position is quite different from the point shown in vrep. I moved the robot in the (0,0,0) position of the world too.
I think the formulas used for the matrices is correct, i double checked them.
Thank you!
Forward Kinematic UR5 Matlab
Re: Forward Kinematic UR5 Matlab
Hello,
you have to add another joint at the base of the manipulator (i.e. at the exact position where your robot's origin is), just before extracting the DH parameters.
Cheers
you have to add another joint at the base of the manipulator (i.e. at the exact position where your robot's origin is), just before extracting the DH parameters.
Cheers

 Posts: 11
 Joined: 22 Apr 2017, 09:20
Re: Forward Kinematic UR5 Matlab
Hi!
You can define manually the Transformation from J6 to the endeffector (should just be a translation along the local zaxis and then a rotation of theta about z). If you want to use the terminal Force Sensor as EE frame, the parameter d should be 0.075m and theta equal to the joint angle.
I hope it will help!
The reason is that the DH parameters extractor works with couples of joints, and assumes the baseframe to be located at the first joint. It means that it will give you the offsets/rotations for 5 different couples of joints: (J1,J2) (J2,J3) ... (J5,J6). What are missing are the parameters relative to the couple J6/endeffector. Indeed, the ee frame is not defined and that's why you won't get info about the related parameters.i can't understand why it gives me only 5 rows of the dhtable(there are 6 different joints)
You can define manually the Transformation from J6 to the endeffector (should just be a translation along the local zaxis and then a rotation of theta about z). If you want to use the terminal Force Sensor as EE frame, the parameter d should be 0.075m and theta equal to the joint angle.
I hope it will help!
Re: Forward Kinematic UR5 Matlab
I inserted it, but the first row of the dhtable is a bunch of zeros. As francofusco said, seems to be missed the last frame. I put the last trasformation matrix as he saids to 0.075, and now the x and y position seems to be correct, but i have an error of 7.8 cm on the z axis left.coppelia wrote:Hello,
you have to add another joint at the base of the manipulator (i.e. at the exact position where your robot's origin is), just before extracting the DH parameters.
Cheers
Re: Forward Kinematic UR5 Matlab
Ok now seems to be correct, because the first joint position was not 0,0,0, but shifted a little bit in zdirection. So just an initial translation e now everything work. Thank you!