Professional Documents
Culture Documents
Modelling of Robots and Manipulators Exercise B2 Geometrical Model - Inverse Kinematics
Modelling of Robots and Manipulators Exercise B2 Geometrical Model - Inverse Kinematics
Exercise B2
T1. Determine analytically relationships expressing the joint coordinates qi i=1..3 in terms of
position and orientation of the last link.
In case of rotary joints the arctan function or a pair of arcsin and arccos (unless an assumed
joint motion range enables the use of only one of arcsin or arccos) functions should be used.
The report should contain complete derivation of the relationships starting from the position
and orientation of the last link described by a proper homogeneous transformation matrix 0Te
in the following general symbolic form:
N x Ox Ax Px
N Oy Ay Py
Te = y
o
Nz Oz Az Pz
0 0 0 1
All the elements of the above matrix are numbers denoted by symbols to make the analysis
general. The matrix and the constant parameters of the geometrical model constitute the input
data for the algorithm.
Note that in case when the 3rd coordinate frame is located at the beginning of the 3rd link the
location of the tip of the 3rd link with respect to the reference fame might be determined by
the following product:
0
0
pa = 0 T 3
d 4
1
The above formula leads to 3 numbers (Cartesian coordinates pax, pay, paz) defining the
location of the tip of the 3rd link.
The manipulator geometrical model defines the way of dependence of these coordinates on
joint coordinates algebraic, usually non-linear functions f1(q1,q2,q3), f2(q1,q2,q3) and
f3(q1,q2,q3) that lead to the following set of equations:
pax = f1 (q1 , q2 , q3 )
pay = f 2 (q1 , q2 , q3 )
paz = f 3 (q1 , q2 , q3 )
1
Katedra Robotyki i Mechatroniki, WIMIR, AGH Krakw
pax = d 3C1S 2
pay = d 3 S1S 2
paz = d1 + d 3C2
Solution of the above equations leads to formulas expressing joint coordinates q1, q2, q3 in
terms of the already known values of pax, pay and paz.
The solutions for q1, q2 and q3 should be introduced into the algorithm.
In case of a 3 link planar manipulator one of the pax, pay and paz Cartesian coordinates equals
always 0. Then the 3rd input data must be the orientation angle of the 3rd link, and some
elements of the orientation part of the 0T3 matrix should be used to formulate the third
equation of the set.
T2. Find a number of solutions of the inverse problem for the considered example of a
manipulator. In case of the multiple solution present all the solutions graphically on the
drawing of the kinematic chain of the manipulator. Indicate the solution within and outside of
the selected joint variables motion ranges.
T3. Analyze conditions of existence of the achieved solutions to the inverse kinematics.
T4. Using the formulated algorithm prepare a Matlab procedure for calculation of values of
joint coordinates basing on the position and orientation of a 3rd link defined by a
corresponding homogeneous transformation matrix.
To test the procedure, please assume some values of the joint coordinates. Calculate elements
of the corresponding homogeneous transformation matrix that expresses position and
orientation of the end-effector. Next use this matrix as the input data for the procedure that
solves the inverse kinematic problem. One of the achieved solutions should be identical with
the values of the joint coordinates that were assumed at the start of the testing procedure.
2
Katedra Robotyki i Mechatroniki, WIMIR, AGH Krakw
3. Checking if the values of pax, pay and paz achieved by substitution of the calculated
values of q1, q2 and q3 to formulas on pax, pay and paz are consistent with the values
obtained during preparation of the input data.
Some examples of commands useful in the prepared script are listed below.
qr(k,1)=t1(i)
qr(k,2)=t2(i)
qr(k,3)=t2(i)
end
end
Please note that all the angles used with the trigonometric functions should be expressed in
radians as well as all the distances in meters.
3
Katedra Robotyki i Mechatroniki, WIMIR, AGH Krakw
3. Numerical solution
T5. Determine values of the 3 first joint coordinates by solving the set of equations:
p ax = f1 (q1 , q 2 , q3 )
p ay = f 2 (q1 , q 2 , q3 )
p az = f 3 (q1 , q 2 , q3 )
All the parameters (values of pax, pay and paz as well as the constant values) should be
substituted before the solving of the set of equations.
An example of the solution for an RRR manipulator arm structure:
Remark:
All the angles should be introduced in radians and distances in meters.