Vous êtes sur la page 1sur 45

Video 6.

1
Vijay Kumar and Ani Hsieh

Robo3x-1.6 1
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
In General

Disturbance

System Output
Input + Input + +
Controller
-

Robo3x-1.6 2
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Learning Objectives for this Week
• State Space Notation
• Modeling in the time domain
• Solutions in the time domain
• From Frequency Domain to Time Domain
and Back
• Design in the Time Domain
• Linearization
Robo3x-1.6 3
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
State-Space Representation
• Converts N-th order differential equation into
N simultaneous FIRST-ORDER differential
equations

• Allows for multiple inputs and/or outputs


• Versatility – our initial conditions DO NOT
have to be 0

Robo3x-1.6 4
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
State Variables
Smallest set of linearly independent system
variables s.t. state_variables(t_0) + known input
(or forcing) functions completely determines the
system.
# of state variables = Dimension of the State Space
# of state variables = order of the original diff eqn

Robo3x-1.6 5
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example

Robo3x-1.6 6
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Another Example (1)

y1
x1
q2
y2

y0
P Q
x2
q1
O x0

Robo3x-1.6 7
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Another Example (2)

Robo3x-1.6 8
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Video 6.2
Vijay Kumar and Ani Hsieh

Robo3x-1.6 9
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Transfer Function → State Space (1)
Given

Robo3x-1.6 10
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Transfer Function → State Space (2)
Given

Robo3x-1.6 11
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Transfer Function → State Space (3)
Given

Robo3x-1.6 12
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
State Space → Transfer Function (1)
Given

Robo3x-1.6 13
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
State Space → Transfer Function (2)
Given

Robo3x-1.6 14
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Solutions in the Time Domain
Given w/

Robo3x-1.6 15
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Time Domain Solution (2)

Robo3x-1.6 16
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Output of the System

Natural Particular
Response Response
Thus, output of the system is given by

Robo3x-1.6 17
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Video 6.3
Vijay Kumar and Ani Hsieh

Robo3x-1.6 18
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
The Matrix Exponential

Properties of

• If then

Robo3x-1.6 19
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Characterizing System Response

Since , for constant


, then w/ constant and
Then,

Robo3x-1.6 20
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Steady-State Performance

Since

System is stable if and only if

Robo3x-1.6 21
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Transient Performance
What about complex eigenvalues?
Recall , then
with
results in

Complex eigenvalues come in pairs,


terms will cancel out.

Robo3x-1.6 22
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example (1)
Given w/

Eigenvalues and eigenvectors of are


and
Robo3x-1.6 23
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example (2)

Robo3x-1.6 24
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example (3)

Robo3x-1.6 25
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
State Space Design
Given w/

Linear State Feedback Control Law

Closed-loop system

Choose K such that CL response is stable.


Robo3x-1.6 26
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Advantages of State Space Design
Given w/

with
1. Not restricted to 2nd order approximations
2. Access to a larger range of closed-loop poles
3. Allows for full state feedback

Robo3x-1.6 27
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Video 6.4
Vijay Kumar and Ani Hsieh

Robo3x-1.6 28
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
A Caveat – Controllability
A linear system is controllable if for each
and , there exists a that can
get the system from to at time .

Such a linear system is controllable if and only if

Controllability Matrix
Robo3x-1.6 29
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Feedback Law and Controllability
Let
s.t.
are real coefficients. Then there exists
such that
if and only if is controllable.

State feedback enables any controllable linear


system to have arbitrary closed-loop poles!

Robo3x-1.6 30
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Linear Quadratic (LQ) Control
Find optimal feedback control strategy that
Cost
Function

Constraints

Ø Constrained Optimization Problem


Ø Optimal Control
Robo3x-1.6 31
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Optimal LQ Controller

w/ symmetric, positive definite matrix Q and R


w/

where

Robo3x-1.6 32
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
A Few More Words
The Algebraic Riccati Equation

• P is n x n matrix
• P is unique
• P is symmetric and positive definite
• w/ is optimal
w.r.t. the cost function J
Robo3x-1.6 33
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Caveat for the Caveat –
Observability
Recall: If is controllable, then
K can be chosen s.t.
achieves arbitrary CL poles.

Assumption:

Robo3x-1.6 34
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example – Robot Joint Control (1)

Robo3x-1.6 35
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example – Robot Joint Control (2)

With
Note:
1. Only θm is can be measured
2. requires θl

Robo3x-1.6 36
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Observers
• State estimators
• Use system model and measured output to
estimate the full state

• Also a dynamical system

Robo3x-1.6 37
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Obtaining
Let

Error between plant


• A, B, C are known & estimate output
• Solve for from any initial condition
• Use in feedback law
• Pick L s.t. as
Robo3x-1.6 38
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Video 6.5
Vijay Kumar and Ani Hsieh

Robo3x-1.6 39
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Performance of the Estimator
Let be the estimation error
Then,
1. Dynamics determined by
2. Pick L s. t. as

Eigenvalues of can be arbitrarily


set if and only if system is observable.

Robo3x-1.6 40
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Observability
A linear system is observable if every
can be exactly determined from and
in a finite time interval .

The pair is observable if and only if

Observability
Matrix
Robo3x-1.6 41
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Example – Robot Joint Control (3)

With

Separation Principle: Allows us to separately design


the feedback control and the state estimator

Robo3x-1.6 42
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
For nonlinear systems
In general, given

where f is a nonlinear function in x, possibly u


What if …
1. We want to analyze system behavior around
?
2. We want to control system behavior around
?
Robo3x-1.6 43
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Linearization
Given and ,
• Let and ,
substitute into f(x,u)

• Apply Taylor series expansion about

Then
Robo3x-1.6 44
Property of Penn Engineering, Vijay Kumar and Ani Hsieh
Linearization

Let and

Proceed …

Robo3x-1.6 45
Property of Penn Engineering, Vijay Kumar and Ani Hsieh

Vous aimerez peut-être aussi