Robotics Lab
Robotics Lab
Lab Report # 7
Submitted to: Engr. Shehbaz Khan
Submitted by: Abdul Moiz Qarni
Section: A
Registration # 17PWMCT0564
Due Date: 4th February 2021
1
Contents
Introduction .................................................................................................................................... 3
Objective ......................................................................................................................................... 3
Solution ........................................................................................................................................... 3
Step 0: Number of Joints............................................................................................................. 4
Step 1: Assigning coordinate frame 0 to the robot base. ........................................................... 4
Step 2: Align zi with the axis of joint i+1. .................................................................................... 5
Step 3: Locate the origin oi at the intersection of zi and zi-1 ....................................................... 5
Step 4: Assigning the x coordinates ............................................................................................ 6
Step 5: Assigning the y coordinate ............................................................................................. 6
Step 6: Set origin on at the tool tip .............................................................................................. 7
Step 7: Finding the bi................................................................................................................... 7
Step 8: di = distance from origin oi-1 to bi measured along zi-1 ................................................... 7
Step 9: ai = distance from bi to oi measured along xi................................................................... 8
Step 10: θi = angle of rotation from xi-1 to xi measured along zi-1 ............................................... 8
Step 11: αi = angle of rotation from zi-1 to zi measured along xi.................................................. 8
DH Table: ......................................................................................................................................... 9
Matlab Part: .................................................................................................................................... 9
Conclusion ..................................................................................................................................... 10
References .................................................................................................................................... 11
2
Rigid Motions and Homogeneous
Transformation
Introduction
In robotics, the orientation of a robotic system can be represented in mathematical terms using
rotation matrices. Rotation matrices transform the coordinate axes (e.g. x, y, and z)
representing the orientation of a 3D object in one frame to the coordinate axes of another
frame. These matrices can help us determine how the end effector of a robot changes its
orientation due to changes in a robotic arm’s angle [1]
These matrix manipulation can very well be doing by hand using basic mathematics but gets
impractical in practice, therefore we can use premade toolboxes such as “Robotics, Vision and
Control” toolbox, which is an add-on in Matlab, developed by Peter Corke. [2]
Objective
Find the Forward Kinematics of PUMA560 Robot
Solution
Let’s take a look at the PUMA560 Robot. The figure below shows a diagram of one:
3
The systematic way of finding the forward kinematics of it are through the DH table steps
4
Step 2: Align zi with the axis of joint i+1.
In the skeletal diagram of the Puma below, all the z coordinates are assigned
Figure 4 Assigning z
5
Step 4: Assigning the x coordinates
In the below figure are the xi and xi+1 coordinates
6
Step 6: Set origin on at the tool tip
This part of the steps is already solved in the steps about with the x6, y6 and z6 having assigned
the directions as shown.
7
Step 9: ai = distance from bi to oi measured along xi
Likewise the distance used in this one is a generalized distance of a PUMA560 robot. The result
is:
a1 = 0
a2 = 431.8mm
a3 = -20.32mm
a4 = 0
a5 = 0
a6 = 0
8
DH Table:
Now with all the steps completed a DH table can be finalized to present the forward kinematics
of this robot.
Axis θ d a α
1 90 0 0 90
2 0 149.09mm 431.8mm 0
3 90 0 -20.32mm 90
4 0 433.07mm 0 -90
5 0 0 0 90
6 0 56.25mm 0 0
Matlab Part:
This program can be ran on Matlab as well with the following code:
startup_rvc
clc
clear all
startup_rvc
L1 = 0.4; L2= 0.1; L3 = 0.2; L4 = 0.3;
Rob.plot([pi/2,0,pi/2,0,0,pi/2])
9
Figure 9 Matlab DH table
Conclusion
This lab is about finding the kinematics and the DH table of any robotic figure. This process is
immensely simplified with the use of following some very basic steps, which take is step by step
to our end DH table result.
10
References
11