























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
Matthew T. Mason
Mechanics of Manipulation
Spring 2010
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
Kinematic representation: goals, overview
Planar displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I
Insight.
I Visualization.
I
Economy of expression.
I
Beyond 2D, beyond 3D. We need to work with high
dimensional configuration spaces!
I For implementation.
I For additional insight.
The best of all possible worlds: use both. Understand
geometrical or physical meaning for all terms.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I Planar displacements.
I
Spherical displacements.
I Spatial displacements.
I
Constraints.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I
Obvious ideas didn’t yield homogeneous coordinate
transform matrices?
I
We didn’t consider all the uses of representations!
I Communicate with humans and computers.
I Operate on points, lines and stuff.
I Compose.
I Sample, interpolate, average, smooth.
I Differentiate, integrate.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I (∆
x
y
, θ) is good for communication. How would
you operate on points? Composition? Averaging?
Sampling?
I To operate on points:
I Represent points by Cartesian coordinates: (x, y).
I Rotate using rotation matrix.
I Translate using component-wise addition.
I Tidy it up using homogeneous coordinates.
I We will revisit later.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I Axis-angle.
I
Good for communication, geometrical insight;
I Rotation matrices
I
Good for operating on stuff, composition, analytical
insight;
I
Unit quaternions. (aka Euler parameters)
I
Good for composition, analytical insight, sampling;
I
Euler angles
I
Good for communication, geometrical insight.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
Euler’s theorem: every spatial rotation
has a rotation axis.
I
Let O,
n , θ, be...
I Let rot(ˆ n , θ) be the corresponding
rotation.
I
Many to one:
I
rot(−
ˆ n , −θ) = rot(ˆ n , θ)
I
rot(ˆ n , θ + 2 kπ) = rot(ˆ n , θ), for any integer k.
I
So, restrict θ to [ 0 , π]. But not smooth at the edges.
I
When θ = 0, the rotation axis is indeterminate, giving
an infinity-to-one mapping.
I Again you can fix by adopting a convention for
ˆ n , but
result is not smooth.
I (Or, what about using the product, θ
ˆ n? Later.)
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
Others derive Rodrigues’s formula using rotation
matrices: ugly and messy. The geometrical approach is
clean and insightful.
I
Given point x , decompose into
components parallel and
perpendicular to the rotation axis
x = ˆ n (ˆ n · x ) −
n × (ˆ n × x )
I
Only x ⊥
is affected by the rotation,
yielding Rodrigues’s formula:
x
′
= ˆ n (ˆ n · x )+sin θ (ˆ n × x )−cos θ
n ×(ˆ n × x )
I A common variation:
x
′
= x +(sin θ) ˆ n × x +( 1 −cos θ) ˆ n ×(ˆ n × x )
n n x
n n x
n
n x
x
x
O
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I Choose O on rotation axis. Choose frame
(ˆ u
1
u
2
u
3
I
Let (ˆ u
′
1
u
′
2
u
′
3
) be the image of that frame.
I Write the
u
′
i
vectors in
u
i
coordinates, and collect
them in a matrix:
u
′
1
a
11
a
21
a
31
u
1
u
′
1
u
2
u
′
1
u
3
u
′
1
u
′
2
a
12
a
22
a
32
u
1
u
′
2
u
2
u
′
2
u
3
u
′
2
u
′
3
a
13
a
23
a 33
u
1
u
′
3
u
2
u
′
3
u 3
u
′
3
a
ij
u
′
1
u
′
2
u
′
3
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I
Let (x
1
, x
2
, x
3
) be coordinates of x in frame
(ˆ u
1
u
2
u
3
I
Then x
′
is given by the same coordinates taken in
the (ˆ u
′
1
u
′
2
u
′
3
) frame:
x
′
=x
1
u
′
1
2
u
′
2
3
u
′
3
=x
1
u
1
2
u
2
3
u
3
=A(x
1
u
1
2
u
2
3
u
3
=A x
I So rotating a point is implemented by ordinary matrix
multiplication.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I Let A and B be coordinate frames.
I Let
A
x be coordinates in frame A.
I Let
B
A
R be the rotation matrix that rotates frame B to
frame A.
I
Then (see previous slide)
B
A
R represents the rotation
of the point x:
B
x
′
B
A
B
x
I
Note presuperscripts all match. Both points, and
xform, must be written in same coordinate frame.
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
B
A
B
x
A
B
y
A
B
z
A
How to remember what
B
A
R does? Pick a
coordinate axis and see. The x axis isn’t
very interesting, so try y:
Representing
Rotation
Kinematic
representation:
goals, overview
Planar
displacements
Spatial rotations
Preview
Axis-angle
Rodrigues’s formula
Rotation matrices
Euler angles
I Composition of rotations: {R
1
2
2
1
({x; y} means do x then do y.)
I Inverse of rotation matrix is its transpose
B
A
− 1
A
B
B
A
T
I Coordinate xform of a rotation matrix:
B
B
A
A
A
B