Professional Documents
Culture Documents
Robotics(ME3102T)
Coordinate Transformations
Dr. A. S. Rao
Lab-in-Charge:
Technical Excellence Centre
Mechanical Engineering Department
VEERMATA JIJABAI TECHNOLOGICAL INSTITUTE
MUMBAI-400019
Direct Kinematics :
Outline:
1. Robot Manipulator
2. Co-ordinate Frames (Fixed & Mobile)
3. Co-ordinate Transformation Matrix
4. Rotations of CF
5. Single Rotations
6. Composite Rotations
7. Problems
Robot Manipulator:
Tool or Movable
Links End
Joints
Where, A = F.M
=
F1 M 1 F1 M 2 F1 M 3
2 1 2 2 2 3
F M F M F M
F 3 M 1 F 3 M 2 F 3 M 3
Coordinate Transformation Matrix…
Q.
F3
Write the mathematical
representation and matrix of the
right handed ortho normal
coordinate frames, say, fixed and M3
mobile frames when they are M2
coincident (aligned with each other) F2
M1
Both fixed and mobile coordinate
F1
frames are coincident each other
i.e. they are orthonormal
Coordinate Transformation Matrix…
F1 M 1 F1 M 2 F1 M 3
A = 2 1 2 2 2 3
F M F M F M
F 3 M 1 F 3 M 2 F 3 M 3
A =
cos 00 cos 90 cos 90
0 0 0
cos 90 cos 0 cos90
cos 90 0 cos 90 cos 00
Coordinate Transformation Matrix…
A= 1 0 0
0 1 0
0 0 1
When fixed and mobile frame are coincident then the relation is
given by identity matrix.
Coordinate Transformation Matrix…
M 3
M2 F2 F2
M 1
M1
F1
F1
Initially coincident After rotation by 900
Coordinate Transformation Matrix…
A =
cos 90 0 cos180 cos 90
0 0 0
cos 0 cos 90 cos 90
cos 90 0 cos 90 cos 00
A = 0 1 0
1 0 0
0 0 1
Coordinate Transformation Matrix…
F m
[P] = A.[P]
0 1 0 0 . 6 = 0 .5
= 1 0 0 0.5 0 .6
0 0 1 1.4 1.4
Fundamental rotations
A=RK(θ)
Where k is axis about which rotation takes place .
a) If rotation takes place about 1st axis F1
cos 00 cos 90 cos 90
R1(θ)= 0
cos 90
0
cos 0
cos(90 )
cos 90 0 cos(90 ) cos 0
ROTATIONS:-
F3
= 1 0 0 90- θ
M2
0 cos sin M3
θ
0 sin F2
cos
M1
F
[P] =
1 0 0 2 F1
0 1 3 0
2 2 put θ=60
0
3
2
1
2
3
ROTATIONS:-
[P]F= 2
2.598
1.5
R = 0.5 0 0.866
0 1 0
0.866 0 0.50
ANS:-
1) since 2nd row and 2nd column remain same as identity matrix
hence axis of rotation is 2
K=2
ROTATIONS:-
2) Angle of rotation
a) Cos θ =0.5
θ = cos-1(0.5)
θ =+- 600
b) sin θ = -0.866
θ = sin-1 (-0.866)
θ =- 600
B) If the rotation takes place about 2nd axis :-
R2(θ) =
Rotations…
B) If the rotation takes place about 2nd axis :-
F3
R2(θ) = cos 0 sin
θ
0 1 0 M3 M2
sin 0 cos 90- θ F2
θ
M1
F1
Rotations…
Q.
M frame is rotated about F1 by θ =π/3 radians .if P is a point on
the frame given by [P]m=[2,0,3]T, find the co-ordinates of P in F
Frame.
R1(θ) = 1 0 0
0 cos sin
3 3
0 sin cos
3 3
Single Rotation…
=
1 0 0
0 1 3
2 2
0 3 1
2 2
Note:- 1.while finding θ consider the magnitude of cos-1 and
not the sign.
2. Also consider sign of sin-1 and not the magnitude.
Single Rotation…
Q.
Consider the following co-ordinate transformation matrix,which
represents a fundamental rotation. What is axis of rotation and
what is the angle of rotation.
R=
0.33 0 0.33
0 1 0
0.33 0 0.33
Ans:- 1) Axis of rotation =2 (2nd row and 2nd column rep. identity matrix )
2) Angle of rotation.
Single Rotation…
Cos θ=0.33
Θ=cos-1(0.33)
Θ=-+70.73
Sin θ = -0.33
θ=sin-1(-0.33)
Θ=-19.268
Θ=-70.73
Single Rotation…
Exercise : a 0 0 .5
Given RK (θ) =
find a , b , c , k ,θ ?
0 b 0
0 .5 0 c
Composite Rotations…
Algorithm :-
1) Initialize the rotation matrix to R = I i.e. identity matrix which
corresponds to orthonormal coordinate frames F and M being
coincident .
2) If the mobile co-ordinate frame ‘M’ is to be rotated by an
amount ‘θ’ kth unit vector of fixed co-ordinate frame then pre
multiply R by RK (θ)
Composite Rotations…
YPR(θ) = R3(θ3)*R2(θ2)*R1(θ1)*I
= C 3 S 3 0 C2 0 S2 1 0 0
S 3 C3 0 0 1 0 0 C1 S1
0 0 1 S 2 0 C 2 0 S1 C1
Composite Rotations…
= C 3 S 3 0 C 2 S1S 2 C1S 2
S 3 C 3 0 0 C1 S1
0 0 1 S 2 S1C 2 C1C 2
=
C 2C 3 S1S 2C 3 C1S 3 C1S 2S 3 S1S 3
C 2S 3 S1S 2S 3 C1C 3 C1S 2S 3 S1C 3
S2 S1C 2 C1C 2
Composite Rotations…
B) ROLL-PITCH-YAW:-
If we perform roll first, pitch second and yaw third about M co-ordinates
frames then it will be multiplication on right or post multiplication [Rule 3
from algorithm]
RPY(θ)= I*R3(θ3)*R2(θ2)*R1(θ1)
Note:-YPR(θ) about F co-ordinate =RPY(θ) about M co-ordinate.
For e.g. :-
YPR(F)=> Rotation about F co-ordinates pre-multiply
R3(θ3)*R2(θ2)*R1(θ1)*I
RPY(M)=>Rotation about M-co-ordinates post-multiply
I*R3(θ3)*R2(θ2)*R1(θ1)
Composite Rotations…
M1 F1
Composite Rotations…
C 3 S 3 0 C2 0 S2 1 0 0
0 C1 S1
=
S 3 C3 0 0 1 0
0 0 1 S 2 0 C 2 0 S1 C1
Composite Rotations…
YPR(F)= 0 1 0 0 0 1 1 0 0
1 0 0 0 1 0 0 0 1
0 0 1 1 0 0 0 1 0
= 0 1 0 0 1 0
1 0 0 0 0 1
0 0 1 1 0 0
Composite Rotations…
0 0 1
=
0 1 0
1 0 0
[P]m=[0,0,1] given
[P]F =YPR(F).[P]m
[P]F= 0 1
0 0 =c 1
0 0
0 1 0
1 0 0 1 0
Composite Rotations…
[P]F= 1 0 0
After performing the operation tool is resting at F1
1) 2)
F3 F3
Front
view
F2 F2
F1 π/2
F1
Composite Rotations…
3) 4)
TOP F3 F3
view π/2
-π/2
F2 F2
Tool resting at
F1 F1 F1
Composite Rotations…
YPR(F)= R3(θ3)*R2(θ2)*R1(θ1)*I
YPR(F)= 0 1 0 0 0 1 1 0 0
1 0 0 0 1 0 0 1 0
0 0 1 1 0 0 0 0 1
= 0 1 0 0 0 1
1 0 0 0 1 0
0 0 1 1 0 0
Composite Rotations…
=
0 1 0
0 0 1
1 0 0
[P]F= 0 1 0 0 = 0
0 .8
0 0 1 0
1 0 0 0.8 0
Composite Rotations…
[P]F= 0 0.8 0
T
1) F3
2) F3
F2
F2
π
F1
F1
Composite Rotations…
3) 4) F3
F3 π/2 Top
view
–π/2 F2
Front F2
view
F1
F1
Composite Rotations…
Exercise…
Q1.
The coordinates of the point p on the body are given by
{1,2,3}T . Rotate the body about Z-axis by 30 deg and then
about the Y-axis by 30 deg. Find the new coordinates of the
point p w.r.t to fixed frame