Sie sind auf Seite 1von 5

SOLUTIONS: QUIZ 3

CONTROL OF MOBILE ROBOTS

1
This question investigates how to obtain linearized models of non-linear dynamical systems.
A controlled pendulum with friction can be described by
m = mg sin k + ,
where is the angle of the pendulum and is the input torque applied at the base of the pendulum. m
is the mass of the pendulum, its length, g is the gravitational constant, and k is a friction coefficient.
Linearize this model around the two equilibrium points, i.e., when the pendulum is hanging straight
and u = , giving the linearized
down ( = 0) and balancing straight up ( = ). Let x1 = , x2 = ,
system x = Ax + Bu, where


0
B=
.
1
m

But what is A? Which of the following A-matrices give the correct linearizations around the two equilibrium points?

SOLUTION
Let x1 = , x2 = and u = , which gives the dynamics
x 1 = x2
x 2 = g sin(x1 )

k
m x2

1
m u.

The linearization is given by


x = Ax + Bu =

f (xe , ue )
f (xe , ue )
x+
u,
x
u

where the partial derivatives are


f
=
x

0
1
k
g cos(x1 ) m

f
=
u

= (0, 0) and (, )
= (, 0) gives
Plugging in the values (, )


0
1
=0:
A=
k
g m


0
1
,
=:
A= g
k
m

which is the answer.


1

0
1
m

2
Which of the following statements is correct?

SOLUTION
Lets go through the answers one by one.
The stability properties of x = Ax is determined by As eigenvalues.
We saw in class that this is indeed the case, with asymptotic stability requiring that the real part of
all the eigenvalues be strictly negative, while the presence of a single eigenvalue with positive real part
renders the system unstable. So this statement is true.
Output-feedback is more general than state-feedback.
Output feedback means that u = Ky, but since y = Cx we can write this as u = KCx or u = K x
for a particular choice of K . As such, output feedback can be written as a state feedback controller,
while the opposite is not true. As such, output feedback is not more general, and this statement is false.
The unicycle model has a useful linearization.
In class we saw that the linearization of the unicycle around the point (x, y, ) = (0, 0, 0) gave us a system
where we could move in the x-direction and turn the robot, but not move in the y-direction. This means
that the linearization is clearly not telling the whole story since an actual robot can indeed move in the
y-direction as well. As such, this linearization is not particularly useful and the statement is false.
Stability is not a control objective when designing controllers.
This statement is clearly false. Without stability, we cannot do anything so not only is it a control
objective, it is by far the most important objective.
Most systems are already linear so linearizations are not really needed.
This statement is not true. Most systems are nonlinear but the linearization provides a tight way of
describing their behaviors (at least around operating points).

3
This question involves the computation of eigenvalues and how these eigenvalues relate to the stability
properties of the underlying nonlinear system.
Given a linear system



x =
x.
0
Which of the options below captures all the values of and for which the system is asymptotically
stable?
Hint: The following fact might come in handy: The determinant of a 2 2 matrix is given by


a b


c d = ac bd.

SOLUTION
The eigenvalues to the A matrix are given by


0 = det(I A) = det
0



= ( )2 = ,

i.e., both eigenvalues are given by . This means that does not matter, i.e., it can be whatever, while
for asymptotic stability we need that the real part (in this case is real so it is equal to its real part) to
be negative. As such, the answer is: < 0, whatever.

4
Let the output of a third order system (x = Ax, y = Cx) be given in the figure below:
1

y(t)

0.5

0.5

10

The options below show the possible placements of the eigenvalues to the A matrix, with the axis
being the real parts and the imaginary parts of the eigenvalues. Which option corresponds to the system
used to generate the figure?

SOLUTION
There are a few observation we should make right away: First of all, it is a third order system so there
needs to be three eigenvalues. Moreover, as the system is stable (it clearly does not blow up), we know
that the real parts of all three eigenvalues must be negative. This leaves three possible candidates.
We also see that in the plot, the output (and hence also the state) seems to oscillate quite a bit before
settling down. This implies that at least one of the eigenvalues has a non-zero imaginary part. But,
we also know that there is no way we can have just one complex eigenvalue. They always show up in
complex conjugate pairs, i.e., if + j is an eigenvalue then so is j. This leaves only one possible
choice, and the solution is given below:

Im

Re

5
Recall the quadrotor model from Module 1
= cv g,
h
where h is the altitude of the quadrotor and v is the input. The purpose of this question is to revisit PID
design but in the context of state-feedback to see that there really isnt anything magical/special about
PID. So, please keep reading and follow along in the math...
First, if we directly compensate for gravity by introducing a new control input v = u + g/c we get the
= cu.
much simpler system h
Now, let x1 = h, x2 = h and the resulting linear system is




0 1
0
x =
x+
u.
0 0
c
i.e.,
As seen, a PD regulator is u = KP e + KD e = KP (r h) + KD (r h),
 
r
KP D x,
u = KP D
r
where KP D = [KP , KD ], i.e., it is just a state-feedback controller, and the closed-loop system becomes
 
r
.
x = (A BKP D )x + BKP D
r
So doing state-feedback is exactly the same as PD control for this system.
But what about the I-part? This requires some more work. For this we actually need to introduce
another, extra state. Let the new state be
Z t
x1 ( )d.
x3 (t) =
0

The resulting system has three states instead of two and if we let

x1
x
= x2 ,
x3

we get the closed-loop PID dynamics

r
P ID )
P ID r ,
x = (A BK
x + BK
R
r

where KP ID = [KP , KD , KI ] and where

0
= c .
B
0
(Write out the dynamics of the new, third order
But, which of the options below give the correct A?
system in order to figure out the new A-matrix.)

SOLUTION
Since
x3 =

x1 ( )d,

we directly see that


x 3 = x1 .
As such, the new A matrix has to be

A =

A
1


0
0
0 = 0
1
0

which is the answer.

1 0
0 0 ,
0 0

Das könnte Ihnen auch gefallen