robot dynamics – newton- euler recursive approach me 4135 robotics & controls r. lindeke, ph....

27
Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D.

Post on 19-Dec-2015

229 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Robot Dynamics – Newton- Euler Recursive Approach

ME 4135 Robotics & Controls

R. Lindeke, Ph. D.

Page 2: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Physical Basis:

This method is jointly based on:– Newton’s 2nd Law of Motion

Equation:

and considering a ‘rigid’ link

– Euler’s Angular Force/ Moment Equation:

i CF m

i imoment CM i i CM iN I I

Page 3: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Again we will Find A “Torque” Model

Each Link Individually We will move from Base to End to find Velocities

and Accelerations We will move from End to Base to compute force

(f) and Moments (n) Finally we will find that the Torque is:

1 1(1 )i i iqT T

n z f z bi i i i i i

Gravity is implicitly included in the model by considering acc0 = g where g is (0, -g0, 0) or (0, 0, -g0)

i is the joint type parameter (is 1 if

revolute; 0 if prismatic) like in

Jacobian!

Page 4: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Lets Look at a Link “Model”

X0

Y0

Z0

Zk-1

Xk-1Yk-1

ZK

XK

YK

dK

dK-1

sK

Page 5: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

We will Build Velocity Equations

Consider that i is the joint type parameter (is 1 if revolute; 0 if prismatic)

Angular velocity of a Frame k relative to the Base:

NOTE: if joint k is prismatic, the angular velocity of frame k is the same as angular velocity of frame k-1!

1 1k k k k kq z

Page 6: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Angular Acceleration of a “Frame”

Taking the Time Derivative of the angular velocity model of Frame k:

1 1 1 1k k k k k k k kq z q z

Same as (dw/dt) the angular acceleration in

dynamics

Page 7: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Linear Velocity of Frame k:

Defining sk = dk – dk-1 as a link vector, Then the linear velocity of link K is:

Leading to a Linear Acceleration Model of:

1 11k k k k k k kv v s q z

1

1 11 2

k k k k k k k

k k k k k k

s s

q z q z

Normal component of acceleration (centrifugal

acceleration)

Page 8: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

This completes the Forward Newton-Euler Equations:

To evaluate Link velocities & accelerations, start with the BASE (Frame0)

Its Set V & A set (for a fixed or inertial base) is:

As advertised, setting base linear acceleration propagates gravitational effects throughout the arm as we recursively move toward the end!

0

0

0

0

0

0

0v

g

Page 9: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Now we define the Backward (Force/Moment) Equations

Work Recursively from the End We define a term rk which is the vector from

the end of a link to its center of mass:

k k k

k

r c d

c

is location of center of mass of Link k

Page 10: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Defining f and n Models

1k k k k k k k k kf f m r r

1 1k k k k k k k k k

k k k

n n s r f r f D

D

Inertial Tensor of Link k – in base space

The term in the brackets represents the linear acceleration of the center of mass of Link k

Page 11: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Combine them into Torque Models:

1 11T T

k k k k k k k k kn z f z b q

NOTE: For a robot moving freely in its workspace without

carrying a payload, ftool = 0

We will begin our recursion by setting fn+1 = -ftool and nn+1= -ntool

Force and moment on the tool

Page 12: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

The overall N-E Algorithm:

Step 1: set T00 = I; fn+1 = -ftool; nn+1 = -ntool; v0 = 0;

vdot0 = -g; 0 = 0; dot

0 = 0 Step 2: Compute –

Zk-1’s Angular Velocity & Angular Acceleration of Link k Compute sk

Compute Linear velocity and Linear acceleration of Link k

Step 3: set k = k+1, if k<=n back to step 2 else set k = n and continue

Page 13: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

The N-E Algorithm cont.:

Step 4: Compute – rk (related to center of mass of Link k)

fk (force on link k)

Nk (moment on link k)

tk (torque on link k) Step 5: Set k = k-1. If k>=1 go to step 4

0 0 T

k k k kD R D R

Page 14: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

So, Lets Try one:

Keeping it Extremely Simple

This 1-axis ‘robot’ is called an Inverted Pendulum

It rotates about z0 “in the plane” x0-y0 X0

Z0

Y0m1

Y1

X1

Z1

Page 15: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Writing some info about the device:

1

1

21 1

1

1 1 1 1

1 1 1 101 1

20

0

1

0 0 0

0 1 012

0 0 1

0

0

0 0 1 0

0 0 0 1

l

c

m lD

C S l C

S C l ST A

“Link” is a thin cylindrical rod

Page 16: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Continuing and computing:

1 0 11 1

11 1 1 1

1 1 1 1

1 1

1 1

021 0 0 0

0 00 1 0 00 0 1 0 00 0 1 00 0 0 1 1

2

20

c H T c

lC S l C

S C l S

l C

l S

Page 17: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Inertial Tensor computation:

0 01 1 1 1

1 1 1 121 1

1 1 1 1

21 1 12

21 11 1 1

0 0 0 0 0

0 0 1 0 012

0 0 1 0 0 1 0 0 1

0

012

0 0 1

TD R D R

C S C Sm l

S C S C

S S Cm l

S C C

Page 18: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Let’s Do it (Angular Velocity & Accel.)!

1 1 1

1 1 1

1 1

1 111 0

1 1

1 1

0 0

0 0 0

1 1

0 0

0 0 0

1 1

1 0 0 0

( ) 0 1 0 00

0 0 1 01

0

o

q q

q q

l C

l Ss H O O

l C

l S

Starting: Base (i=0)Ang. vel = Ang. acc = Lin. vel = 0

Lin. Acc = -g (0, -g0, 0)T

1 = 1

Page 19: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Linear Velocity:

1 0 1 1 1 1 0

1

1 1 1 1

1

1 1 1

1

0 0

0 0 1 1 0

1 0 1

0

v v s q z

C

q l S q

S

l q C

Page 20: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Linear Acceleration: 1 1 1 1 1 1

1 1

1 1 1 1 1 1 1

1 12

1 1 1 1 1 1

1 12

1 1 1 1 1 1

0

0

0 1 0

0 0

0 0

g s s

S S

g l q C q l q C

S C

g l q C l q S

S C

g l q C l q S

Note:

g = (0, -g0, 0)T

Page 21: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Thus Forward Activities are done!

Compute r1 to begin Backward Formations:

1 1 1

1 1

1 1

1 11 1

1

11

2

200

20

r c O

l Cl C

l S l S

Cl S

Page 22: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Finding f1

Consider: ftool = 0

1 1 1 1 1 1 1

1 1

1 1 1 11 1 1 1 1

1

1 11 1 1

{ }

0 0 0

{ 0 0 0 }2 2

1 0 1 1 0

{2

0

f m r r

C Cl q l q

m S q S

Sl q

m C

12

1 11

1 121 1 1 1

1 1 1 1

1 1 1 22 1 1 1 1

1 1 1 1 1 1 1 1

0

0 }2

1 0

{ }2 2

0 0

2 20 0 0

Sl q

C

S Cl q l q

m C S

S C Sl q l q

m g l q C l q S C

1

1

0

C

S

Page 23: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Collapsing the terms

1 121 1 1 1

1 1 1 1

2 21 1 1 1 1 1 1 1 1 1

1 0

2 20 0

02 2

T

S Cl q l qf m g C S

l q S q C l q C q Sm g

And this f1 ‘model’ is a Vector!

Page 24: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Computing n1:

1 1 1 1 1 1 1 1 1

1 1 2 2 21 1 1 1 1 1 1

1 1 1 1

2 211 1 1 1 1 1 1 1 1 11

1 1 0

0 0 0

0 0 02 12 12

0 0 1 1 1

02 2 20

n s r f D D

C Cl m l q m l q

l S S f

Cl q S q C l q C q Sl

S m g

21 1 1

2 2 21 1 1 1 1 1 1 1 1 1 1 1 11 1

1 0 1

0

012

1

0 0

0 02 2 2 121 1

T

m l q

l q C q S l q S q C m l ql m C g S

This X-product goes to Zero!

The Link Force Vector

Page 25: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Simplifying:

21 0 1 1 11 1 1

0

03 2

1

m g m l Cn l q

Page 26: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Writing our Torque Model

1 1 1 0 1 1 0 1 1

21 0 1 1 11 1 1 1

21 1 0 1 1 1

1 1 1 1

1

0 0

0 0 0 1 1 03 2

1 1

3 2

T T

T

n z f z b q

m g m l Cl q f b q

m l g m l Cq b q

‘Dot’ (scalar) Products

Page 27: Robot Dynamics – Newton- Euler Recursive Approach ME 4135 Robotics & Controls R. Lindeke, Ph. D

Homework Assignment (mostly for practice!):

• Compute L-E solution for “Inverted Pendulum & Compare torque model to N-E solution – do and submit by Monday, no better yet --Tuesday!)

• Compute N-E solution for 2 link articulator (of slide set: Dynamics, part 2) and compare to our L-E torque model solution computed there

• Consider Our 4 axis SCARA robot – if the links can be simplified to thin cylinders, develop a generalized torque model for the device.