glue lecture 4 slides

23
Smriti Chopra ECE Ph.D. Candidate Georgia Tech Control of Mobile Robots: Glue Lectures Instructor:

Upload: yashar2500

Post on 11-Dec-2015

235 views

Category:

Documents


2 download

DESCRIPTION

Glue Lecture 4 Slides

TRANSCRIPT

Page 1: Glue Lecture 4 Slides

Smriti Chopra ECE Ph.D. Candidate Georgia Tech

Control of Mobile Robots: Glue Lectures

Instructor:

Page 2: Glue Lecture 4 Slides

2

Glue Lecture 4: Controllability and Observability Pay attention, this lecture will help you all with Quiz 4!

Page 3: Glue Lecture 4 Slides

3

System Stability x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

x = Ax

In Matlab:

All eigen values of are zero! A Unstable !!!

Page 4: Glue Lecture 4 Slides

Introduce Control… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

x = Ax+Bu

B =

2

664

0100

3

775

� =⇥B AB A2B A3B

⇤=

2

664

0 1 0 01 0 0 00 0 0 00 0 0 0

3

775 rank(�) = 26= 4

Controllable ??

Say we can control ✓1

4

Page 5: Glue Lecture 4 Slides

Introduce Control… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

x = Ax+Bu

B =

2

664

0100

3

775

� =⇥B AB A2B A3B

⇤=

2

664

0 1 0 01 0 0 00 0 0 00 0 0 0

3

775 rank(�) = 26= 4

Uncontrollable !!!

Say we can control ✓1

5

Page 6: Glue Lecture 4 Slides

In Matlab… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

B =

2

664

0100

3

775

Uncontrollable !!! 6

Page 7: Glue Lecture 4 Slides

7

Need “more” control… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

B =

2

664

0100

3

775

x = Ax+Bu

Page 8: Glue Lecture 4 Slides

8

Need “more” control… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

x = Ax+Bu

� =⇥B AB A2B A3B

B =

2

664

0 01 00 00 1

3

775 Say we can control and ✓2✓1

Controllable ??

Page 9: Glue Lecture 4 Slides

9

In Matlab again J… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

B =

2

664

0 01 00 00 1

3

775

Controllable !!!

Page 10: Glue Lecture 4 Slides

10

State feedback… x =

2

664

✓1

✓1

✓2

✓2

3

775 A =

2

664

0 1 0 00 0 0 00 0 0 10 0 0 0

3

775

x = Ax+Bu

B =

2

664

0 01 00 00 1

3

775

u = �Kx

Controllable

Page 11: Glue Lecture 4 Slides

11

State feedback… on a simpler system

Unstable !!!

x =

✓1

✓1

�A =

0 10 0

x = Ax

Page 12: Glue Lecture 4 Slides

12

State feedback… on a simpler system

x = Ax+Bu Controllable ???

x =

✓1

✓1

�A =

0 10 0

B =

01

�Say we can control ✓1

Page 13: Glue Lecture 4 Slides

13

State feedback… on a simpler system

x = Ax+Bu

u = �Kx

Controllable !!!

x =

✓1

✓1

�A =

0 10 0

B =

01

Page 14: Glue Lecture 4 Slides

14

State feedback… on a simpler system

x = Ax+Bu

u = �Kx

Controllable x =

✓1

✓1

�A =

0 10 0

B =

01

x =� 0 1

0 0

��

01

� ⇥k1 k2

⇤ �x

x = (A�BK)x

x =

0 1

�k1 �k2

�x

Page 15: Glue Lecture 4 Slides

15

State feedback… on a simpler system

x =

✓1

✓1

�A =

0 10 0

B =

01

�x =

0 1

�k1 �k2

�x

Characteristic polynomial: det(A0 � �I)

A0

�2 + k2�+ k1

Pick your favorite 2 eigen values (LHP) : �1 = �1

�2 = �2(�+ 1)(�+ 2)

Page 16: Glue Lecture 4 Slides

16

State feedback… on a simpler system

x =

✓1

✓1

�A =

0 10 0

B =

01

�x =

0 1

�k1 �k2

�x

Characteristic polynomial: det(A0 � �I)

A0

�2 + k2�+ k1

Pick your favorite 2 eigen values (LHP) : �1 = �1

�2 = �2�2 + 3�+ 2 k2 = 3

k1 = 2

Page 17: Glue Lecture 4 Slides

17

State feedback… on a simpler system

x = Ax+Bu

u = �Kx

x =

✓1

✓1

�A =

0 10 0

B =

01

K =⇥k1 k2

⇤=

⇥2 3

Stable !!!

Page 18: Glue Lecture 4 Slides

18

But we don’t know our state…

x = Ax+Bu

u = �Kx

x =

✓1

✓1

�A =

0 10 0

B =

01

Page 19: Glue Lecture 4 Slides

19

Need to estimate our state…

x = Ax+Bu

x =

✓1

✓1

�A =

0 10 0

B =

01

u = �Kx

C =⇥1 0

Say we can “see” ✓1

y = Cx Observable ???

Page 20: Glue Lecture 4 Slides

20

Need to estimate our state…

x = Ax+Bu

x =

✓1

✓1

�A =

0 10 0

B =

01

�C =

⇥1 0

y = Cx Observable ???

⌦ =

CCA

�=

1 00 1

�rank(⌦) = 2

Page 21: Glue Lecture 4 Slides

21

Need to estimate our state…

x = Ax+Bu

x =

✓1

✓1

�A =

0 10 0

B =

01

�C =

⇥1 0

y = Cx Observable !!!

e = x� ˙x = (A� LC)e

˙x = Ax+Bu+ L(y � Cx)

Page 22: Glue Lecture 4 Slides

22

All together… execution x = Ax+Bu

x =

✓1

✓1

�A =

0 10 0

B =

01

�C =

⇥1 0

⇤y = Cx

Controllable and Observable K L

a) Wake up b) Start Loop ( increments) c) Read output d) Compute control e) Send control f) Update using dynamics g) Repeat

y = Cx

u = �Kx

dt

x

u

t = t0, x = x0, x = x0

˙x = Ax+Bu+ L(y � Cx)

xk+1 = xk + dt

˙x

Page 23: Glue Lecture 4 Slides

23

Check the forums, and good luck with Quiz 4!