Professional Documents
Culture Documents
UG ELECTIVE
Lecture 2
Representation and Homogenous
Transformations
Dr. Hafsa Iqbal
Department of Electrical Engineering,
School of Electrical Engineering and Computer Science,
National University of Sciences and Technology,
Pakistan
Last Lecture
• Introduction to Robotics
• History of Robotics
• Robots Classification
• Robot Accessories and Coordinates
• Robot Programming
2
Degree of Freedom (DOF)
• Degree of freedom describes a robot’s freedom of
motion
• Power source
• Electrically
• Hydraulically →Liquid Pressure
• Pneumatic→Gas/Pressure powered
• Application area
• Assembly robots
• Non-assembly robots
4
Robot Classification
• Control systems
• Open loop control system
• Closed loop control system
• Method of control
• Servo robots → hydraulic power source, closed loop
• Point-to-point robot system
• Continuous-path robot system
• Non-servo robots → pneumatic power source, open loop
Articulated SCARA
6
Work Envelope
• Region of space a robot can surround.
• Range of movement.
• It is the shape created when a manipulator reaches
forward, backward, up and down.
• These distances are determined by the length of a robot’s
arm and the design of its axis.
• Work envelop depends on
• Size of the body, arm and wrist
• Type of joints → revolute, prismatic
• Range of Joints→linear and angular
7
Work Space
• The region in space a robot can fully interact with
Rectangular/
Cartesian (3𝑃)
Articulated (3𝑅)
SCARA(2𝑅1𝑃)
8
1-Cartesian Robot –Work Envelop
Front view
Left-right
Up-down
9
2-Cylindrical Robot- Work Envelop
Forward-
Top view Front view backward
Workspace
Up-down
10
3-Spherical Robot (RRP)-Work Envelop
Workspace
Workspace
Top view
Front view
12
5-SCARA (RRP)-Work Envelope
Workspace
13
Work Envelope
• Link ?
• Joint ?
2
14
Work Envelope
• Link ?
• Joint ?
16
Agenda
• Orientation, Spaces and Transformations (SPONG, chp 2-
3)
• Representing robot position
• Transforms
• Mappings
• Representations of Orientation
• Joints and Spaces
17
Point and Vectors
• Point: A Point has position in space. The only
characteristic that distinguishes one point from another
is its position.
• Draw point as dot
𝑝0
𝑣0
𝑞0
18
Coordinate Frames
• A coordinate frame in two-dimensional space is a set of
two vectors having unit length and that are perpendicular
to each other.
• Allow us to assign the coordinates to the point
𝑦
𝑝0
𝑣0
𝑞0
𝑝 𝑥
19
Choice of Coordinate Frames
• Coordinates change depending on the choice of frame
𝑝
𝑥 𝑝1
𝑣1
𝑞1
𝑦
20
Dot Product
• Dot product of two vectors gives the projection of one
onto the other
Orthogonal vectors
v
𝑢. 𝑣 = 0 u cos
21
Translation
1. The translation vector 𝑑𝑗𝑖 can be interpreted as the
location of frame {j} expressed in frame {i}.
22
Translation
• Example 𝟏
𝑦0 𝑦1
{0} {1}
𝑂0 𝑥0 𝑂1 𝑥1
3
• Suppose 𝑂0 is zero vector and 𝑂1 =
0
23
Translation
𝑦0 𝑦1
𝑂0 𝑥0 𝑂1 𝑥1
25
Translation: Example 2
• A point expressed in frame {0}
𝑦0 𝑦1
1
𝑝1 =
1
𝑂0 𝑥0 𝑂1 𝑥1
{0} {1}
• 𝑝1 is expressed in {0}
3 1 4
𝑝0 = 𝑑10 + 𝑝1 = + =
0 1 1
26
Translation
1. The translation vector 𝑑𝑗𝑖 can be interpreted as the
location of frame {j} expressed in frame {i}.
−𝑥0 𝑂0 𝑥0
• 𝑞0 expressed in {0}
3 −1 2
𝑞0 = 𝑑 + 𝑝0 = + =
0 1 1
28
Translation: Example 3
−1 2
• 𝑝0 = and 𝑝1 =
1 1
2 −1 4
𝑑10 = 𝑝1 − 𝑝0 = − =
1 1 0
29
Rotation
1. The rotation matrix 𝑅𝑗𝑖 can be interpreted as the
orientation of frame {j} expressed in frame {i}.
30
Rotation
• Suppose that frame {1} is rotated relative to frame {0}
• In 2D case 𝑦0
𝑦1
𝑥1
sin
𝑥0
o0 o1
cos
31
Rotation
• The orientation of frame {1} is expressed in frame {0}
𝑦0
𝑦0
𝑥1 𝑦1
sin 𝜃
𝑐𝑜𝑠𝜃
𝜃
𝜃
𝑐𝑜𝑠𝜃 𝑥0 sin 𝜃 𝑥0
32
Rotation
• Project frame {1} onto the frame (alternate approach)
{0}
• Dot product
𝑥1 𝑥0
𝑅10 = 𝑦 . 𝑦
1 0
𝑥1 . 𝑥0 𝑦1 . 𝑥0
𝑥1 . 𝑦0 , 𝑦1 . 𝑦0
34
Rotation
• 𝑝1 expressed in {0}
𝑦0
𝑦1 1
𝑝1 =
1
𝑥1
sin
𝑥0
o0 o1
cos
35
Rotation
1. The rotation matrix 𝑅𝑗𝑖 can be interpreted as the
orientation of frame {j} expressed in frame {i}.
p 0= 1
1
o0 x̂0
37
Properties of Rotation Matrix
𝑇
𝑗
• 𝑅𝑗𝑖 = 𝑅𝑖
𝑖 𝑇 𝑖 −1
• 𝑅𝑗 = 𝑅𝑗
Example 𝟐. 𝟏: (𝑅𝑧,𝜃 )
Rotation of {1} about z-axis
39
Rotation in 3D
Rotation of {1} about x and y-axis are as;
𝑅𝑧0 ,𝜃
𝑅𝑥0 ,𝜃
𝑅𝑦0 ,𝜃
40
Rotation in 3D
1
𝜋
Example: Vector 𝑝0 = 1 is rotated about 𝑦0 -axis by as
2
0
shown in figure. What will be the resulting vector 𝑝1 ?
• Solution:
𝑝1 = 𝑅𝑦 ,𝜋 𝑝0
0 2
𝜋
2
41
Properties of Rotation Matrix
• 𝑅𝑧,0 = 𝐼
42
Summary
𝑦0 𝑦1
• Translation
𝑂0 𝑥0 𝑂1 𝑥1
Rotation
𝑦0
𝑦1
𝑥1
sin
𝑥0
o0 o1
cos
43