Uploaded by THINES A/L K VASANTHAN STUDENT

[2022-S2] 02 Robot Kinematics Part 1 new

advertisement
FACULTY OF ELECTRICAL ENGINEERING & TECHNOLOGY
UNIVERSITI MALAYSIA PERLIS
EMJ37303 ROBOTIC SYSTEMS
KINEMATICS (PART I)
“SPATIAL DESCRIPTIONS AND TRANSFORMATIONS”
EMJ37303 ROBOTIC SYSTEMS
Introduction
2
EMJ37303 ROBOTIC SYSTEMS
Introduction
3
EMJ37303 ROBOTIC SYSTEMS
Kinematics Problem
(π‘₯, 𝑦, 𝑧)
• How to make sure the robot can
follows required trajectory path?
• What are the angles needed to
be set to obtain the required
position?
4
EMJ37303 ROBOTIC SYSTEMS
Reference Frames
𝚺𝐞
• Σ𝑀 : World reference frame
• Σ𝑒 : End-effector reference frame
• Σ𝑐 : Cylinder reference frame
• Σ𝑏 : Box reference frame
πšΊπ›
𝚺𝐰
𝚺𝐜
All joints and object can be described by the position and orientation
with the aid of reference frames.
5
EMJ37303 ROBOTIC SYSTEMS
Coordinate Systems
Left Handed
Right Handed
𝑧
𝑧
𝑦
π‘₯
𝑦
π‘₯
6
Forward Kinematics
EMJ37303 ROBOTIC SYSTEMS
Robot Kinematics
VS
Inverse Kinematics
What the differences between both approaches?
How to solve both?
Which one should be used?
7
(𝒙, π’š)
𝜽2
Forward Kinematics:
EMJ37303 ROBOTIC SYSTEMS
Forward Kinematics VS Inverse Kinematics
To determine the end-effector
position based on joint’s angle
(𝜽1 , 𝜽2 )
𝒀
𝜽1
Forward
Kinematics
(𝒙, π’š)
Inverse Kinematics:
𝑿
To determine the joint’s angle
based on end-effector position
(𝒙, π’š)
Inverse
Kinematics
(𝜽1 , 𝜽2 )
8
• Vector representation
EMJ37303 ROBOTIC SYSTEMS
Vector Calculus
• Transpose
• Magnitude
9
EMJ37303 ROBOTIC SYSTEMS
Locating Object
How to locate an object?
• Position
𝑧
P
𝐴
𝑷BORG
𝑦
π‘Žπ‘₯
𝑃 = 𝑏𝑦 = π‘Žπ‘₯ 𝑏𝑦
𝑐𝑧
π‘Žπ‘₯
𝐴
𝑷BORG = 𝑏𝑦 = π‘Žπ‘₯
𝑐𝑧
𝑐𝑧
𝑏𝑦
𝑇
𝑐𝑧
𝑇
π‘₯
10
EMJ37303 ROBOTIC SYSTEMS
Locating Object
How to locate an object?
• Position
• Orientation
P
𝒙𝐡 βˆ™ 𝒙𝐴
𝐴
𝒙 𝐡 βˆ™ π’šπ΄
𝐡𝑅 =
𝒙𝐡 βˆ™ 𝒛𝐴
{B}
𝐴
𝑷BORG
𝒙𝐴
πœƒ
π‘αˆ˜π΅
𝒙𝐡
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
Dot Product
𝒙𝐴 βˆ™ 𝒙𝐡 = 𝒙𝐴 𝒙𝑩 cos (πœƒ)
Since the magnitude of unit vector is 1, then
𝒙𝐴 βˆ™ 𝒙𝐡 = cos (πœƒ)
11
EMJ37303 ROBOTIC SYSTEMS
Locating Object (General)
𝐴
𝐡
P
𝐴
𝑷
𝐴
𝐡
𝑷
𝑷BORG = 𝑋𝐡𝑂𝐴
𝑷 = 𝑋𝐡
π‘Œπ΅
𝒙𝐡 βˆ™ 𝒙𝐴
𝐴
𝒙 𝐡 βˆ™ π’šπ΄
𝐡𝑅 =
𝒙𝐡 βˆ™ 𝒛𝐴
π‘Œπ΅π‘‚π΄
𝑍𝐡
𝐢𝐡𝑂𝐴
𝑇
𝑇
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
𝑷BORG
General Form:
𝐴
𝑷 = 𝐡𝐴𝑅 𝐡𝑷 + 𝐴𝑷BORG
𝒙𝐡 βˆ™ 𝒙𝐴
𝑋𝐴
π‘Œπ΄ = 𝒙𝐡 βˆ™ π’šπ΄
𝒙𝐡 βˆ™ 𝒛𝐴
𝑍𝐴
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
𝑋𝐡𝑂𝐴
𝑋𝐡
π‘Œπ΅ + π‘Œπ΅π‘‚π΄
𝑍𝐡
𝑍𝐡𝑂𝐴
12
EMJ37303 ROBOTIC SYSTEMS
Locating Object (General)
𝐴
General Form:
Conceptual Form:
𝑷 = 𝐡𝐴𝑅 𝐡𝑷 + 𝐴𝑷BORG
𝐴
𝑷 = 𝐡𝐴𝑇 𝐡𝑷
𝐴
𝐴
𝑷 =
𝐡𝑅
1
0 0 0
𝒙𝐡 βˆ™ 𝒙𝐴
𝑋𝐴
𝒙 βˆ™π’š
π‘Œπ΄
= 𝐡 𝐴
𝑍𝐴
𝒙𝐡 βˆ™ 𝒛𝐴
1
0
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
0
𝐴
𝑷BORG
1
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
0
𝐡
𝑷
1
𝑋𝐡𝑂𝐴
π‘Œπ΅π‘‚π΄
𝑍𝐡𝑂𝐴
1
𝑋𝐡
π‘Œπ΅
𝑍𝐡
1
Homogenous Transformation Matrix
𝐴
𝐡𝑻
Homogeneous Transformation Matrix can describe both orientation and
position by a single square matrix. Why?
• It is much easier to calculate the inverse of square matrices.
• To multiply two matrices, their dimensions must match.
13
EMJ37303 ROBOTIC SYSTEMS
Transformation
• Fixed frame:
Fixed or reference frame is
referring to a frame that
usually used as global
reference frame. The frame
is static and fixed.
• Moving frame
Moving or current frame is
referring to the frame that is
currently moving or
operated
Moving Frame
𝑧𝐡
𝑦𝐡
𝑧𝐴
𝐴
𝑷𝐡𝑂𝑅𝐺
𝑦𝐴
π‘₯𝐡
π‘₯𝐴
Fixed Frame
14
EMJ37303 ROBOTIC SYSTEMS
Pure Translation and Rotation
Assume that initial position and orientation of frame B is similar to frame A
Pure Translation:
𝐴
𝑃 = 𝐡𝑃 + 𝐴𝑃𝐡𝑂𝑅𝐺
Pure Rotation:
𝑧𝐴
𝐴
𝑃 = 𝐡𝐴𝑅 𝐡𝑃
𝑧𝐴
𝑧𝐡
𝑧𝐡
𝑦𝐡
𝑦𝐴
𝑦𝐴
π‘₯𝐴
𝑦𝐡
π‘₯𝐡
1
0
𝐴
𝐡𝑻 =
0
0
0
1
0
0
0 𝑋𝐡𝑂𝐴
0 π‘Œπ΅π‘‚π΄
1 𝑍𝐡𝑂𝐴
0
1
π‘₯𝐴
π‘₯𝐡
𝒙𝐡 βˆ™ 𝒙𝐴
𝒙 𝐡 βˆ™ π’šπ΄
𝐴
𝐡𝑻 =
𝒙𝐡 βˆ™ 𝒛𝐴
0
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
0
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
0
0
0
0
1
15
No rotation, so this part is
equal to Identity Matrix
EMJ37303 ROBOTIC SYSTEMS
Pure Translation
Represents the frame before translation
This column represents the translation
16
EMJ37303 ROBOTIC SYSTEMS
Pure Rotation
𝑅11
𝑅
𝑇 = 21
𝑅31
0
𝑅12
𝑅22
𝑅32
0
𝑅13
𝑅23
𝑅33
0
0
0
0
1
17
𝒙𝐡 βˆ™ 𝒙𝐴
𝐴
𝒙 𝐡 βˆ™ π’šπ΄
𝐡𝑅 =
𝒙𝐡 βˆ™ 𝒛𝐴
π’šπ΅ βˆ™ 𝒙𝐴
π’šπ΅ βˆ™ π’šπ΄
π’šπ΅ βˆ™ 𝒛𝐴
𝒛𝐡 βˆ™ 𝒙𝐴
𝒛𝐡 βˆ™ π’šπ΄
𝒛𝐡 βˆ™ 𝒛𝐴
Alternative: Solving based on rotation angle
Solve based on current
information of orientation
EMJ37303 ROBOTIC SYSTEMS
Rotation Matrix
Alibi Transformation
Alias Transformation
18
EMJ37303 ROBOTIC SYSTEMS
Rotation Matrix
Rotation about 𝒛-axis: 𝐑𝐨𝐭 𝑧, 𝛾
𝑦
𝑃1 (π‘₯1 , 𝑦1 , 𝑧1 )
𝛾
π‘Ÿ
πœƒ
𝑃0 (π‘₯0 , 𝑦0 , 𝑧0 )
π‘₯
Try solving the rotation matrix around
π‘₯ and 𝑦 axis.
19
• By assuming the rotation around π‘₯-, 𝑦-, and 𝑧-axis as 𝛼, 𝛽
and 𝛾, the respective rotation matrix are:
EMJ37303 ROBOTIC SYSTEMS
Rotation Matrix
20
Relative to Fixed Frame
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
21
Relative to Fixed Frame
𝑇1 = rot(𝑧, 90°)
𝑇2 = rot(𝑦, 90°)
𝑇 = 𝑇3 𝑇2 𝑇1
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
𝑇3 = trans(4, −3,7)
22
Relative to Fixed Frame
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
23
Relative to Fixed Frame
𝑇1 = rot(𝑧, 90°)
𝑇2 = trans(4, −3,7)
𝑇 = 𝑇3 𝑇2 𝑇1
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
𝑇3 = rot(𝑦, 90°)
24
Relative to Moving Frame
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
25
Relative to Moving Frame
𝑇1 = rot(π‘Ž, 90°)
𝑇2 = trans(4, −3,7)
𝑇 = 𝑇1 𝑇2 𝑇3
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
𝑇3 = rot(π‘œ, 90°)
26
Relative to Moving & Fixed Frame
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
27
Relative to Moving & Fixed Frame
EMJ37303 ROBOTIC SYSTEMS
Combined Transformations
28
Assume for transformation 𝑇1 , 𝑇2 , 𝑇3
• Transformations relative to Fixed Frame
𝑇 = 𝑇3 𝑇2 𝑇1
• Transformations relative to Moving Frame
𝑇 = 𝑇1 𝑇2 𝑇3
EMJ37303 ROBOTIC SYSTEMS
Summary: Combined Transformation
Assume for transformation 𝑇1 , 𝑇2 , 𝑇3 , 𝑇4 . Where,
𝑇1 and 𝑇3 are relative to Fixed Frame, while 𝑇2 and 𝑇4
are relative to Moving Frame.
𝑇 = 𝑇3 𝑇1 𝑇2 𝑇4
29
EMJ37303 ROBOTIC SYSTEMS
Inverse Transformation
𝑧𝐡
𝑧𝐴
𝑦𝐡
𝐡
𝑷𝑨𝑂𝑅𝐺
𝐴
π‘₯𝐴
𝑦𝐴
𝐴
𝐡𝑇
𝐴 −1
𝐡𝑇
𝑷𝐡𝑂𝑅𝐺
=
𝐡
𝐴𝑇
=
=
𝐴
𝐴
𝐡𝑅
0
0 0
𝐴 𝑇
𝐡𝑅
0 0
0
π‘₯𝐡
𝐡
𝑷BORG
1
𝑷AORG
− 𝐡𝐴𝑅𝑇 𝐴𝑷BORG
1
𝑅 −1 = 𝑅𝑇 , 𝑇 −1 ≠ 𝑇 𝑇
𝐡
𝐴𝑅
30
EMJ37303 ROBOTIC SYSTEMS
Compound Transformations
π‘ˆ
𝐸𝑇
= π‘ˆπ‘…π‘‡ 𝐻𝑅𝑇 𝐻𝐸𝑇= π‘ˆπ‘ƒπ‘‡ 𝐸𝑃𝑇
𝑅
𝐻𝑇
=?
π‘ˆ −1 π‘ˆ 𝑅 𝐻 𝐻 −1
π‘ˆ −1 π‘ˆ 𝑃 𝐻 −1
𝑇
𝑇
𝑇
𝑇
𝑇
=
𝑅
𝑅 𝐻 𝐸
𝐸
𝑅𝑇
𝑃𝑇 𝐸 𝑇 𝐸 𝑇
𝑅
𝐻𝑇
=
𝐴 𝐡 −1
𝐡 𝑇 𝐴𝑇
=I
π‘ˆ −1 π‘ˆ 𝑃 𝐻 −1
𝑅𝑇
𝑃𝑇 𝐸 𝑇 𝐸 𝑇
31
EMJ37303 ROBOTIC SYSTEMS
Compound Transformations
𝐴
𝑃 = 𝐡𝐴𝑇 𝐡𝑃
𝐡
𝑃
𝐡
𝐴
𝑃=
𝐴
𝑃=
𝐴 𝐡
𝐡𝑇 𝑃
𝐴 𝐡 𝐢
𝐡𝑇 𝐢 𝑇 𝑃
∴ 𝐡𝐴𝑇 𝐡𝐢𝑇 = 𝐴𝐢𝑇
𝐴
𝐢𝑇
=
𝐴 𝐡
𝐡𝑅 𝑷CORG
𝐴 𝐡
𝐡𝑅 𝐢 𝑅
0 0
𝑃 = 𝐡𝐢𝑇 𝐢𝑃
0
+ 𝐴𝑷BORG
1
32
EMJ37303 ROBOTIC SYSTEMS
Compound Transformations
{C}
B
C
T
C
D
T
{B}
{D}
A
B
T
C
E
T
{A}
D
E
T
E
A
T
T CBT CDT DAT = I
A
B
T = CDT DET = CBT −1 ABT −1 EAT −1
C
E
C
B
T BAT EAT
{E}
33
{C}
T = CDT DET EAT ABT
EMJ37303 ROBOTIC SYSTEMS
Compound Transformations
C
B
C
B
T
C
D
T
{B}
{D}
A
B
T
{A}
D
E
T
E
A
T
{E}
T = DET −1 CDT −1 CBT ABT −1
E
A
I = EAT −1 DET −1 CDT −1 CBT ABT −1
34
EMJ37303 ROBOTIC SYSTEMS
Exercise
Exercise 1
Solution:
𝑧𝐡
Position:
𝑦𝐡
𝑧𝐴
𝐴
𝑷𝐡𝑂𝑅𝐺
𝑦𝐴
π‘₯𝐡
π‘₯𝐴
Frame B is located at 3,4,5 unit from
frame A, with yB axis is parallel to yA
axis. Its xB and zB at 30 deg relative to
xA and zA due to a 30 deg rotation
around yB axis. Describe Frame B with
respect to frame A.
𝐴
𝑷𝐡𝑂𝑅𝐺 = 3 4 5
Orientation:
cos 30°
𝐴
𝐡𝑅 = cos 90°
cos 120°
𝑇
cos 90°
cos 0°
cos 90°
cos 60°
cos 90°
cos 30°
Thus, frame B can be described with
respect to frame A by
√3
2
𝐴
𝐡𝑇
= 0
−12
0
0
1
0
0
1
2
0
√3
2
0
3
4
5
1
35
EMJ37303 ROBOTIC SYSTEMS
Transformation: Summary
{B}
Description of a frame
A

A
BR
T
=
οƒͺ
B
0 0 0
{A}
A
PBORG
{B}
B
{A} A P
A
P
PBORG
A
PBORG οƒΉ
οƒΊ
1 
Transform Mapping
A
P = ABT B P
 A P οƒΉ  BA R
οƒͺ οƒΊ=οƒͺ
 1  0 0 0
A
PBORG οƒΉ  B P οƒΉ
οƒΊοƒͺ οƒΊ
1  1 
Transform Operator
A
{A} A P
2
Q
A
P1
P2 = T A P2
1
 A P2 οƒΉ οƒͺ0
οƒͺ οƒΊ = οƒͺ0
 1  οƒͺ
οƒͺ
0
0 0 qx οƒΉ
1 0 q y οƒΊ  A P1 οƒΉ
οƒΊοƒͺ οƒΊ
0 1 qz οƒΊ  1 
οƒΊ
0 0 1
A
P2 = A P2 + Q
(vector operation)
36
Download