Translation and Rotation F2024
Translation and Rotation F2024
EASY!
Given: Position and orientation of end-effector, 𝐩𝐩.
Required: Joint Variables 𝐪𝐪(𝜃𝜃 or 𝑑𝑑 ) to get 𝐩𝐩
𝐪𝐪 = 𝑓𝑓(𝐩𝐩)
1 0 0
𝑅𝑅𝑥𝑥,𝜃𝜃 = 0 cos(𝜃𝜃) −sin(𝜃𝜃)
0 sin(𝜃𝜃) cos(𝜃𝜃)
cos(𝜃𝜃) 0 sin(𝜃𝜃)
𝑅𝑅𝑦𝑦,𝜃𝜃 = 0 1 0
−sin(𝜃𝜃) 0 cos(𝜃𝜃)
Modeling
Problem: Lack of standard for robots.
ROS: is an open-source robot operating
system:
A set of software libraries and tools that
help you build robot applications that work
across a wide variety of robotic platforms.
Originally developed in 2007 at the Stanford
Articial Intelligence Laboratory and
development continued at Willow Garage.
Since 2013 managed by OSRF (Open Source
Robotics Foundation).
ROS is working under Linux (Recommended
Ubuntu).
Modeling
−1 0 0
𝑅𝑅10 = 𝑅𝑅𝑧𝑧,𝜋𝜋 = 0 −1 0
0 0 1
𝑝𝑝𝑏𝑏0 = 𝑅𝑅𝑧𝑧,𝜋𝜋 𝑝𝑝𝑎𝑎0
This equation shows us how to use a
rotation matrix to represent a rotational
motion. In particular, if the point 𝑝𝑝𝑏𝑏 is
obtained by rotating the point 𝑝𝑝𝑎𝑎 as defined
by the rotation matrix 𝑅𝑅 , then the
coordinates of 𝑝𝑝𝑏𝑏 with respect to the
reference frame are given by
𝑝𝑝𝑏𝑏0 = 𝑅𝑅𝑝𝑝𝑎𝑎0
Rotational Transformations
The {0}-frame is our fixed frame, the
{1}-frame is fixed to a rigid body.
What will happen with points of body (let say p) if we rotate
the body, i.e. the {1}-frame?
The coordinates of point p in the 1-frame are constant p1,
but in the 0-frame they are changed.
cos(𝜙𝜙) 0 sin(𝜙𝜙)
• 𝑅𝑅𝑦𝑦,𝜙𝜙 = 0 1 0
−sin(𝜙𝜙) 0 cos(𝜙𝜙)
Composition of Rotations
• Example: Suppose we rotate:
• (1) the first rotation is by angle 𝜙𝜙 around 𝑦𝑦0 -
axis.
• (2) then, a rotation by angle 𝜃𝜃 around
𝑧𝑧1 −axis . What is the total rotation?
cos(𝜃𝜃) −sin(𝜃𝜃) 0
• 𝑅𝑅𝑧𝑧,𝜃𝜃 = sin(𝜃𝜃) cos(𝜃𝜃) 0
0 0 1
Composition of Rotations
Rotation about Current Frame:
• 𝑅𝑅20 = 𝑅𝑅𝑦𝑦,𝜙𝜙 𝑅𝑅𝑧𝑧,𝜃𝜃
cos(𝜙𝜙) 0 sin(𝜙𝜙) cos(𝜃𝜃) −sin(𝜃𝜃) 0
𝑅𝑅20 = 0 1 0 sin(𝜃𝜃) cos(𝜃𝜃) 0
−sin(𝜙𝜙) 0 cos(𝜙𝜙) 0 0 1
•
𝑐𝑐𝜙𝜙 𝑐𝑐𝜃𝜃 −𝑐𝑐𝜙𝜙 𝑠𝑠𝜃𝜃 𝑠𝑠𝜙𝜙
𝑅𝑅20 = 𝑠𝑠𝜃𝜃 𝑐𝑐𝜃𝜃 0
−𝑠𝑠𝜙𝜙 𝑐𝑐𝜃𝜃 𝑠𝑠𝜙𝜙 𝑐𝑐𝜃𝜃 𝑐𝑐𝜙𝜙
• Note: 𝑠𝑠𝜙𝜙 = sin(𝜙𝜙) and 𝑐𝑐𝜃𝜃 = cos(𝜃𝜃)
Composition of Rotations
• [1] Rotation about Current Frame:
Important Observation: Rotations do not commute.
• 𝑅𝑅𝑦𝑦,𝜙𝜙 𝑅𝑅𝑧𝑧,𝜃𝜃 ≠ 𝑅𝑅𝑧𝑧,𝜃𝜃 𝑅𝑅𝑦𝑦,𝜙𝜙
• So that the order of rotations is important!
Rule of composite rotation around the current
(new) frame:
• For successive rotations about the current reference
frame we use the post-multiplication to find the total
rotation matrix.
Composition of Rotations
[2] Rotation with respect to Fixed Frame: Example: Suppose we
rotate:
the first rotation is by angle φ around y0-axis.
then, a rotation by angle θ around z0-axis (not z1-axis). What is the total rotation ?
Composition of Rotations
• Example: Suppose we rotate:
• (1) the first rotation is by angle 𝜙𝜙 around 𝑦𝑦0 -
axis.
• (2) then, a rotation by angle 𝜃𝜃 around 𝑧𝑧0 -
axis (not 𝑧𝑧1 -axis). What is the total rotation?
cos(𝜙𝜙) 0 sin(𝜙𝜙)
• 𝑅𝑅𝑦𝑦0 ,𝜙𝜙 = 0 1 0
−sin(𝜙𝜙) 0 cos(𝜙𝜙)
Composition of Rotations
(2) then, a rotation by angle 𝜃𝜃 around 𝑧𝑧0 -
axis (not 𝑧𝑧1 -axis). What is the total
rotation?
cos(𝜃𝜃) −sin(𝜃𝜃) 0
𝑅𝑅𝑧𝑧0 ,𝜃𝜃 = sin(𝜃𝜃) cos(𝜃𝜃) 0
0 0 1
Composition of Rotations
• Rotation with respect to Fixed Frame:
• Example:
• Find the rotation 𝑅𝑅 defined by the • Solution:
following basic rotations: • 𝑅𝑅 = 𝑅𝑅𝑥𝑥,𝛿𝛿 𝑅𝑅𝑧𝑧,𝛼𝛼 𝑅𝑅𝑥𝑥,𝜃𝜃 𝑅𝑅𝑧𝑧,𝜙𝜙 𝑅𝑅𝑦𝑦,𝛽𝛽
1. A rotation of 𝜃𝜃 about the current axis 𝑥𝑥; • 𝛿𝛿 = 15∘ , 𝛼𝛼 = 30∘ , 𝜃𝜃 = 45∘ , 𝜙𝜙 =
2. A rotation of 𝜙𝜙 about the current axis 𝑧𝑧; 60∘ , 𝛽𝛽 = 90∘