Docsity

Kinematics Representations spatial Rotations, Lecture Slide - Robotics, Slides of Robotics

Partial preview of the text

Download Kinematics Representations spatial Rotations, Lecture Slide - Robotics and more Slides Robotics in PDF only on Docsity!

Representing

Rotation

Kinematic

representation:

goals, overview

Planar

displacements

Spatial rotations

Preview

Axis-angle

Rodrigues’s formula

Rotation matrices

Euler angles

Lecture 6.

Representing Rotation

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

Today’s outline

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

Analytic geometry

So far, Euclidean geometry. Why?

I

Insight.

I Visualization.

I

Economy of expression.

Now Cartesian, analytic geometry. Why?

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

Agenda for kinematic representation

Following the kinematic agenda:

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

What are representations for?

I

Obvious ideas didn’t yield homogeneous coordinate

transform matrices?

I

We didn’t consider all the uses of representations!

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

Operating on stuff

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

Choices

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

Axis-angle

Euler’s theorem: every spatial rotation

has a rotation axis.

I

Let O,

n , θ, be...

I Let rot(ˆ n , θ) be the corresponding

rotation.

n

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

Rodrigues’s formula

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

Rotation matrices

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 =

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

Rotating a point

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

  • x

2

u

′

2

  • x

3

u

′

3

=x

1

A

u

1

  • x

2

A

u

2

  • x

3

A

u

3

=A(x

1

u

1

  • x

2

u

2

  • x

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

Sub- and superscript notation for rotating a

point

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

R

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

Example rotation matrix

B

A

R =

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

Nice things about rotation matrices

I Composition of rotations: {R

1

; R

2

} = R

2

R

1

({x; y} means do x then do y.)

I Inverse of rotation matrix is its transpose

B

A

R

− 1

A

B

R =

B

A

R

T

I Coordinate xform of a rotation matrix:

B

R =

B

A

R

A

R

A

B

R