Docsity

Introduction to Robotics Homework 1 solution, Study notes of Introduction to Robotics

Toggle sidebar
bg1
Introduction to Robotics (CS223A) Homework #1 Solution
(Winter 2007/2008)
1. A frame {B}and a frame {A}are initially coincident. Frame {B}is rotated about
ˆ
YBby an angle θ, and then rotated about the new ˆ
ZBby an angle φ. Determine
the 3×3rotation matrix, A
BR, which will transform the coordinates of a position
vector from BP, its value in frame {B}, into AP, its value in frame {A}.
Consider the intermediate frame {M}which results after the first rotation:
A
BR=A
MRM
BR
Now, the frame transformations from {A}to {M}, and {M}to {B}, are precisely those
rotations listed in the question, so we know that A
MR=Ry(θ) and M
BR=Rz(φ). Thus:
A
BR=Ry(θ)Rz(φ)
Indeed, this is the Y-Z Euler-angle representation for frame {B}w.r.t. frame {A}.
Written out:
A
BR=
cθ 0sθ
0 1 0
−sθ 0cθ
cφ −sφ 0
sφ cφ 0
0 0 1
=
cθcφ −cθsφ sθ
sφ cφ 0
−sθcφ sθsφ cθ
2. We are given a single frame {A}and a position vector AP described in this frame.
We then transform AP by first rotating it about ˆ
ZAby an angle φ, then rotating
about ˆ
YAby an angle θ. Determine the 3×3rotation matrix operator, R(φ, θ ),
which describes this transformation.
Suppose the first rotation converts AP→AP′, and the second rotation converts AP′→AP′′.
Then we have:
AP′=Rz(φ)AP
AP′′ =Ry(θ)AP′
⇒AP′′ =Ry(θ)Rz(φ)AP
which gives the result:
R(φ, θ) = Ry(θ)Rz(φ)
This is the same matrix as question 1. After all, this displacement is mathematically equiva-
lent to a frame transformation using Z-Y Fixed-Angle representation, which in turn is math-
ematically equivalent to a Y-Z Euler-Angle representation.
pf2

Partial preview of the text

Download Introduction to Robotics Homework 1 solution and more Study notes Introduction to Robotics in PDF only on Docsity!

Introduction to Robotics (CS223A) Homework #1 Solution

(Winter 2007/2008)

  1. A frame {B} and a frame {A} are initially coincident. Frame {B} is rotated about Y^ ˆB by an angle θ, and then rotated about the new ZˆB by an angle φ. Determine the 3 × 3 rotation matrix, AB R, which will transform the coordinates of a position vector from B^ P, its value in frame {B}, into AP, its value in frame {A}.

Consider the intermediate frame {M } which results after the first rotation: A B R^ =^ A M R M B R

Now, the frame transformations from {A} to {M }, and {M } to {B}, are precisely those rotations listed in the question, so we know that AM R = Ry(θ) and MB R = Rz (φ). Thus: A B R^ =^ Ry^ (θ)Rz(φ) Indeed, this is the Y-Z Euler-angle representation for frame {B} w.r.t. frame {A}. Written out:

A B R^ =

  

cθ 0 sθ 0 1 0 −sθ 0 cθ

  

  

cφ −sφ 0 sφ cφ 0 0 0 1

  

 

cθcφ −cθsφ sθ sφ cφ 0 −sθcφ sθsφ cθ

 

  1. We are given a single frame {A} and a position vector AP described in this frame. We then transform AP by first rotating it about ZˆA by an angle φ, then rotating about YˆA by an angle θ. Determine the 3 × 3 rotation matrix operator, R(φ, θ), which describes this transformation.

Suppose the first rotation converts AP →A^ P′, and the second rotation converts AP′^ →A^ P′′. Then we have: AP′ (^) = Rz (φ)AP AP′′ (^) = Ry (θ)AP′ ⇒A^ P′′^ = Ry (θ)Rz(φ)AP

which gives the result:

R(φ, θ) = Ry (θ)Rz(φ)

This is the same matrix as question 1. After all, this displacement is mathematically equiva- lent to a frame transformation using Z-Y Fixed-Angle representation, which in turn is math- ematically equivalent to a Y-Z Euler-Angle representation.

  1. (a) Given a transformation matrix:

B A T^ =

  

0 cos(θ) − sin(θ) 2 0 sin(θ) cos(θ) 3 0 0 0 1

  

Find AB T Use Equation 1.26 from page 20 of the Lecture Notes, to get:

B A T^ =

   

0 cθ sθ − 2 cθ − 3 sθ 0 −sθ cθ 2 sθ − 3 cθ 0 0 0 1

   

(b) Given θ = 45◦^ and B^ P =

[ 4 5 6

]T , compute AP.

AP = [ 3 4. 24 0

]T

  1. Given the following 3 × 3 matrix:

R =

  

√^1 2 0 √^1 2 − 12 √^1212 − 12 − √^1212

  

(a) Show that it is a rotation matrix. This can be shown by RT^ R = I, where I is the identity matrix.

RT^ R =

  

√^1 2 −^

1 2 −^

1 2 0 √^12 − √^12 √^1 2

1 2

1 2

  

  

√^1 2 0 √^1 2 − 12 √^1212 − 12 − √^1212

  

  

  

(b) Determine a unit vector that defines the axis of rotation and the angle (in degrees) of rotation. Apply equations 1.52, 1.53 on page 34 of the Lecture Notes, to get: angle = 62. 8 o, and axis =

[ − 0. 679 0. 679 − 0. 281

]T . (c) What are the Euler parameters ε 1 , ε 2 , ε 3 , ε 4 of R? Apply equations 1.54 – 1.57 on pages 34-35 of the Lecture Notes: ε 1 = − 0 .354, ε 2 = 0 .354, ε 3 = − 0 .146, ε 4 = 0.854.