The manipulator to be considered is shown in the figure below. The robot base is assumed to be at the origin, and space is assigned cartesian coordinates as shown. The links have lengths of ‘l1’ and ‘l2’. The joints may be rotated angles ‘θ1’ and ‘θ2’ about their axes. The location of the end effector in space will be assigned the coordinates ‘Px’, and ‘Py’.
For the kinematic transformation, the location of the end effector is calculated using the joint coordinates. There are many sophisticated techniques for finding the kinematics relationships, but here the coordinates may be found quite simply with some basic trigonometry.
The inverse kinematics transformation calculates the robot joint coordinates required to obtain the given Px, Py coordinates for the end effector. These equations are more involved to derive, and may be derived with several sophisticated methods. The derivation can also be done with simple trigonometry, as shown below.
The reader should note that these equations provide two solutions, this is because the arm can reach any point in space with the elbow either up or down. The solution is also singular when Px and Py are both equal zero (at the origin), or outside the reach of the manipulator.