Guc 2793 64 47491 2024-09-24T14 18 07
Guc 2793 64 47491 2024-09-24T14 18 07
Robotics Programming
MCTR-911
Lecture (02)
Coordinate Transformations
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 1
Outlines
• The box
• Rotation Matrix
• Total Homogeneous Transformation Matrix
• Next time .. J
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 2
The box
Last time
• We got introduced to the world of Robotics.
• We discussed the difference that exist between
robotics and Artificial Intelligence (AI).
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 3
The box
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 6
The box
𝒀𝑮
• For a box of side-length (L), we can 𝒑𝟐
define the point (𝒑𝟐 ) as:
−𝑳 𝒑𝟏 𝒀𝑩
𝑩
𝑷𝒑𝟐 = 𝑳
𝑿𝑮
𝑳 𝑿𝑩
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 7
The box
Top-View
𝒁𝑮
• Now, if we consider a top view of the system. 𝑻𝒐𝒑 𝑽𝒊𝒆𝒘
𝒀𝑮
Let’s focus on the
𝒀𝑩 box-frame.
𝒁𝑩
𝒀𝑮
𝒑𝟐 𝒑𝟐
𝑿𝑩 𝒑𝟏 𝒀𝑩
𝒑𝟏
𝑿𝑮
𝑿𝑩
𝑿𝑮
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 8
The box
What if?
𝒀𝑮
• If we just focus on the Box-frame,
and forget about the Global-frame 𝒀𝑩
for now.
Rotation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 10
Rotation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 12
Rotation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 13
Rotation Matrix
𝑿𝑮
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 14
Rotation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 16
Rotation Matrix
𝟏 𝟎 𝟎
𝑹𝑿5𝒂𝒙𝒊𝒔,𝜽 = 𝟎 𝑪𝜽 −𝑺𝜽
𝟎 𝑺𝜽 𝑪𝜽 𝟑×𝟑
𝑪𝜽 𝟎 𝑺𝜽
𝑹𝒀5𝒂𝒙𝒊𝒔,𝜽 = 𝟎 𝟏 𝟎
−𝑺𝜽 𝟎 𝑪𝜽 𝟑×𝟑
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 19
Rotation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 20
Rotation Matrix
𝑿𝑮
5𝟏 𝑻
𝑪𝜽 𝑺𝜽 𝟎
𝑩,𝒏𝒆𝒘
𝑹𝑩 = 𝑩𝑹𝑩,𝒏𝒆𝒘 = 𝑩𝑹𝑩,𝒏𝒆𝒘 = − 𝑺𝜽 𝑪𝜽 𝟎
𝟎 𝟎 𝟏 𝟑×𝟑
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 21
Transformation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 24
Transformation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 25
Transformation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 26
Transformation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 27
Transformation Matrix
Inverse?? (Problem)
𝒀𝑮
• What if we wanted to do it the other
way around ??
𝒀𝑩
• Meaning we want to find: 𝒀𝑩,𝒏𝒆𝒘
𝑩,𝒏𝒆𝒘 𝑿𝑩,𝒏𝒆𝒘
𝑻𝑮
𝒑𝟐
• It is important to know that total
𝜽
transformation matrices are 𝒑𝟐,𝒏𝒆𝒘 𝑿𝑩
NOT orthonormal matrices: 𝒑𝟏
𝒚𝒑𝟏 = 𝟐
𝒙𝒑𝟏 = 𝟑 𝑿𝑮
𝑩,𝒏𝒆𝒘 𝑮 5𝟏 𝑮 𝑻
𝑻𝑮 = 𝑻𝑩,𝒏𝒆𝒘 ≠ 𝑻𝑩,𝒏𝒆𝒘
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 28
Transformation Matrix
Inverse?? (Solution)
𝒀𝑮
• So, how can we find the inverse of
total transformation matrices. This
is done using the following rule: 𝒀𝑩
𝒀𝑩,𝒏𝒆𝒘
• Given that:
𝑮
𝑹 𝑩,𝒏
𝑮
𝒅 𝑩,𝒏 𝑿𝑩,𝒏𝒆𝒘
𝑮
𝑻𝑩,𝒏 = 𝟑×𝟑 𝟑×𝟏 𝒑𝟐
𝟎𝟏×𝟑 𝟏𝟏×𝟏
𝜽
• Then: 𝒑𝟐,𝒏𝒆𝒘 𝑿𝑩
𝑩,𝒏 𝑮 5𝟏 𝒑𝟏
𝑻𝑮 = 𝑻𝑩,𝒏 𝒚𝒑𝟏 = 𝟐
𝑻 𝑻
𝑮
𝑹 𝑩,𝒏 − 𝑹 𝑩,𝒏 ∗ 𝑮𝒅 𝑩,𝒏
𝑮
𝒙𝒑𝟏 = 𝟑 𝑿𝑮
𝑩,𝒏
𝑻𝑮 = 𝟑×𝟑 𝟑×𝟑 𝟑×𝟏
𝟎𝟏×𝟑 𝟏𝟏×𝟏
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 29
Transformation Matrix
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 30
Next time J
Next time
• In the next Lecture we will cover:
– Robot Kinematic modeling
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 31
See you Next time … J
Lecture (02): Coordinate Transformations Robotics Programming (MCTR-911) – Winter ‘24 -- Dr. Eng. Omar M. Shehata © 32