Inverse Kinematics
It is done for determining the joint variables in terms of the end-effector position and orientation. To control the configuration of the end-effector to reach an object, the inverse kinematics solution must be solved. Hence we need to know what are the required values of joint variables to reach a desired point in a desired orientation
DH Parameters
Denavit-Hartenberg (1955) method that uses four parameters is the most common method for describing the robot kinematics. Denavit & Hartenberg showed that a general transformation between two joints requires four parameters. These parameters known as the Denavit-Hartenberg (DH) parameters have become the standard for describing robot kinematics.
First, we start by defining the z axis along the axis of rotation for revolute joints or the axis of translation for prismatic joints. For the first joint the x axis is a free choice. For later joints each x axis will point away from the previous joint. If we add another joint, we can determine the transformation between them as before the z axis points along the axis of rotation. The DH parameters will be derived from the common normal between these z axes. The common normal is orthogonal to both vectors as also the shortest line between them. The new x axis points along the common normal and has its origin at the intersection of the new z. Using this protocol for laying out the reference frames only for parameters are needed the first of these. d is the depth along the previous joint z axis from the origin to the common normal. Theta rotates about the previous z-axis to line the x-axis. r is the length of the common normal itself. This is also the radius of revolution for the new origin about the previous Z. alpha rotates about the new x-axis to bring Z into alignment with the axis of joint motion.

DH Parameters for KUKA KR3 R540 is given below

Decoupling Technique
It is possible to decouple the inverse kinematics problem into two sub-problems known as inverse position and inverse orientation kinematics. the practical consequence of such a decoupling is the allowance to break the problem into two independent problems each with only three unknown parameters.
Solution of the inverse kinematics problem starts with the wrist position followed by the orientation of the wrist. Wrist position depends only on the θ1, θ2 and θ3 angles, which can be determined geometrically and the orientation of the wrist depends only on the θ4, θ5 and θ6 which can be determined using the algebraic method.
Inverse Position

Finding θ1 : For finding the θ1 we need to first find P04 which can be obtained by a translation d6 under the z6 axis from the joint 6, P06.


Finding θ2 : Before finding the θ2 as we can see from the geometric analysis figure shown above, we need to P14 , γ and ω. ω can be obtained using the cosine law of SSS triangle.

where n = [-1,1] because of the z-axis
Finding θ3 : You can either start finding θ2 first or θ3 . Since we obtained P14, we need to find the β and α. β can also be obtained by using the cosine law for SSS triangle. Considering that the sum of the internal angles of any triangle equal to π and then the adjacent angles equal to π-β.

Inverse Orientation
Through the rotation matrix (4R6) we can obtain the other three joint variables namely θ4, θ5,and θ6.


Hope this blog is helpful and feel free to send feedbacks and also to comment on blogs for further improvements in the future.
Thank you.





































