0% found this document useful (0 votes)
12 views

AFS-Assisted Trailer Reversing

Uploaded by

strangenerd182
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

AFS-Assisted Trailer Reversing

Uploaded by

strangenerd182
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

Institutionen för systemteknik

Department of Electrical Engineering

Examensarbete

AFS-Assisted Trailer Reversing

Examensarbete utfört i Reglerteknik


vid Tekniska högskolan i Linköping
av

Olof Enqvist

LITH-ISY-EX--06/3752--SE
Linköping 2006

Department of Electrical Engineering Linköpings tekniska högskola


Linköpings universitet Linköpings universitet
SE-581 83 Linköping, Sweden 581 83 Linköping
AFS-Assisted Trailer Reversing

Examensarbete utfört i Reglerteknik


vid Tekniska högskolan i Linköping
av

Olof Enqvist

LITH-ISY-EX--06/3752--SE

Handledare: M.Sc. Christian Lundquist


ZF Lenksysteme
Lic. Gustaf Hendeby
isy, Linköpings universitet
Dr. Wolfgang Reinelt
ZF Lenksysteme
Examinator: Dr. Jacob Roll
isy, Linköpings universitet

Linköping, 27 January, 2006


Avdelning, Institution Datum
Division, Department Date

Division of Automatic Control


Department of Electrical Engineering
2006-01-27
Linköpings universitet
S-581 83 Linköping, Sweden

Språk Rapporttyp ISBN


Language Report category —
 Svenska/Swedish  Licentiatavhandling ISRN
 Engelska/English
  Examensarbete
 LITH-ISY-EX--06/3752--SE
 C-uppsats
Serietitel och serienummer ISSN
 D-uppsats Title of series, numbering —
  Övrig rapport


URL för elektronisk version


http://www.control.isy.liu.se
http://www.ep.liu.se/2006/3752

Titel Aktiv styrning vid backning med släp


Title AFS-Assisted Trailer Reversing

Författare Olof Enqvist


Author

Sammanfattning
Abstract

Reversing with a trailer is very difficult and many drivers hesitate to even try it.
This thesis examines if active steering, particularly AFS (Active Front Steering),
can be used to provide assistance.
For analysis and controller design a simple geometric model of car and trailer
is used. The model seems to be accurate enough at the low speeds relevant for
trailer reversing. It is shown that the only trailer dependent model parameter can
be estimated while driving. This enables use with different trailers.
Different schemes to control the system are tested. The main approach is to
use the steering wheel as reference for some appropriate output signal, for example
the angle between car and trailer. This makes reversing with a trailer more like
reversing without a trailer. To turn left, the driver simply turns the steering
wheel left and drives. Test driving, as well as theoretical analysis, shows that the
resulting system is stable. Of the eight drivers that have tested this type of control,
five found it to be a great advantage while two considered it more confusing than
helpful.
A major problem with this control approach has to do with the way AFS
is constructed. With AFS, the torque required to turn the front wheels results
in a reaction torque in the steering wheel. Together with the reference tracking
controllers, this makes the steering wheel unstable. Theoretical analysis implies
that this problem has to be solved mechanically. One solution would be to combine
AFS with electric power steering.
This thesis also presents a trajectory tracking scheme to autonomously reverse
with a trailer. Starting from the current trailer position and the desired trajectory
an appropriate turning radius for the trailer is decided. Within certain limits,
this will stabilize the car as well. The desired trajectory can be programmed
beforehand, but it can also be saved while driving forward. Both variants have
been tested with good results.

Nyckelord
Keywords Automotive Control, Trajectory Tracking, Active Steering
Abstract
Reversing with a trailer is very difficult and many drivers hesitate to even try it.
This thesis examines if active steering, particularly AFS (Active Front Steering),
can be used to provide assistance.
For analysis and controller design a simple geometric model of car and trailer
is used. The model seems to be accurate enough at the low speeds relevant for
trailer reversing. It is shown that the only trailer dependent model parameter can
be estimated while driving. This enables use with different trailers.
Different schemes to control the system are tested. The main approach is to
use the steering wheel as reference for some appropriate output signal, for example
the angle between car and trailer. This makes reversing with a trailer more like
reversing without a trailer. To turn left, the driver simply turns the steering
wheel left and drives. Test driving, as well as theoretical analysis, shows that the
resulting system is stable. Of the eight drivers that have tested this type of control,
five found it to be a great advantage while two considered it more confusing than
helpful.
A major problem with this control approach has to do with the way AFS
is constructed. With AFS, the torque required to turn the front wheels results
in a reaction torque in the steering wheel. Together with the reference tracking
controllers, this makes the steering wheel unstable. Theoretical analysis implies
that this problem has to be solved mechanically. One solution would be to combine
AFS with electric power steering.
This thesis also presents a trajectory tracking scheme to autonomously reverse
with a trailer. Starting from the current trailer position and the desired trajectory
an appropriate turning radius for the trailer is decided. Within certain limits,
this will stabilize the car as well. The desired trajectory can be programmed
beforehand, but it can also be saved while driving forward. Both variants have
been tested with good results.

v
Acknowledgements

A lot of people has helped me with this thesis. Christian Lundquist worked to-
gether with me all the way, providing valuable feedback and ideas. Wolfgang
Reinelt invited me to do the thesis and shared his experience in control. I want
to thank them both. I am also very grateful to Gustaf Hendeby and Jacob Roll,
for their patience and for good advice concerning the thesis.
Further, my family and friends, Camorasan, Alexander, Christine, Frank, Gerd,
Ralf, Reinhard, Samuel, Schusterle, Thomas and Thorsten are not forgotten. . . och
Christian, se nu till att du kommer ut och får sladda lite ibland också.

vii
Contents

1 Introduction 1
1.1 Active Front Steering . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 This Thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2 Modelling 3
2.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 Geometric Constraints . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Kinematic Constraints . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.5 Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.6 Model Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.7 Trailer Length Estimation . . . . . . . . . . . . . . . . . . . . . . . 9

3 System Characteristics 11
3.1 Equilibria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Left-Right Steering . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Jackknifing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4 Stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4 Reference Tracking 15
4.1 Controlling γ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.1.1 Input-Output Linearization . . . . . . . . . . . . . . . . . . 16
4.1.2 Optimal Feedback . . . . . . . . . . . . . . . . . . . . . . . 16
4.1.3 Comparing the γ-controllers . . . . . . . . . . . . . . . . . . 18
4.2 Controlling the Turning Radius . . . . . . . . . . . . . . . . . . . . 19
4.3 Anti-Jackknifing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.4 Test Driving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.5 Alternatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.5.1 Error Correction . . . . . . . . . . . . . . . . . . . . . . . . 23
4.5.2 Modified Steering Characteristics . . . . . . . . . . . . . . . 24
4.5.3 Assisting Steering Wheel Torque . . . . . . . . . . . . . . . 24

ix
5 Steering Wheel as Reference 25
5.1 Linear Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2 Stabilizing the Steering Wheel . . . . . . . . . . . . . . . . . . . . . 27
5.2.1 No Steering Shaft Friction . . . . . . . . . . . . . . . . . . . 27
5.2.2 With Steering Shaft Friction . . . . . . . . . . . . . . . . . 28
5.3 Limiting Instability . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

6 Autonomous Steering 31
6.1 Tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.2 Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
6.3 Saving a Trajectory . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.4 Special Trajectories . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

7 Conclusions and Future Work 35


7.1 Modelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.2 Reference Tracking Controllers . . . . . . . . . . . . . . . . . . . . 35
7.3 Trajectory Tracking . . . . . . . . . . . . . . . . . . . . . . . . . . 36

A Derivations 37
A.1 Deriving the Differential Equations . . . . . . . . . . . . . . . . . . 37
A.2 Deriving the Trailer Velocity . . . . . . . . . . . . . . . . . . . . . 38

B Model with Lateral Slip 39


B.1 Slip Angles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
B.2 Dynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Bibliography 43
Chapter 1

Introduction

When reversing, a car with an attached trailer constitutes an unstable system.


Thus, the trailer will tend fold up to the car like a jackknife. To avoid this the
driver has to compensate for the movement of the trailer using the steering wheel.
This is especially difficult due to another characteristic of the system: To get the
trailer more to the left, you need to turn the steering wheel more to the right,
which can be quite confusing.
All of this makes trailer reversing very difficult and many drivers hesitate to
even try it. This thesis examines if active steering, particularly AFS (Active Front
Steering), can be used to provide assistance. We will soon discuss the aim and
contents of the thesis more thoroughly, but first a short introduction to active
steering might be in place.

1.1 Active Front Steering


Normally, the front wheel angles of a car depend solely on the steering wheel
angle. With Active Front Steering (AFS) it is possible to superpose an additional,
electronically controlled angle (Figure 1.1). Thus, the steering characteristics can
be adjusted according to the driving situation.
The superposition angle is provided by an electric motor connected to a plan-
etary gear. This way, the mechanical connection between steering wheel and front
road wheels is maintained. In case of malfunction, the planetary gear will be
mechanically locked, allowing the driver to steer normally.
AFS was developed by ZF Lenksysteme. It is optional equipment for some
BMW series. There it is used to adjust the steering ratio depending on vehicle
speed. At low and medium speeds the steering becomes more direct, requiring less
steering effort in, for example, a parking manuevre. At higher speeds, the steering
is less direct to enhance directional stability. BMW also uses AFS to stabilize the
car in critical driving situations.

1
2 Introduction




 


steering 

wheel
angle

super-
position
angle

@
@
@@

Figure 1.1. With AFS, an angle is superposed to the steering wheel angle.

1.2 This Thesis


The work behind this thesis was conducted at ZF Lenksysteme. They were looking
for new applications for AFS. Consequently, the aim of this thesis is to explore
the potential of using AFS for trailer reversing. To do so, different assistance
functions are developed and evaluated. Though they are primarily intended for
presentations, an aim is to make them suitable for serial production as well. Thus,
they use existing sensors, with the sole addition of an angle sensor to measure the
trailer position. In serial production such a sensor could be placed in the towing
hook of the car.
For analysis and controller design a model of the car-trailer system is required.
Such a model is derived and validated in Chapter 2. To enable use with different
trailers, we need a method to estimate the trailer length while driving. Such a
method is presented in Section 2.7. Chapter 3 discusses some important charac-
teristics of the car-trailer system.
The part on control is divided into two parts. Chapter 4 concerns reference
tracking controllers, where the driver gives the reference value with the steering
wheel. In Chapter 6 a couple of autonomous steering functions are constructed.
Using the steering wheel to provide the reference value causes some special prob-
lems with AFS. They are analysed in Chapter 5.
Chapter 2

Modelling

The design and analysis of a controller requires an appropriate model of the system
that we want to control. In this chapter, a model for the car-trailer system is
derived. The modelling is made in a structured manner to enable expansions.
Sections 2.1–2.4 discuss the basic assumptions and formulate them as algebraic
and differential constraint equations. From these equations a system of differential
equations is derived. The derivations can be found in Appendix A and the resulting
differential equations in Section 2.5. The validity of the model is examined in
Section 2.6 and Section 2.7 presents a method to estimate the trailer length while
driving.

2.1 Basics
An important part of modelling, is to choose what kind of model to use. Which
effects are essential and which can be disregarded? Choosing the most complex
model is not always a good idea. Though such a model is theoretically more
accurate, it tends to be more sensitive to variations and it can be difficult to
estimate all the parameters. A simpler model is also easier to analyse.
One choice we have to make is whether to include lateral slip in our model.
Lateral slip is an effect of cornering. To turn, a car has to be affected by a lateral
force. This force is provided by friction when the tyres slip sideways.
A few facts can guide us when we decide whether to include slip in our model.
One is that the weight of a specific trailer varies, and thus tyre friction and dynamic
properties. If the model depends on these parameters, they would have to be
estimated each time the car starts. Moreover, car owners tend to use their car with
different trailers. Therefore, we want controllers that can adapt to a new trailer,
and thus all trailer dependent parameters have to be estimated while driving.
Since slip is linked to the lateral forces, a model with slip would depend on
the dynamic properties of both the car and the trailer. A model without slip, on
the other hand, only depends on the geometry of the car and the trailer. Besides,
trailer reversing mostly takes place at low speeds, where side forces and lateral
slip are small.

3
4 Modelling

It seems a model without slip is more suitable for our purposes. (In cases when
slip cannot be disregarded the model in Appendix B might be a starting point.)
We will now look a little closer at the geometry of the car. To allow all wheels
of the car to roll without lateral slip, the inner front wheel needs to turn more
than the outer. The ideal geometry, often called Ackermann steering geometry,
is shown in Figure 2.1. Here, all wheels are aligned to move in circles around a
common central point, M . The relation between the left front wheel angle, δF L ,
and the right, δF R , is
w1
tan δF L − tan δF R = tan δF L tan δF R ,
l1
where w1 and l1 are the distances between the wheels as can be seen in Figure 2.1.
Note that the wheel angles are positive when turning left.

δ F.
..
v 6 F ..
.
.. ..
.
. .
.. .. .
.... .. .. ..
...... .. ..
....
rP
.
.. .... . 0
. .
. ..
.
.. .
.. ....... ...
M .. .. .....
r .
.
...
.
.
.
..
.
..
..
....

δF L .
.
. .
. .. 
..
.
.. ..
δF R .. .. 
.. ...
. .
.. ..

.. ..  l
.. v .. 1
.. R .
.. .. 
..
 ..
.
. .
..
 ..

..
..
.
r ..
..

. .
.. ..
.. P 1
..
. .... 
..
.. ..
.
.
.. ..
.. ..
P
i
PP ...
.
..
PP
w P
q
1 ..

Figure 2.1. The Ackermann steering geometry.

For our model, we will assume that the car has Ackermann steering geometry
and that all wheels roll without lateral slip. Thus, all points on the car will move
on circles around a common point (Figure 2.1).
We define the points P0 and P1 as in Figure 2.1 and vF and vR as their velocity
vectors. The movement of the car can be specified by the signed speed vR = ±|vR |,
and the angle δF between vF and the central axis of the car. In practice δF is
computed from measurements of the front wheel angles, using
tan δF L tan δF R
tan δF = w1 = .
1 + 2 l1 tan δF L 1 − 2wl11 tan δF R
From now on we will call δF the front wheel angle of the car, though that is not
entirely true.
2.2 Coordinates 5

2.2 Coordinates
We introduce a (global) inertial frame R with coordinates xR and y R as well as
local frames Li with coordinates xLi and y Li (Figure 2.2). The car-fixed frame, L1 ,
has its origin in the point P1 between the rear wheels, and its x-axis in the forward
direction of the car. Frame L2 is trailer-fixed with origin between the wheels of the
trailer, and x-axis in the forward direction of the trailer. We also define a frame
L0 with origin in P0 , between the front car wheels, and x-axis coinciding with the
velocity vector, vF (see Section 2.1).

..
..
yR ..
..
..
..
..
6 AK r
..
*
 ..
..
L 0 ....
- ..
..
xR ..
..
R ..
..
..
..
..
..
..
..

..
I r
@ ..
..
..
..
..
L .
1 .....
.. ..
..
.. ..
.. ..
..
..
r:
OC  ..
C ..
..
L 2...
..
..
..
..
..
..
.

Figure 2.2. The different coordinate frames.

The position of body i in the plane is specified by the global coordinates of the
origin Pi of the body-fixed frame Li , and the orientation of body i is specified by
ψi = ψLi R , the angle of rotation of Li with respect to R. For convenience, we also
introduce the displacement vector rR R R T
Pi O = (xPi O , yPi O ) (see Figure 2.3).


HH 
Y
H.. Li
......
:
rR
Pi O  ..
..
..
 .
..
..
6
 ..
..
ψ i
..

R - .
..
..
....................................................................................................

Figure 2.3. Displacement vector and angle of rotation.


6 Modelling

2.3 Geometric Constraints


In this section we set up the purely algebraic constraint equations that originate
from the geometry of the car-trailer system.

• The angles between the front wheels and the car are controlled by the driver
together with the controller. These angles are specified by the single angle δF
(see Section 2.1). Thus, with ψ0 and ψ1 as defined in the previous section,

ψ0 − ψ1 − δF = 0. (2.1)

..
..
..
.. .
.. ..
.. ..
.. ...
.. ..
....
.. rP
... .. 0
. ..
.. ..
.. ..
. ..
... ..
.. ..
.. .
..
.. ..
.. . . 
.. .
.
.
.
. .. ..
. . .. ..
.
.
.
. .. . ..
. . .. ..
.
.
.
.
.
. ..
.. ..
.... r
.
.
.
.
.
.
..
... . ... .. 1
.. P l1
.
.
.
. .. .. ..
. . .. ... ..
. . ..Q
.. ...
. ..
rP
. . 2 ..
.
.
.
.
2 .
.
...............................................................
.
.
r1 ....... Q r ..
. . .. ..
. . ..
..
. .

. . ..
. . ..
. . ..
. .
.
.
.
.
.
.
..
. 12 l
. .
. .
. .
.  . -
. .
. .
l2

Figure 2.4. Points in the different frames.

• By definition the origin P0 of frame 0 is fixed in the L1 frame


RL1 L1
rR
P0 O − A rP0 P1 − rR
P1 O = 0,

where    
cos ψ1 − sin ψ1 l
A RL1
= and rL1
P0 P 1 = 1 .
sin ψ1 cos ψ1 0
We get the constraint equations

xR R
P0 O − l1 cos ψ1 − xP1 O = 0 (2.2a)
yPR0 O − l1 sin ψ1 − yPR1 O = 0. (2.2b)
2.4 Kinematic Constraints 7

• We define a point Q1 for the towing hook of the car and a point Q2 for the
coupling of the trailer (see Figure 2.4). Since the trailer is attached to the
car, these points coincide,

rR R R R
P1 O + rQ1 P1 − (rP2 O + rQ2 P2 ) = 0.

where    
−l12 l2
rR
Q1 P1 =A RL1
and rR
Q2 P2 =A RL2
.
0 0
We get

xR R
P1 O − l12 cos ψ1 − xP2 O − l2 cos ψ2 = 0 (2.3a)
yPR1 O − l12 sin ψ1 − yPR2 O − l2 sin ψ2 = 0. (2.3b)

2.4 Kinematic Constraints


So far, we have only considered the geometry of the car and trailer system. To get
further we use the properties discussed in Section 2.1.

• By definition, P0 moves only along the x-axis of the L0 frame and as an effect
of the no lateral slip assumption P1 only move along the x-axis of L1 . With
a similar argument we assume that the trailer has zero lateral slip. Thus the
point P2 will only move along the x-axis of L2 . We have
 
?
ALi R ṙR
Pi O = , i = 0, 1, 2
0

which yields the constraint equations

− sin ψ0 ẋR R
P0 O + cos ψ0 ẏP0 O = 0 (2.4a)
− sin ψ1 ẋR
P1 O + cos ψ1 ẏPR1 O =0 (2.4b)
− sin ψ2 ẋR
P2 O + cos ψ2 ẏPR2 O = 0. (2.4c)

• Finally, the speed of the car can be measured. Let us assume that the speed
of the rear wheels is measured. Since there is no slip,
 
vR
AL1 R ṙR
P1 O = ,
0

which yields
cos ψ1 ẋR R
P1 O + sin ψ1 ẏP1 O = vR . (2.5)

Assuming that initial conditions are known we now have enough equations to
decide the behaviour of the system as a result of the steering angle, δF , and rear
wheel speed, vR .
8 Modelling

2.5 Differential Equations


To make our model easier to handle we rewrite it as a system of differential equa-
tions. The derivations can be found in Appendix A. Since we have four non-
algebraic constraint equations, (2.4) and (2.5), we get four independent variables
in our equations. We choose these to be x1 = xR R
P1 O , y1 = yP1 O , ψ1 and γ = ψ1 −ψ2 .
Note that γ is the angle between car and trailer, defined as positive in a left curve.
The resulting equations are

ẋ1 = vR cos ψ1 (2.6a)


ẏ1 = vR sin ψ1 (2.6b)
vR
ψ̇1 = tan δF (2.6c)
l
1 
vR vR l12 vR
γ̇ = + cos γ tan δF − sin γ. (2.6d)
l1 l1 l 2 l2

For obvious reasons the input δF is bounded. We have

|δF | ≤ δFbd .

Sometimes it is more appropriate with a model that uses traveled distance, rather
than time, as independent variable. We introduce σ as the distance travelled
backwards by the rear wheels. Using the chain rule we get

γ̇(t) = γ 0 (σ) σ̇(t) = −vR γ 0 (σ)

and
 
0 1 l12 1
γ (σ) = − + cos γ tan δF + sin γ. (2.7)
l1 l 1 l2 l2

Naturally, the same substitution could be performed in the first three equations,
but that will not be necessary.

2.6 Model Validation


To validate the model, we use measurements of rear speed, vR , front wheel angle, δF ,
and car-trailer angle, γ, from test drives. By solving the model equations with
measured inputs vR and δF , we get a simulated output γ. Comparing measured
and simulated γ gives an idea of the accuracy of the model. Figure 2.5 shows this
comparison for a typical test drive.
It should be mentioned that the agreement between measured and simulated γ
is bad when reversing. The reason is that since the system is unstable, a small
initial deviation will tend to increase. For this reason, we use measurements from
forward driving, trusting that our assumptions are just as valid for reversing.
2.7 Trailer Length Estimation 9

0.8

0.4
γ [rad]

−0.4

−0.8
0 20 40 60 80 100 120
Time [s]

Figure 2.5. Measured (solid) and simulated (dashed) γ, when driving forward at low
speed.

2.7 Trailer Length Estimation


To allow driving with trailers of different lengths we need some way to estimate
the trailer length while driving. The standard solution is to use a prediction error
method, choosing the parameter value that minimizes the quadratic sum of the
prediction errors. The basics of parameter estimation can be found in [6].
The basis of our estimation is measurements of γ, δF and vR . We use vR to
get sequences γ(k) and δF (k) that are equidistant in space rather than in time.
Otherwise errors when driving slowly would get an exaggerated effect.
Performing an Euler step on our differential equation gives us a prediction of
γ(k + 1) given the values of γ(k) and δF (k). The prediction is
  
1 l12 1
γ̂(k + 1) = γ(k) + h + cos γ(k) tan δF (k) − sin γ(k)
l1 l1 l2 l2
∆ 1
= γ(k) + g1 (k) + g2 (k).
l2
We replace the parameter that we want to estimate with θ = 1/l2 and define
N
1 X 2
VN (θ) = (γ(k + 1) − γ̂(k + 1|θ))
N
k=1
N
1 X 2
= γ(k + 1) − γ(k) − g1 (k) − θ g2 (k) .
N
k=1

We get our estimation of l2 from the θ that minimizes VN (θ). Because γ̂ is linear
in θ this minimum can be found easily. First we define
N
1 X 
fN = γ(k + 1) − γ(k) − g1 (k) g2 (k)
N
k=1
10 Modelling

and
N
1 X
RN = g2 (k)2 .
N
k=1
If RN > 0
N 2
1 X
VN (θ) = γ(k) − γ(k − 1) − g1 (k) + 2 θ fN + θ2 RN
N
k=1
N 2
f2

1 X fN
= g1 (k)2 − N + RN θ + .
N RN RN
k=1

which is minimal when


fN
. θ=− (2.8)
RN
The condition RN > 0 is worth commenting. For this condition to be false,
g2 (k) = 0 for all k, which means
l12 1
cos γ tan δF − sin γ = 0.
l1 l2 l2
There seems to be a whole family of solutions to this equation,
l1
tan δF = tan γ.
l12
If the driver chooses the input according to one of these functions, it will be
impossible to estimate the trailer length. Fortunately, this seems very unlikely,
except perhaps for the special case δF = γ = 0, which is pretty obvious. We
conclude that the estimation method works, except for driving along a straight
line.
Estimation

0
0 5 10 15 20 25 30 35 40 45 50
Travelled distance [m]

Figure 2.6. Estimation of the trailer length in real-time. The solid line is the estimated
trailer length and the dashed line is the actual length.

Figure 2.6 shows estimated and true trailer length from a test drive. The test
drive included several curves. As the plot shows, a good estimation of the trailer
length was obtained after just a few meters.
Chapter 3

System Characteristics

In the next chapter we will construct controllers for trailer reversing, but first
we look at some of the characteristics that make it difficult to reverse without
assistance.
In the first section we derive an expression for the equilibria of our model. Then
we define the concept of left-right steering. In Section 3.3 we derive an expression
for the jackknifing angle and the last section of this chapter concerns stability.

3.1 Equilibria
As in most of this thesis, we will replace the front wheel angle, δF , with the more
convenient u = tan δF . Not to forget its meaning, we will refer to it as the front
wheel tangent. The bounds on the front wheel angle are easily translated. We
have
|u| < ubd = tan δFbd .
Next, we rewrite (2.7) and define a function for the right hand side,
 
0 1 l12 1 ∆
γ (σ) = − + cos γ u + sin γ = f (γ, u). (3.1)
l1 l 1 l2 l2
In order to analyse this equation, we first seek the equilibria. Since we are only
interested in realistic car-trailer angles, we can assume |γ| ≤ π/2. We put γ 0 = 0,
which yields
l1 sin γ
u= .
l2 + l12 cos γ
This equilibrium relation will prove important, so we define the function
l1 sin γ
ueq (γ) = . (3.2)
l2 + l12 cos γ
Note that this function is strictly monotonic on [− π2 , π2 ]. Thus, for each front
wheel tangent, u, one unique car-trailer angle is in equilibrium, and inversely, for
each car-trailer angle there is only one front wheel tangent that will put the trailer
in equilibrium.

11
12 System Characteristics

3.2 Left-Right Steering


In the previous section, we found the equilibria of our differential equation. In
this section, we study the behaviour around such an equilibrium. Recall from
(3.1) that
γ 0 = f (γ, u),
and that f (γ, ueq (γ)) = 0. For γ ∈ [− π2 , π2 ],
 
1 l12
fu0 (γ, u) = − + cos γ < 0.
l1 l1 l2

We conclude that

u > ueq ⇒ γ 0 = f (γ, u) < 0


u < ueq ⇒ γ 0 = f (γ, u) > 0.

What this means is that to get the trailer to turn left, you have to turn the front
wheels of the car to the right and inversely. Lacking a better expression, we will
call this left-right steering. It should be familiar to anyone who has tried reversing
with a trailer. For inexperienced drivers it can pose quite a problem.

3.3 Jackknifing
In the previous section we learned that to make γ smaller, we simply make u > ueq ,
but what happens if this is not possible? The problem arises if ueq (γ) > ubd . Then
γ 0 must be positive and γ will increase. The trailer will fold up to the car like a
jackknife (Figure 3.1). The only way for the driver to regain control of the trailer
is to stop and drive forward.

Figure 3.1. Jackknifing.

The critical jackknifing angle γjk can be found by putting ueq (γ) = ubd .
(Thanks to the symmetry it is sufficient to consider the positive case.) Using
3.4 Stability 13

(3.2) yields
l1 sin γ
ubd = ueq (γ) = ,
l2 + l12 cos γ
and
l1 sin γ − l12 ubd cos γ = l2 ubd .
Using the relation sin (α + β) = sin α cos β + cos α sin β we get an expression for
the jackknifing angle
!  
l2 ubd l12 ubd
γjk = arcsin p 2 2 u2
+ arctan . (3.3)
l1 + l12 bd
l1

Symmetrically, the trailer will jackknife if γ < −γjk . From now on we will mainly
be interested in angles γ ∈ (−γjk , γjk ). For them |ueq (γ)| < ubd and thus the
trailer can be controlled. Notice that at the jackknifing angle itself the system is
not controllable.

3.4 Stability
In this section, we examine the stability of our equilibria, and present some theory
that will be needed in the next chapter. First we recall the definition of stability.
Consider a scalar autonomous differential equation z 0 = f (z), z(0) = z0 where f
is a continuous function and f (Z) = 0.

Definition 3.1 The equilibrium Z is stable, if for an arbitrary ε > 0, there exists
a δ > 0 such that |z0 − Z| < δ assures |z(t) − Z| < ε for all t > 0.

Theorem 3.1 If f 0 (Z) > 0, then Z is an unstable equilibrium.

For a proof of this theorem and a good general discussion on stability, see [5].
The definition of stability is valid for autonomous differential equation. A
differential equation with an input signal results in an autonomous function if the
input signal is kept constant. In our case, assuming u ≡ U , yields the equation
 
0 1 l12 1
γ =− + cos γ U + sin γ = fU (γ).
l1 l 1 l2 l2

which has only one equilibrium, Γ ∈ (−γjk , γjk ), such that U = ueq (Γ), (see
Section 3.1). According to Theorem 3.1, the equilibrium is unstable if f 0 (Γ) > 0.
Differentiation yields

l12 1
f 0 (γ) = sin γ U + cos γ.
l1 l 2 l2

Equation (3.2) tells us that Γ and U , will always have the same sign. Thus, f 0 (Γ)
is positive and the equilibrium is unstable.
14 System Characteristics

This instability plays an important roll in making trailer reversing difficult.


Because of it, the driver has to be active all the time, responding to the movement
of the trailer, and thanks to the left-right steering there is a large risk that he or
she will respond incorrectly.
Apparently, it should be an aim of any control scheme to stabilize the system.
However, normal stability is not always sufficient. In the next chapter we will dis-
cuss different reference tracking controllers. Then we expect the current reference
value to be a stable equilibrium, not only locally, but for all γ ∈ (−γjk , γjk ). We
also need to be sure that γ never leaves this interval. So what kind of stability do
we require? To end this chapter, we define of an attractive equilibrium and prove
a theorem that will be useful in the next chapter.
Consider a scalar autonomous differential equation z 0 = f (z), z(0) = z0 where f
is a continuous function and f (Z) = 0.

Definition 3.2 The equilibrium Z is attractive in an interval I, if |z(t) − Z|


decreases strictly towards zero for all z0 ∈ I.

Theorem 3.2 If (z − Z)f (z) < 0 for z ∈ I \ {Z}, then Z is attractive in I.


Proof Let d(t) = 12 (z(t) − Z)2 and d0 = d(0) = 12 (z0 − Z)2 , where z0 ∈ I. We note that
d(t) ≥ 0 and that d0 (t) = (z(t) − Z)f (z(t)) ≤ 0. Thus d(t) is decreasing and bounded and
consequently, it has a limit, c, satisfying 0 ≤ c ≤ d0 . It remains to show that this limit
is zero. When d0 = 0 we have 0 ≤ c ≤ 0 so we only have to consider the case d0 > 0.
For contradiction, assume c > 0. Since d is decreasing this means that d stays in
Ω = [c, d0 ] for all t. Since Ω is compact and d0 is continuous, d0 attain a maximum value
in Ω. We call it k. From the condition of the theorem we know that k < 0. This means
that for all t, d0 (t) ≤ k < 0, implying that d → −∞. Since d ≥ 0 this is a contradiction.
The conclusion is that d(t) decreases towards zero and since d0 is negative except for
d = 0, the decrease is strict. 

Note that an attractive equilibrium is also asymptotically stable (as defined in [5]
or [1]).
Chapter 4

Reference Tracking

Normally, the steering wheel is used to control the front wheels of the car. To
control the trailer, the driver has to predict how it will react to different front
wheel angles. Because of the factors discussed in the previous chapter, this is
quite difficult.
In this chapter we try to make trailer reversing more like reversing without
a trailer. To achieve this we break the direct link between steering wheel and
front wheels. Instead, the steering wheel will be used to provide a reference signal
for some appropriate output. Different outputs are tested. In Section 4.1, two
controllers for the car-trailer angle γ are designed, and in Section 4.2, a controller
for the trailer turning radius. Experiences from test driving are presented in
Section 4.4 and in Section 4.5, some alternatives to reference tracking controllers
are discussed.
It could be argued that this approach is misguided, that it will change the
steering characteristics too much and confuse the driver. Even if this is true, it
is interesting to test reference tracking systems. The reason is that they let us
examine, more generally, the possibility of controlling a car-trailer system. The
experiences can then be used for more intricate control schemes or, as in Chapter 6,
for autonomous steering.

4.1 Controlling γ
Since the car-trailer angle, γ, is measured, that is perhaps the most natural choice
of output. To turn left, the driver steers left, indicating that he wants a positive
angle between car and trailer.
In Chapter 2 we found the differential equation, describing how the trailer
angle depends on the steering input. Although this equation is nonlinear, a lin-
ear controller would probably work. However, because of the nonlinearity, the
effectiveness of such a controller could depend on the trailer length. It seems
more satisfactory to use nonlinear controllers. In the following sections we try
input-output linearization and optimal feedback.

15
16 Reference Tracking

4.1.1 Input-Output Linearization


As discussed in Chapter 3, for each car-trailer angle γ there is a balancing front
wheel tangent ueq (γ). To increase γ we need to make u < ueq (γ) and opposite to
decrease γ. Thus, any controller for γ should work around this equilibrium. One
way to obtain such a controller is input-output linearization (described in [1]).
Input-output linearization is based on the fact that linear systems are rather
easy to control. To control a nonlinear system like ours
 
1 l12 1
γ0 = − + cos γ u + sin γ,
l1 l1 l 2 l2

we first fake a linear system by adding a kind of filter. Choosing


1
−w + l2 sin γ
u= 1 l12
, (4.1)
l1 + l1 l2 cos γ

yields
γ 0 = w as long as |u| ≤ ubd
which is, within the bounds, a linear system from the new input signal w to
the output γ. This linear system can be controlled with a normal P-controller,
w = K1 (rγ − γ), where rγ is the reference value for γ. All combined, we get the
controller
l1 sin γ K10 (γ − rγ )
u= + . (4.2)
l2 + l12 cos γ l2 + l12 cos γ
To examine the stability of the controlled system, we assume that the reference
value is kept constant rγ = R ∈ (−γjk , γjk ). This yields an autonomous differential
equation
γ 0 = K1 (R − γ), |u| ≤ ubd , (4.3)
with one equilibrium γ = R.

Proposition 4.1 The equilibrium γ = R is attractive (and asymptotically stable)


in (−γjk , γjk ).

Theorem 3.2 states that the system is attractive if γ 0 switches sign at the equi-
librium (and has no other zeros). It is pretty obvious that this is the case for
(4.3).

4.1.2 Optimal Feedback


Another approach to nonlinear control is optimal control. In optimal control we
seek a control law that minimizes some criterion. Choosing this criterion is no exact
science, but adjusting the criterion can often be more intuitive than adjusting the
parameters of a controller. In this section we try a certain kind of optimal control
called optimal feedback. The theory can be found in [1].
4.1 Controlling γ 17

The system we want to control is described by


 
0 1 l12 1
γ (σ) = − + cos γ(σ) u(σ) + sin γ(σ) = f (γ, u).
l1 l 1 l2 l2
The criterion we want to minimize is a special case of the criterion in (18.68) in [1].

Z∞
min L(u(σ), γ(σ)) dσ (4.4a)
τ
γ̇ = f (γ, u) (4.4b)
u(s) ∈ U = [−ubd , ubd ] (4.4c)
γ(0) = z (4.4d)

Getting a good controller is a question of choosing L(u, γ). Clearly, γ should track
its reference value, rγ and hence we put a term (γ − rγ )2 in L.

L(u, γ) = (γ − rγ )2 + . . .

Furthermore, we want the steering to feel smooth. To ensure this we add a term
(u − ueq (γ))2 , where ueq refers to the current equilibrium. Recall the definition
from Section 3.1,
l1 sin γ
ueq (γ) = .
l2 + l12 cos γ
Further, we need some way to adjust the trade-off between reference tracking and
smoothness, so we also introduce a design parameter K2 > 0,
K22 1
L(u, γ) = (γ − rγ )2 + (u − ueq (γ))2 . (4.5)
2 2
We now seek a control law that is optimal for this criterion. Again, the theory can
be found in [1]. A central roll is played by the optimal return function
Z∞
V (τ, z) = L(u∗ , γ ∗ )dσ,
τ

∗ ∗
where u and γ refer to functions satisfying (4.4).
Since the interval is infinite and all functions are position invariant the optimal
return function must also be independent of the starting position τ . This means
that
Vτ0 ≡ 0 and V (τ, z) = V (z).
We get the Hamilton-Jacobi equation

0 = min Vz0 (γ) f (γ) + L(u, γ) =


u
   
0 1 l12 1
= min Vz (γ) − + cos γ u + sin γ + L(u, γ).
u l1 l1 l2 l2
18 Reference Tracking

The minimum can be found by completing the square. It is attained for


 
l1 sin γ 1 l12
u= + Vz0 (γ) + cos γ .
l2 + l12 cos γ l1 l 1 l2
Note that the bounds on the input could easily have been included here. If the
minimizing u is too large, it is optimal to choose the biggest possible u = ±ubd .
Reinserting the new expression yields the equation
2
K2

1 0 2 1 l12
− Vz (γ) + cos γ + 2 (γ − rγ )2 = 0
2 l1 l1 l2 2
with the solutions
γ − rγ
Vz0 (γ) = ±K2 .
1
l1 + ll112l2 cos γ
The definition of V (γ), excludes the negative sign, which gives us the optimal
controller
l1 sin γ
u= + K2 (γ − rγ ). (4.6)
l2 + l12 cos γ

4.1.3 Comparing the γ-controllers


The controllers from the previous sections, (4.2) and (4.6), are very similar. This
inspires a closer look at the optimality of linearizing controllers.
By definition, input-output linearization creates a linear system from output
signal to a new input signal. In our case we got
γ 0 (σ) = w.
To control this new system, we used a (linear) P-controller. According to the
theory of linear quadratic control (compare Chapter 9 in [1]), such a controller is
optimal for a linear quadratic criterion
Z∞  2 
K1 1
min (γ − rγ )2 + w2 dσ.
w 2 2
0

Solving (4.1) for w we get


   
1 l12 1 1 l12
w=− + cos γ u + sin γ = − + cos γ (u − ueq (γ))
l1 l1 l 2 l2 l1 l1 l 2
and the criterion
Z∞ 2 !
K12

1 1 l 12
min (γ − rγ )2 + + cos γ (u − ueq )2 dσ,
u 2 2 l1 l1 l2
0

which is almost the same criterion as the one we chose for the optimal feedback.
(Note that to some extent this discussion could be repeated in a multi-variable
case.)
Since the difference between the controllers is so small, the work we did on
optimal feedback can be seen mainly as a motivation for the linearizing controller.
4.2 Controlling the Turning Radius 19

4.2 Controlling the Turning Radius


A drawback of controlling γ is that the transient behaviour of the trailer can be
somewhat unpredictable. The reason is that the actual movement of the trailer is
not regarded. Sometimes a controller for the turning radius of the trailer might
be better. In this section we construct such a controller.
In Appendix A.2 an expression for the turning radius, ρT , is derived, or rather
an expression for the curvature

1 l1 sin γ − l12 u cos γ


κ=± = . (4.7)
ρT l1 l2 cos γ + l12 l2 u sin γ

Since the curvature is not measured, it cannot be controlled using standard meth-
ods. Instead we try a kind of predictive control choosing the control signal that,
according to the model, should give the desired output.
Let rκ be the reference value for κ. To find the value of u that will give the
desired curvature, we put κ = rκ , in (4.7) and solve for u. This gives us the control
law
l1 tan γ − l2 rκ
u = g(rk , γ) = . (4.8)
l12 1 + l2 rκ tan γ
Note that the controller has a discontinuity. At l2 rκ tan γ = −1 the denominator
turns zero and u switches sign. Remembering that u = tan δF , we understand that
the controller switches between δF = π/2 and δF = −π/2, that is, the wheels are
supposed to turn from full right to full left. Though this is mathematically correct,
it is naturally undesirable in practice. Moreover, the front wheel angle can never
become larger than δFbd , corresponding to u = ubd = tan δFbd . This maximum is
attained for
l1 tan γ − l12 ubd
rκ = .
l1 l2 + l2 l12 ubd tan γ
We modify the controller accordingly. The modified controller is u = h(rκ , γ),
with
l1 tan γ − l12 ubd
h(rκ , γ) = ubd when rκ ≤ , (4.9a)
l1 l2 + l2 l12 ubd tan γ
l1 tan γ + l12 ubd
h(rκ , γ) = −ubd when rκ ≥ (4.9b)
l1 l2 − l2 l12 ubd tan γ
and otherwise
l1 tan γ − l2 rκ
h(rκ , γ) = g(rκ , γ) = . (4.9c)
l12 1 + l2 rκ tan γ
Now we would like to check if this controller will actually stabilize the trailer.
First we need to find the equilibria of the system. Since we are only interested in
equilibria γ ∈ (−γjk , γjk ), where |ueq (γ)| < ubd , the saturation in (4.9) is of no
interest. Thus, we insert (4.8) in the differential equation (3.1),
 
0 1 1 tan γ − l2 rκ 1
γ =− + cos γ + sin γ.
l12 l2 1 + l2 rκ tan γ l2
20 Reference Tracking

In equilibrium γ 0 = 0, so
1
(sin γ − l2 rκ cos γ) − rκ cos2 γ = rκ sin2 γ
l12
and
sin γ
rκ = . (4.10)
l12 + l2 cos γ
This relation shows us that if the reference value rκ gets too large, the controller
will steer towards an equilibrium γ > γjk , and cause the trailer to jackknife. To
prevent this the reference value has to be kept within the bound
sin γjk
|rκ | < rκbd = .
l12 + l2 cos γjk
Now that we have found a relation that describes the equilibria of the controlled
system, we go on to check the stability of these equilibria. As commented in
Section 3.4, stability is defined for autonomous differential equations. As in that
section, we get an autonomous equation by assuming a constant input signal.
In this case we assume that the reference signal is kept constant rκ = R, with
|R| < rκbd . We write the resulting differential equation

γ 0 = fR (γ) (4.11)

where the R indicates that we get a different equation for each value of R. The
autonomous equation has only one equilibrium Γ ∈ (−γjk , γjk ).

Proposition 4.2 The equilibrium Γ is attractive (and asymptotically stable) in


(−γjk , γjk ).
We will divide the proof of this assertion in three steps. First recall the definition
of g in (4.8) and the defintion of h in (4.9).

Lemma 4.1 For two equilibria R1 , Γ1 and R2 , Γ2 with Γ1 < Γ2 and Γ1 , Γ2 ∈


(−γjk , γjk ), it holds that

(i) h(R1 , Γ2 ) > h(R2 , Γ2 )

(ii) h(R2 , Γ1 ) < h(R1 , Γ1 )


Proof (of (ii)) First, note that h(rκ , γ) = g(rκ , γ) or h(rk , γ) = ±ubd . Since
l1 1 + tan2 γ
gr0 (rκ , γ) = − < 0,
l12 (1 + l2 rκ tan γ)2

we know that h0r ≤ 0.


Further, for an equilibrium Γ1 ∈ (−γjk , γjk ), the corresponding input u = h(R1 , Γ1 )
will be smaller than the maximum input |u| < ubd . Compare with Section 3.3. Thus the
equilibrium lies in an interval where h is strictly decreasing.
Now, (4.10) shows that R2 > R1 . Since h is decreasing everywhere and strictly
decreasing around R1 , h(R2 , Γ1 ) < h(R1 , Γ1 ). 
4.3 Anti-Jackknifing 21

Next we define  
1 l12 1
f (γ, u) = − + cos γ u + sin γ
l1 l 1 l2 l2
noting that (4.11) can be written

γ 0 = fR (γ) = f (γ, h(R, γ))

Lemma 4.2 For the same R1 , Γ1 and R2 , Γ2 as earlier,

(i) f (Γ2 , h(R1 , Γ2 )) < 0

(ii) f (Γ1 , h(R2 , Γ1 )) > 0

Proof (of (ii)) First note that, since R1 , Γ1 is an equilibrium


f (Γ1 , h(R1 , Γ1 )) = 0.

Further, we note that


„ «
1 l12
fu0 (γ, u) = − + cos γ < 0.
l1 l1 l2

From Lemma 4.2 we know that h(R2 , Γ1 ) < h(R1 , Γ1 ) and consequently,

f (Γ1 , h(R2 , Γ1 )) > f (Γ1 , h(R2 , Γ1 )) = 0

Proof (Proposition) To use Theorem 3.2, we need to prove that for γ ∈ (−γjk , γjk )
γ > Γ ⇒ fR (γ) < 0

γ < Γ ⇒ fR (γ) > 0.


This follows from Lemma 4.2 after noticing that each γ ∈ (−γjk , γjk ) corresponds to an
equilibrium with
sin γ
rκ = .
l12 + l2 cos γ


4.3 Anti-Jackknifing
As discussed in Chapter 3, one of the disturbing characteristics of a car-trailer
system, is its tendency to jackknife. A strength of the reference tracking controllers
is that jackknifing can be prevented. All we need to do is bound the reference
values. For the γ-controllers, the obvious bound is

|rγ | < γjk .


22 Reference Tracking

In case of the turning radius controller the bound has already been mentioned,
but we repeat it here
sin γjk
|rκ | < rκbd = .
l12 + l2 cos γjk

In practice it would, of course, be necessary to have a safety margin, staying well


below these limits, but even so jackknifing could occur. The reason is the bounds
on the angular speed of the AFS electric motor. At higher vehicle speeds the motor
might not be able to provide the superposition angles needed to avoid jackknifing.
In a commercial system, it could therefore be necessary to limit the vehicle speed
when the system is active.

4.4 Test Driving


To examine the characteristics of the controllers designed earlier in this chapter,
they were tested in a prototype car with AFS. Of the two γ-controllers, only the
linearizing controller from Section 4.1.1 was tested.
First a few words on the subject of the next chapter are necessary. The testing
of the reference tracking controllers was made difficult by the torque feedback in
the steering wheel. The feedback causes the steering wheel to feel unstable and
it gets hard to steer. Though this strange steering wheel feel was hard to ignore
completely, it was possible to get a good idea of how well the reference tracking
controllers work.
In the previous sections, we proved stability for our controllers. In practice
this was tested by driving with a constant reference value (steering wheel angle).
The clear result was that both the controllers do stabilize the trailer, at least for
speeds up to 25–30 km/h. (Higher speeds were not tested.) The stability was very
useful when making a turn. You only had to turn the steering wheel once and
then hold it instead of the customary turning back and forth.
Limiting the reference value (as discussed in the previous section), was effective
for avoiding jackknifing. The limits to the speed of the electric motor seem to have
little effect in normal driving situation, that is, at normal speeds.
Though these results are fine, the important question remains. Do the con-
trollers make it easier to reverse with a trailer? At least there are advantages,
no instability, no left-right steering and no risk of jackknifing, but there are prob-
lems too. Apart from the torque feedback, some drivers were confused by the fact
that they now control the trailer rather than the car. Not counting the author,
eight persons tested these controllers (some only a short time). Of these five were
decidedly positive, two negative and one not quite certain.
To conclude this section, we present two plots from test drives. Figure 4.1
shows how the car-trailer angle tracks its reference value when using the linearizing
controller. Figure 4.2 shows slalom driving with and without control. It should be
mentioned that the driver had been using the controller for about five minutes.
4.5 Alternatives 23

0.6

0.4
γ [rad]

0.2

−0.2
0 10 20 30 40 50 60 70 80
Time [s]

Figure 4.1. Steering wheel reference signal (solid) and car-trailer angle γ (dashed),
when using the linearizing γ-controller.

meter

10

−5

−10

0 10 20 30 40 50 60 70 80 meter

Figure 4.2. Backwards slalom driving with (dashed) and without controller.

4.5 Alternatives
In this section, we discuss a few alternatives to the reference tracking controllers
that we covered earlier in this chapter.

4.5.1 Error Correction


A rather common approach to automotive control is to intervene only when the
driver has done something wrong. A similar idea is used, successfully, in systems
like ESP (Electronic Stability Program). There, the rather safe assumption is that
most drivers do not want to lose control of their car. Unfortunately, it seems harder
to make any assumptions concerning trailer reversing. In the right situation, any
action (even jackknifing) can be desired. Estimating if a certain action was desired
or a mistake seems very difficult. This approach is not discussed in this thesis.
24 Reference Tracking

4.5.2 Modified Steering Characteristics


A problem with the reference tracking controllers is that they dramatically change
the steering characteristics of the car. In this section a more conservative approach
is presented.
The approach is inspired by the fact that a long trailer is easier to reverse
(though naturally demanding more space). The reason is that the trailer angle
changes more slowly for a long trailer, giving the driver more time to think. It
would be possible to obtain the same effect using active steering. The principle
is quite simply to make the steering gain less direct around the stabilizing angle.
Figure 4.3 shows the steering ratio with and without such a modification. The
result is that small deviations around the stabilizing angle have less dramatic
effects.

0.6
Front wheel angle, δF

eq

−0.6
−π 0 π
Steering wheel angle

Figure 4.3. Steering ratio with (solid) and without control.

This approach was also implemented and tested. It was most effective when
making a turn to, for example, park. When trying to drive straight backwards it
provided little or no help. A variant is to use a γ-controller for reversing straight,
and modified characteristics in all other driving situations.

4.5.3 Assisting Steering Wheel Torque


If active steering is combined with electric (rather than hydraulic) power steering,
it is possible to simultaneously control the front wheel angles and the steering
wheel torque. This opens for new assistance methods. A nice approach might be
to keep the normal relation between steering wheel and front road wheel, but use
the steering wheel torque to gently guide the driver to the current equilibrium.
The idea is that the driver shall know where the equilibrium is.
One way to obtain this effect is to feed a γ-controller with the current car-trailer
angle as reference value. The output of the controller will be the balancing front
wheel angle. A drawback is that since the balancing angle cannot be calculated
exactly, γ might change slowly. To avoid this some kind of memory could be used
when deciding the input to the γ-controller. The aim is that if the driver lets go
of the steering wheel the controller should stabilize the trailer autonomously.
Chapter 5

Steering Wheel as Reference

Our assistance functions are meant to assist drivers not used to reversing with a
trailer. The aim was therefore to make it as similar as possible to reversing without
trailer. That means that turning the steering wheel to the left should cause the
trailer to go left. In Section 3.2 we called this left-left steering. This turned out
to work poorly with AFS.
With AFS the torque needed to turn the front wheels will cause an opposing
torque in the steering wheel. Normally, turning the steering wheel to the left will
cause the wheels to go left and the opposing torque in the steering wheel will tend
to decelerate the steering wheel movement.
However, when reversing with a trailer the front wheels initially have to turn
right for the trailer to move left. The torque in the steering wheel will therefore
tend to accelerate the steering wheel movement. This makes it very hard to steer.
In this chapter, we analyse the torque feedback problem using linear models of
the involved systems. In Section 5.1 we show that left-left steering will cause the
steering to become unstable, while left-right steering creates a stable system. The
theoretical possibility of solving this problem, is explored in Section 5.2. Finally,
we look at a few methods to make the instability less disturbing (Section 5.3).

5.1 Linear Analysis


In this section we examine the effect of using a normal P-controller to control the
trailer. Linear models of both the steering and the car-trailer system are used.
We show that though the car-trailer system can be stabilized with a P-controller,
left-left steering will make the complete system unstable.
We start by linearizing our nonlinear car-trailer model around (γ, δF ) = (0, 0),
 
0 1 l12 1
γ =− + cos γ tan δF + sin γ
l1 l1 l 2 l2
 
1 l12 vR ∆
≈ + δF − γ = −b δF + a γ.
l1 l1 l 2 l2

25
26 Steering Wheel as Reference

Laplace transformation gives us the transfer function between δF and γ


b
G(s) = − .
s−a
Now assume that an independent reference value rγ is provided somehow, and that
we use a P-controller δF = K(rγ + γ). Then the transfer function for the closed
loop system,
Kb
Gc,0 (s) =
s−a−Kb
is stable. Thus it is possible to stabilize the trailer using P-control, but what
happens when we also include the steering. To try this we need a model from the
input torque of the driver, T , to the steering wheel angle.
The feedback torque, Tf , in the steering wheel is approximately proportional
to the angular velocity of the front wheels, δ̇F . Thus,

Tf = −k δ̇F ⇒ E(s) = −k s.

Assuming that friction in the steering shaft can be ignored, the steering wheel
angle, δS , follows
J
δ̈S = J (T + Tf ) ⇒ H(s) = 2 .
s

E(s) 

Tf
? 
T - Σ - H(s) - Fr (s) - Σ - G(s) -γ
 δS  δF
6

Fγ (s) 

Figure 5.1. Block diagram showing the linear model used to analyse the torque feedback.
The input is the driver’s steering wheel torque, T , and the output is the car-trailer angle,
γ. Note the undesired loop created by E(s).

Now, we have a model from driver input to trailer angle (see Figure 5.1). To
examine stability we calculate the transfer function, GC (s), from driver torque, T ,
to trailer angle, γ,
Fr G sJ2
GC (s) = .
1 − Fr sJ2 k s − Fγ G
From test drives we know the nice properties of left-right steering. Are they also
reflected in this linearized model? First look at proportional control, Fr = Kr > 0,
5.2 Stabilizing the Steering Wheel 27

Fγ = Kγ > 0. Note that a positive steering wheel angle will give a negative trailer
angle. We get the transfer function
−Kr b J 1
GC (s) =
s2 + (Kγ b − Kr J k − a) s + Kr Jkb s
and the system poles (not counting the integration)
r
1 1
s = − (Kγ b − Kr Jk − a) ± (Kγ b − Kr Jk − a)2 − Kr Jkb.
2 4
For small positive Kr , the system is stable (apart from the integration), but if Kr
gets too large the system will become oscillating or even unstable.
To get left-left-steering instead, we use the controller Fr = −Kr . We then get
the transfer function
Kr b J 1
GC (s) =
s2 + (Kγ b + Kr Jk − a) s − Kr Jkb s
and the poles
r
1 1
s = − (Kγ b + Kr Jk − a) ± (Kγ b + Kr Jk − a)2 + Kr Jkb.
2 4
Now, the square root is always greater than the first term, and thus there will
always be at least one unstable pole.

5.2 Stabilizing the Steering Wheel


In the last section we found that P-control combined with left-left steering will
make the steering unstable. A natural question is if it is possible to construct a
controller that, while keeping left-left steering, creates a stable system. The aim
of this section is to examine this possibility.
The front wheels has to react fairly quickly to the driver’s actions, at least a
lot quicker than the trailer. Therefore it is not unreasonable to assume constant
trailer angle in these discussions.

5.2.1 No Steering Shaft Friction


The task is thus to construct a controller from steering wheel angle to front wheel
angle. From Figure 5.1 we get

δF (s) = Fr (s) H(s) (T + Tf ) + Fγ (s) γ(s)


= Fr (s) H(s) T + Fr (s) H(s) E(s) δF (s) + Fγ (s) γ(s).

As discussed earlier the feedback through γ is disregarded. The system we want


to stabilize can thus be described by the transfer function
Fr (s) H(s)
GS (s) = .
1 − Fr (s) H(s) E(s)
28 Steering Wheel as Reference

Consider a proper linear controller


P (s)
Fr (s) = .
Q(s)
With functions H(s) and E(s) from the last section, the transfer function for the
steering is
P (s) J 1
GS (s) =
s Q(s) + Jk P (s) s
and the poles are given by

R(s) = s Q(s) + Jk P (s) = 0.

We can always choose to have Q(0) > 0. If we want the controller to be stable
in itself, Q(s) cannot have any zeros in the right half plane, which means that
Q(s) → ∞ when s → ∞. To get left-left-steering, the steady state gain must be
negative. That is, when steering left, the front wheels turn right. Since
P (0)
0 > Fr (0) =
Q(0)
we get P (0) < 0. This means

R(0) = 0 · Q(0) + Jk P (0) < 0

and
R(s) → ∞ when s → ∞.
Since R(s) is continuous, this implies that R(s) has a real positive zero. The
conclusion is that there is no stable linear controller that can locally stabilize the
system.

5.2.2 With Steering Shaft Friction


In a real car, there will be some friction in the steering shaft, though not very
much. In this case
J
H(s) = 2
s + sµ
and the transfer function for the steering
P (s) J 1
GS (s) = .
(s + µ) Q(s) + Jk P (s) s
With the same argument as in the previous section, we find that for any stable,
linear controller it must hold

µ Q(0) + Jk P (0) ≥ 0

which means
P (0) µ
Fr (0) = ≥− . (5.1)
Q(0) Jk
5.3 Limiting Instability 29

Since there is very little friction in the steering shaft, µ is small and thus this is a
hard restraint. The only ways to get stability is left-right steering (Fr (0) < 0), or
with a very indirect steering ratio. The latter means that the driver will have to
turn the steering wheel a lot to get the desired reaction.

5.3 Limiting Instability


Though the analysis in the previous section, uses a very simplified linear model
and only concerns linear controllers, its result are probably valid. It is probably
very difficult or impossible to get accaptable steering characteristics with left-left
steering. This does not mean that the reference tracking controllers are useless
though. We have already mentioned that if AFS is combined with electric power
steering it is possible to control the front wheel angle and steering wheel torque
simultaneously.
Until then we try making the instability less disturbing. There are a few
approaches.
• The most straightforward solution is probably to decrease the steering ratio.
If it is made low enough the steering should become stable, but then the
steering ratio is unacceptably low.
• Another approach is to limit how fast the wheels turn, thereby limiting
the steering wheel torque. This could be done by low pass filtering. The
experience from test drives is that the controller will feel very slow long
before the steering feels stable.
• The nice properties of the left-right steering inspired a compromise. Allowing
locally inverted steering it should be possible to stabilize the steering wheel
while keeping the left-left-steering. An example is given by the following
relation between steering wheel angle, and the reference signal, r (Figure
5.2).
Reference signal, r

Steering wheel angle

Figure 5.2. Relation between reference signal and steering wheel angle.

Practically, this means that the front wheels move back and forth. The
major drawback is that the steering feels uneven.
30 Steering Wheel as Reference
Chapter 6

Autonomous Steering

In this chapter we look at the concept of autonomous steering. The aim is to


design a trajectory tracking controller. This controller can then be used with
different trajectories. Two examples are given in Section 6.4. We also look at the
problem of saving a trajectory when driving forward, in order to track it backwards
(Section 6.3).

6.1 Tracking
Let us assume that we know the current position of car and trailer, as well as the
desired trajectory. How do we track it? Most trajectory tracking schemes in the
literature seem to involve some kind of prediction control. The path is predicted
for a couple of different input values and the different paths are evaluated. In
our case, this would mean solving our nonlinear differential equation in each step.
Since we have very limited computing capacity in the car, this would not work.
We need a simpler control scheme.
When driving forward with a trailer, you mostly only consider the movement
of the car, expecting the trailer to follow. The principle is illustrated in Figure 6.1.
The driver indicates with the steering wheel how much he wants the car to turn.
Since the system from car movement (turning radius) to trailer angle is stable, the
trailer will follow the car in a nice way.

car
position
- -
desired driver - car-trailer
- δF system -
path
car-trailer
stable angle

Figure 6.1. Driving forward with a trailer.

31
32 Autonomous Steering

In Section 4.2, we showed that controlling the turning radius of the trailer
would also stabilize the trailer angle, γ. This result inspires the trajectory tracking
scheme in Figure 6.2. Comparing the current trailer position with the desired
path, an autonomous steering function decides an appropriate turning radius for
the trailer. To obtain this turning radius, the radius controller from Section 4.2 is
used. Since this also stabilizes the car-trailer angle, the car position can normally
be disregarded.

........................................................................
.... .... trailer
-
autonomous .... - .... position
.... ....
desired
-
path
- function rκ ....
radius - car-trailer
....
.... - controller system .... -
.... .... car-trailer
.... .... angle
..........................................................................
.. ....
stable

Figure 6.2. Trajectory tracking scheme.

Next, we need a way to decide the appropriate turning radius, given the desired
path and the current trailer position. It seems natural to consider the point on the
trajectory that is closest to the current position as our desired position. We define
dpos as the deviation from the desired position, and dψ as the deviation from the
desired orientation of the trailer (as an angle). Ideally dpos and dψ are both zero.
The appropriate turning radius for the trailer is then given by the curvature of the
trajectory,
rκ = κtraj .

If the deviations are not zero the turning radius should be adjusted accordingly,

rκ = κtraj ± K1 dpos + K2 dψ ,

where the sign in front of K1 dpos depends on whether the current position is to
the left or to the right of the desired path.

6.2 Positioning
Our only way to decide the position of the trailer is to calculate from measurements
of rear wheel speed, vR , front wheel angle, δF and car-trailer angle, γ. For this
purpose we will use the model from Section 2.5. We define the initial position and
orientation of the car as zero.

x̂1 (0) = ŷ1 (0) = ψ̂1 (0) = 0,


6.3 Saving a Trajectory 33

In each sample we calculate a new position using

x̂1 (k + 1) = x̂1 (k) + h vR (k) cos ψ̂1 (k)


ŷ1 (k + 1) = ŷ1 (k) + h vR (k) sin ψ̂1 (k)
vR (k)
ψ̂1 (k + 1) = ψ̂1 (k) + h tan δF (k),
l1

where h is the sample time. The trailer position can then be decided using the
geometric relations from Section 2.3.

x̂2 = x̂1 − l12 cos ψ̂1 − l2 cos ψ̂2


ŷ2 = ŷ1 − l12 sin ψ̂1 − l2 sin ψ̂2
ψ̂2 = ψ̂1 − γ.

6.3 Saving a Trajectory


We now have a controller to track a given trajectory, but we have yet to decide how
to represent and store such a trajectory. The choice of representation is especially
important when the trajectory is being saved while driving.
A nice choice of representation would be to use some kind of local polynomials,
like splines. That way curvature, direction and position of the trajectory would fit
together. However, finding appropriate polynomials given the sampled position of
the trailer seems difficult. For example, spline interpolation involves solving large
matrices in real-time. Again, this might be a bit too much for the computing unit
of the car.
Instead, we choose to save curvature, orientation angle and position at certain
points. Between these points we use linear interpolation to get a trajectory. This
makes computations easy and all signals continuous.
More accurately, we save the trailer position and angle in points with equal
distances, Ti . With distance we here mean distance in space, not in time. In those
same points the current curvature of the trailer is calculated from measurements
using (4.7). When tracking the trajectory, two points Ti and Ti+1 are active at
each moment in time. The trajectory is represented (locally) by the line

r(τ ) = (1 − τ ) rR R
Ti O + τ rTi+1 Ti .

The point on this line that is closest to the current trailer position is considered our
desired position. With the corresponding value of τ , we calculate desired values
for ψ and κ.
This method seems to work well in practice. Figure 6.3 compares the saved
forward trajectory to the trajectory chosen by the controller. Note that the trailer
positions in the plot are estimated. Errors in the estimation are not regarded, but
other tests imply that they are quite small.
34 Autonomous Steering

meter

−2

−4

−6

−8

−10
−5 0 5 10 15 20 25 meter

Figure 6.3. Tracking a saved trajectory. The solid line is the trajectory saved when
driving forward, and the dashed line shows how the controller tracks this trajectory when
reversing.

6.4 Special Trajectories


Except for tracking a saved trajectory, the tracking controller can be used with
some constant standard trajectories. Figure 6.4 shows the tracking of a parking
trajectory. This example shows one of the strengths of the control approach.
An initial oversteer is noticed and compensated by the controller. The result is
that the trailer is parked nicely in the correct position. The trajectory tracking
controller can also be used for reversing along a straight line.

meter

−2
−35 −30 −25 −20 −15 −10 −5 meter

Figure 6.4. Tracking a parking trajectory.


Chapter 7

Conclusions and Future


Work

7.1 Modelling
In Chapter 2 we derived a simple model for car and trailer. Data from test drives
shows that the model works well for low speeds. We can also note that the model
reflects several of the system characteristics that we know from practice. If a model
for higher speeds is required, the one in Appendix C can be used, but first it has
to be validated and the parameters in it have to be estimated.
To enable use with different trailers, a method to estimate the trailer length
was presented in Section 2.7. Initial tests imply that it is effective, but more tests
are desirable. It would also be interesting to see how sensitive the controllers are
to errors in the trailer length. Perhaps it would be possible to start the controllers
with a guessed trailer length and then switch to the estimated value when the
estimation is done.

7.2 Reference Tracking Controllers


In Chapter 4, a few reference tracking controllers were designed. It was shown
theoretically and in test drives that the controllers could stabilize the trailer. It
was also possible to get left-left steering and to avoid the risk of jackknifing.
Due to the torque feedback discussed in Chapter 5, the reference tracking
controllers are not appropriate for use with AFS as it works today. However,
the problem with the feedback can be solved by adding a brake or electric power
steering. It would be interesting to test the controllers with such a solution.
The question is how many would prefer the controlled system to driving without
assistance.
With electric power steering, it would also be possible to test the potential of
an assisting steering wheel torque (see Section 4.5.3).

35
36 Conclusions and Future Work

7.3 Trajectory Tracking


In Chapter 6 methods to save and track a trajectory was discussed. The basis
for the trajectory tracking was the turning radius controller from Chapter 4. In
test drives we saw that the trajectory tracking seems to work nicely. With small
adjustments it could be used for presentational purposes.
It would be worth to work more on the parking function. Using sensors to
measure the distance to surrounding cars, it would be possible to adapt the tra-
jectory accordingly. That would create a truly useful assistance function.
Appendix A

Derivations

A.1 Deriving the Differential Equations


The purpose of this section is to derive differential equations describing the car-
trailer system, from the constraint equations in Sections 2.3 and 2.4. From (2.4b)
and (2.5) we get the relations

ẋ1 = vR cos ψ1

ẏ1 = vR sin ψ1
Differentiating (2.2a), (2.2b) and combining them with (2.4a) we get

l1 ψ̇1 sin ψ0 sin ψ1 + l1 ψ̇1 cos ψ0 cos ψ1 − sin ψ0 ẋ1 + cos ψ0 ẏ1
= l1 ψ˙1 cos (ψ0 − ψ1 ) − ẋ1 sin ψ0 + ẏ1 cos ψ0 = 0

Using (2.1) and the newly found expressions for ẋ1 and ẏ1 we can rewrite this

l1 ψ̇1 cos δF = vR sin δF .

For |δF | < π/2 this can be rewritten


vR
ψ̇1 = tan δF .
l1
(A model that can handle δF = π/2, should be based on the speed of the front
wheels rather than that of the rear wheels.) Differentiating (2.3a) and (2.3b) and
combining them with (2.4c) we get
vR l12 vR
ψ̇2 = − cos γ tan δF + sin γ.
l1 l2 l2
The derivative of the trailer angle γ is simply
 
vR vR l12 vR
γ̇ = ψ̇1 − ψ̇2 = + cos γ tan δF − sin γ.
l1 l1 l 2 l2

37
38 Derivations

A.2 Deriving the Trailer Velocity


For the design of the controller in Section 4.2 we needed an expression for the
turning radius of the trailer. Since the angular velocity is already known we only
need the forward velocity, that is

ẋL R R
P2 O = cos ψ2 · ẋP2 O + sin ψ2 · ẏP2 O .
2

Using (2.3a) and (2.3b) we find

ẋL
P2 O = ẋ1 · cos ψ2 + ẏ1 sin ψ2 + l12 ψ̇1 sin γ.
2

Using the equations from the previous section this can be rewritten
vR l12
ẋL
P2 O = vR cos γ +
2
tan δF sin γ.
l1
A reasonable measure for the turning radius, ρT , of the trailer is given by the
curvature, κ

ψ̇2 1 l1 sin γ − l12 tan δF cos γ


κ= L2
=± = .
ẋP2 O ρT l1 l2 cos γ + l2 l12 tan δF sin γ

Notice that the curvature is positive when turning left and negative when turning
right.
Appendix B

Model with Lateral Slip

In this section we derive a model that includes lateral wheel slip. The mechanical
laws that are needed can be found in any textbook on mechanics, for example [4].
We use the coordinate frames from Section 2.2, but also introduce some new. To
get easier equations we build the model around the coordinates of the car hook
(x, y)T . We also introduce the longitudinal and lateral velocities of the towing
hook
vx = ẋ cos ψ1 + ẏ sin ψ1
vy = −ẋ sin ψ1 + ẏ cos ψ1 ,
and the accelerations
ax = ẍ cos ψ1 + ÿ sin ψ1
ay = −ẍ sin ψ1 + ÿ cos ψ1 ,
noting that
v̇x = ax + ω1 vy
v̇y = ay − ω1 vx .
Geometric constants l for the car, and λ for the trailer are defined as shown
Figure B.1. Furthermore, we define lC = lR + lCR , lF = lC + lC F and λR =
λC + λCR .
Our aim is to create a state space model, with inputs vx , v̇x , δF and state space
variables x, y, ψ1 , ψ2 , vy , ω1 and ω2 .

B.1 Slip Angles


Lateral slip is an effect of cornering. To turn, a car needs to be affected by lateral
forces. These are provided by the friction when the wheels slip.
We model each wheel pair with a single wheel placed on the central axis of the
car (or trailer). The slip angle, βi , is defined as the angle between the central axis
of the wheel and the actual direction of the wheel movement. For reasonably small

39
40 Model with Lateral Slip

..
..
..
.. .
.. ..
.. ..
.. ..
.. ...
rP
....
.. ..
.. .. ... 0
.. ... ..
.. .. ..
.. .. ..
..
.. . .. ..
..
.. ... .
..
..
. .
rC
.. ...
....
. ... 1 
.. .. .. .. . ..
.. .. ..
.. .. .. .. .. ..
.. .. .. .. .. ..
..
..
..
..
..
.. ..
.. ...
rP
....
.
..
..
l CF
.. .. ... .
.. .. .. ..
. .. ..1
.. .. .. .. .. ..
.. .. .. .. .. ...

Q .. .. ..
rP rC r Q r
.. ... l
.. . .. 2 ..
.. 2 ... 2 CR
...............................................................
.. ..
..
.. 1 ....... .
.. .. .. ... ...
.. .. .. . .. 
..
.. .. .. ..
..
..
..
..
..
..
..
.. l R
- ... ... - ...
.. .. ..
λCR λC

Figure B.1. Points in the different frames.

slip angles it is a good approximation to assume that the lateral friction force in
the tyre is proportional to the slip angle,
Fi = ki βi . (B.1)
A more thorough discussion of wheel slip and of tyre properties in general can be
found in [3]. Assuming that the wheels moved without lateral slip, gave us (2.4).
With a slip angle βi , similar derivations yield
− sin (ψi + βi ) ẋR R
Pi O + cos (ψi + βi ) ẏPi O = 0.

Using (2.2a) and (2.2b) from Section 2.3 and the definitions of vx and vy we get
vx vy
ω1 = tan (δF + β0 ) −
lF lF
and
vy + lR ω1 = vx tan β1 .
With these equations we can express β0 and β1 in terms of the state space variables,
 
lF ω1 + vy
β0 (z) = arctan − δF (B.2)
vx
 
vy + lR ω1
β1 (z) = arctan . (B.3)
vx
A similar expression can be derived for the trailer
 
vx sin γ + vy cos γ + λR ω2
β2 (z) = arctan (B.4)
vx cos γ + vy sin γ
From now on these expressions are intended when we write β0 , β1 and β2 .
B.2 Dynamics 41

B.2 Dynamics
In this section we use the basic laws of mechanics to derive the equations of motion
for car and trailer. For the coordinates of the car center of gravity, (xR R
C1 O , yC1 O ),
it holds that
xR
C1 O − lC cos ψ1 − x = 0
R
yC 1O
− lC sin ψ1 − y = 0
and for the trailer
x − λC cos ψ2 − xR
C2 O = 0
R
y − λC sin ψ2 − yC 2O
= 0.
Differentiating gives the corresponding relation of the accelerations. For the car

aC1 ,y = ay + lC ω̇1

and for the trailer


ẍ cos ψ2 + ÿ sin ψ2 + λC ω22 = aC2 ,x
−ẍ sin ψ2 + ÿ cos ψ2 − λC ω̇2 = aC2 ,y .
Together with the definitions of ax and ay , this yields

aC2 ,x = ax cos γ − ay sin γ + λC ω22

aC2 ,y = ax sin γ + ay cos γ − λC ω̇2 .


For the centers of gravity, we can use Newton second law of motion, F = ma. For
the car, we only look at the lateral axis, since longitudinal movement is considered
a measured input. The external forces in this case are the slip forces from the
wheels and the lateral force that the trailer causes Fy1 . This gives us

Fy1 = m1 aC1 ,y = m1 ay − k0 β0 cos δF − k1 β1 + m1 lC ω̇1

For the trailer the external forces are the slip force (along the lateral axis) and the
car pulling force. We define Fx2 as the longitudinal pulling force and Fy2 as the
lateral, noting that
Fx2 sin γ − Fy2 cos γ = Fy1 . (B.5)
For the trailer Newton’s law yields

Fx2 = m2 aC2 ,x = m2 ax cos γ − m2 ay sin γ + m2 λC ω22

Fy2 = m2 aC2 ,y = m2 ax sin γ + m2 ay cos γ − m2 λC ω̇2 − k2 β2 .


P
Euler’s equation J ω̇ = Mi gives us relations for the angular accelerations

J1 ω̇1 = lCF k0 β0 cos δF − lCR k1 β1 − lC Fy1

J2 ψ̈2 = λC Fy2 − λCR k2 β2 .


42 Model with Lateral Slip

Also using (B.5), we get


2
(J1 + m1 lC ) ω̇1 = (lCF + lC ) k0 β0 cos δF − (lCR + lC ) k1 β1 − m1 lC ay
(J2 + m2 λ2C ) ω̇2 = m2 λC ax sin γ + m2 λC ay cos γ − (λCR + λC ) k2 β2
Fy1 = −m2 ay + sin γ(m2 λC ω22 ) + cos γ(m2 λC ω̇2 + k2 β2 ).
Replacing Fy1 yields
(m1 + m2 ) ay =k0 β0 cos δF + k1 β1 + k2 β2 cos γ
− m1 lC ω̇1 + m2 λC ω̇2 cos γ + m2 λC ω22 sin γ. (B.6)
It remains to solve the following system
lCF + lC lCR + lC m1 l C
ω̇1 = 2 k0 β0 cos δF − J + m l2 k1 β1 − J + m l2 ay
J1 + m1 lC 1 1 C 1 1 C

m2 λC m2 λC λCR + λC
ω̇2 = 2 ax sin γ + 2 ay cos γ − k2 β2
J2 + m2 λC J2 + m2 λC J2 + m2 λ2C

(m1 + m2 ) ay =k0 β0 cos δF + k1 β1 + k2 β2 cos γ


− m1 lC ω̇1 + m2 λC ω̇2 cos γ + m2 λC ω22 sin γ.
We get
m22 λ2C
 
m1 J1 m2 J 2
2 + + sin2 γ ay =
J1 + m1 lC J2 + m2 λ2C J2 + m2 λ2C
2
J1 − m1 lC lCF J1 + m1 lC lCR + 2 m1 lC
= 2 k0 β0 cos δ F + 2 k1 β1 +
J1 + m1 lC J1 + m1 lC
J2 − m2 λC λCR m22 λ2C
+ 2 k2 β2 cos γ + ax sin γ cos γ + m2 λC ω22 sin γ.
J 2 + m2 λ C J2 + m2 λ2C
From this we define f (z) so that
ay = f (z)
where z refers to the the state space variables. This gives us a state space model
of the system
ẋ = vx cos ψ1 − vy sinx
ẏ = vx sin ψ1 + vy cos x
ψ̇1 = ω1
ψ̇2 = ω2
v̇y = f (z) − ω1 vx
lCF + lC lCR + lC m1 l C
ω̇1 = 2 k0 β0 (z) cos δF − 2 k1 β1 (z) − 2 f (z)
J1 + m1 lC J1 + m1 lC J 1 + m1 l C
m2 λC m2 λ C λCR + λC
ω̇2 = ax sin γ + f (z) cos γ − k2 β2 (z).
J2 + m2 λ2C J2 + m2 λ2C J2 + m2 λ2C
Note that everything in these equations is either a constant or a function of the
state space variables.
Bibliography

[1] Glad, Torkel and Ljung, Lennart: Control Theory – Multivariable and
Nonlinear Methods, Taylor & Francis, 2000.
[2] Glad, Torkel and Ljung, Lennart: Modellbygge och simulering, Studentlit-
teratur, 2004.
[3] Wong, Jo Yung: Theory of Ground Vehicles, John Wiley & Sons, 2001.
[4] Hahn, Hubert: Rigid Body Dynamics of Mechanics – 1 Theoretical Basis,
Springer, 2002.
[5] Hansson, Kurt: Föreläsningar i ordinära differentialekvationer, 2005,
URL: http://www.mai.liu.se/˜kuhan/kurser/NMAC09/, 2005.
[6] Reinelt, Wolfgang; Klier, Willy; Reimann, Gerd; Schuster, Wolfgang and
Grossheim, Reinhard: Active Front Steering: Safety and Functionality,
SAE Paper 2004-01-1101, SAE World Congress, 2004.

43
Upphovsrätt
Detta dokument hålls tillgängligt på Internet — eller dess framtida ersättare —
under 25 år från publiceringsdatum under förutsättning att inga extraordinära
omständigheter uppstår.
Tillgång till dokumentet innebär tillstånd för var och en att läsa, ladda ner,
skriva ut enstaka kopior för enskilt bruk och att använda det oförändrat för icke-
kommersiell forskning och för undervisning. Överföring av upphovsrätten vid en
senare tidpunkt kan inte upphäva detta tillstånd. All annan användning av doku-
mentet kräver upphovsmannens medgivande. För att garantera äktheten, säkerhe-
ten och tillgängligheten finns det lösningar av teknisk och administrativ art.
Upphovsmannens ideella rätt innefattar rätt att bli nämnd som upphovsman
i den omfattning som god sed kräver vid användning av dokumentet på ovan be-
skrivna sätt samt skydd mot att dokumentet ändras eller presenteras i sådan form
eller i sådant sammanhang som är kränkande för upphovsmannens litterära eller
konstnärliga anseende eller egenart.
För ytterligare information om Linköping University Electronic Press se förla-
gets hemsida http://www.ep.liu.se/

Copyright
The publishers will keep this document online on the Internet — or its possible
replacement — for a period of 25 years from the date of publication barring ex-
ceptional circumstances.
The online availability of the document implies a permanent permission for
anyone to read, to download, to print out single copies for his/her own use and
to use it unchanged for any non-commercial research and educational purpose.
Subsequent transfers of copyright cannot revoke this permission. All other uses of
the document are conditional on the consent of the copyright owner. The publisher
has taken technical and administrative measures to assure authenticity, security
and accessibility.
According to intellectual property law the author has the right to be mentioned
when his/her work is accessed as described above and to be protected against
infringement.
For additional information about the Linköping University Electronic Press
and its procedures for publication and for assurance of document integrity, please
refer to its www home page: http://www.ep.liu.se/

c Olof Enqvist

You might also like