You are on page 1of 8

CEAI, Vol. 9, No. 3;4, pp.

43-50, 2007 Printed in Romania

SOLUTIONS FOR MODELING AND CONTROL


IN MOBILE ROBOTICS

Mircea Niţulescu

University of Craiova, Romania


Faculty of Automation, Computers and Electronics, Mechatronics Department
107Decebal Avenue, 200440 Craiova, E-mail: nitulescu@robotics.ucv.ro

Abstract: This work presents some considerations regarding mathematical models and control
solutions for a class of mobile robots namely two-wheel differential drive mobile robots, one of the
most utilized mechanical structures now in mobile robotics practice. The closed loop control
diagrams for position control and respectively for direction control in tracking along imposed
trajectories are developed, analyzed and included in this paper. For these control solutions, the
paper presents therefore some analyses regarding the stability in different circumstances. In
addition, direct and inverse cinematic models for this class of mobile robots are included.
Keywords: mobile robots, modeling, control, stability.

1. INTRODUCTION result of the forces developed by the two "drive


wheels" [3].
Usually, the mechanical mobile robot solution
namely "two-wheel differential drive mobile The entire control of the mobile robot on the
robot" has minimum three wheels. The two trajectories is assured controlling the angular
"drive wheels" have a common horizontal axis, velocities of the two drive wheels [8]. There are
fixed on the robot body. One or more free three fundamental cases:
wheels (or "castor" wheels) assure the robot • If the angular velocities are identical as
equilibrium [12]. Therefore, while three wheels values and relative senses, the robot makes a
introduce isostatic equilibrium for robot body, “spin” motion. The spin motion produces a
more that three wheels introduce hyperstatic rotation of the robot body around a vertical
equilibrium, which ensure a better stability on axis passing through the geometrical symme-
complex trajectories including curve segments try point (or centre of gravity). There is a
[2]. Each castor wheel is independently mounted particularity of this mechanical configuration
on a vertical not drive axis of the body and it is because only the two-wheel differential drive
automatically and free aligned on the route as mobile robot can do this type of motion.
44 CONTROL ENGINEERING AND APPLIED INFORMATICS

• If the angular velocities are identical as of the common axis of the driven wheels.
values but opposite as senses, the robot
makes a linear motion; the direction on the As we can see in Figure 1, the orientation (or
linear motion, forward or backwards, direction) of the mobile robot is given by the
depends of the opposite group of sense of the angle θ between the instant linear velocity of
driven wheels angular velocities. the mobile robot v (or the X RM axis) and the
• If the angular velocities are different as local vertical axis.
value, the robot makes a curve motion. Of
course, the characteristics of the curve
motion, i.e. the curvature coefficient k of the The instant linear velocity of the mobile robot v
curve-segment trajectory depend of the is attached and defined relative to the characte-
differences between values and senses of the ristic point P. As equation (1) denotes, this
two drive wheels. velocity is a result of the linear velocities of the
This mechanical mobile robot solution namely left driven wheel v L and respectively the right
"two-wheel differential drive mobile robot" is driven wheel v R . These two drive velocities v L
extensively used now in practice. The expla-
nation is that it assures a good balance between and v R are permanently two parallel vectors
large capabilities in locomotion (or tracking and, in the same time, they are permanently
possibilities) and mechanical complexity (or perpendicular on the common mechanical axis
construction associated costs) [4]. of these two driven wheels.

vL + vR
v= (1)
2. MODELS FOR THE TWO-WHEEL 2
DIFFERENTIAL DRIVE MOBILE
ROBOT Equations (2) and (3) give the two Cartesian
components of linear velocity:
To characterize the current localization of the

mobile robot in its operational space of evolu- v x = x = v ⋅ sin θ (2)
tion, we must define first its position and its •
orientation. v y = y = v ⋅ cosθ (3)

The position of the mobile robot on a plane The position, the orientation and the linear
surface is given by the vector ( x, y ) , which velocities of the two driven wheels define the
contains the Cartesian coordinates of its robot state as a five elements vector:
characteristic point P (see Figure 1). Usually,
this characteristic point P is placed in the middle (x, y,θ , v L , v R )T (4)
Y
Left drive wheel The input vector contains the two accelerations
YMR of the left a L and respectively the right a R
vL XMR
driven wheels.
v
θ Using equation (1) into equations (2) and (3),
vR
y the next (5) and (6) equations are immediately.
P They give finally the first two state equations
(for the linear velocity components of the
mobile robot):
lA
Right drive wheel • vL + vR
x= ⋅ sin θ (5)
2
Castor wheels x
• v + vR
y= L ⋅ cosθ (6)
O X 2
Fig. 1. The co-ordinate systems and notations for the
two-wheel differential drive mobile robot. If we note by x L , y L , x R , y R the Cartesian
positions of the driven wheels in the global
CONTROL ENGINEERING AND APPLIED INFORMATICS 45

references attached to the operational space, we the same, the mobile robot executes a linear mo-
can write the next two equations: tion and if the sign is opposite, the mobile robot
executes a special curve namely "clotoide" [5].
x L − x R = −l A ⋅ cosθ (7)
y L − y R = l A ⋅ sin θ (8) The most common actuator used to energize the
locomotion system of the mobile robots is the
and respectively the associate equations: DC motor. An associated encoder, as common
speed a position sensor, is currently attached. In
• • • same normal hypothesis (electrical constants are
x L − x R = l A ⋅ θ ⋅ sin θ (9) smaller those mechanical constants), the DC
• • • servomotor is a first order system with a transfer
y L − y R = l A ⋅ θ ⋅ cos θ (10) function:

Because the vectors for linear speed of wheels ω (s ) K


H S (s ) = = (15)
v L and v R are orthogonal on the common axis U (s ) 1+ T ⋅ s
of the driven wheels (see Figure 1), we can write
the third state equation (11), representing the were ω represents the angular speed of the DC
angular velocity of the robot: servomotor and U is the applied voltage.
• vL − vR So, considering two DC servomotors, as right
θ= (11)
lA (R) and left (L) actuators for the two driven
wheels of the mobile robot, and the associated
The last two state equations denoting the linear simplest transfer function:
accelerations of the two drive wheels are
vL KL
evident: H L (s ) = = (16)
v L c 1 + TL ⋅ s

v L = aL vR KR
(12) H R (s ) = = (17)
• v R c 1 + TR ⋅ s
v R = aR (13)
we can obtain, finally, a first cinematic model
The curvature coefficient (k) associated on a for the two-wheel differential drive mobile
specific trajectory-segment is defined as the robot, which is depicted in Figure 2.
inverse ratio of the radius of that trajectory–
segment. The equation for the curvature can be If our target is to simplify the mathematical
obtained because the radius of the trajectory– model, we can introduce the evident assumption
segment can be writing as a ratio between the that the two DC servomotors are practically
linear velocity and the angular velocity of the identical in their behavior.
robot body. Therefore, dividing equation (11) by
equation (1) we obtain finally the equation for So, in addition, some equalities betweens the
the curvature coefficient (k) of a segment- parameters of their transfer functions (16) and
trajectory as: (17) can be write as:

1 θ vL − vR 2 KL = KR = Ka (18)
k= = = ⋅ (14)
ρ v vL + vR l A TL = TR = T (19)

Because the equations (5) and (6) are nonlinear, Using the equation for the linear velocity (1) and
we must introduce some assumptions to obtain a the equation for the angular velocity (11) of this
linear model for the mobile robot. There are type of mobile robot, we can obtain (after same
some different solutions. A possible method is bloc-diagram reductions and associate transfor-
to introduce the hypothesis that the two instant mations) a new bloc-diagram [9]. The Figure 3
drive wheel accelerations, a L and respectively depicts this new bloc-diagram.
a R , are equals in module. If the sign of them is
46 CONTROL ENGINEERING AND APPLIED INFORMATICS

R actuator MR curvatures abscise


v*R (imposed ) vR v (covered distance)
KR 1 1
Σ λ
1 + TR ⋅ s 2 s
+
-

L actuator MR orientation
- • (direction)
v*L (imposed ) KL
+ 1 θ 1
Σ θ
1 + TL ⋅ s lA s
vL

Fig. 2. A primary model for the two-wheel differential drive mobile robot, considering
two DC servo-motors as actuators in the locomotion system.

vMR (imposed ) v
1 λ MR curvatures abscise
Ka
1+ T ⋅ s s (covered distance)

• •
θ MR (imposed ) θ θ
Ka 1 MR orientation
1+ T ⋅ s s

Fig. 3. The simplified model for the two-wheel differential drive mobile robot, considering
the same behavior for the two actuators of the locomotion system.


xc vx
x (imposed )
d
∆x
KI 1
Σ KP + KD ⋅ s +
s sin θ
+
- •
x
1
sin θ
s

+ vc
MR linear speed
Ka
Σ
1+ T ⋅ s v
+

1
cos θ
s •
- y
+ KI 1
Σ KP + KD ⋅ s +
s cosθ
y d (imposed ) ∆y

yc vy

Fig. 4. The position control for the two-wheel differential drive mobile robot.
CONTROL ENGINEERING AND APPLIED INFORMATICS 47


θ d (imposed ) ∆θ
KI
θc
Ka
MR orientation
Σ KP + KD ⋅ s +
s 1+ T ⋅ s θ
+
-

Fig. 5. The orientation or direction control for the two-wheel differential drive mobile robot.

Λ(s )
+
∆x
x d (imposed )
MR coordinate
Σ K Ka
KP + KD ⋅ s + I Σ
s + 1+ T ⋅ s x
+
-

Fig. 6. The simplified model of the two-wheel differential drive mobile robot for stability analyzes.

This new control diagram is still not 3. CONTROL SOLUTION FOR THE
satisfactory. The explanation is that substantial MOBILE ROBOT
tracking errors can occur between an imposed
(or desired) trajectory for the mobile robot and Figure 4 and Figure 5 present the final solutions
the real trajectory developed by them. If these proposed to control the two-wheel differential
errors exceed acceptable and predefined limits, drive mobile robot.
different impacts with obstacles prezented in the
mobile robot scene can occur and the entire Figure 4 presents the closed loop control for the
functionality is compromise. position of the two-wheel differential drive
mobile robot.
This is a serious reason to introduce two closed
loops control for our mobile robot. The first one Figure 5 includes the closed loop control
is for the curvatures abscise λ (or covered proposed for the position control of this type of
distance by the robot) and the second closed mobile robot.
loops control is for the robot orientation. Each of
them uses a PID controller, depicted by the
equation (20) an respectively (21): 4. CONTROL STABILITY

• • To evaluate the stability of the control for the


θ c = K Pθ ⋅ ∆θ + K Dθ ⋅ ∆ θ + K Iθ ⋅ ∫ ∆θ ⋅ dt (20) mobile robot we consider a single channel
• • ( )
x d → x while the influence of the second
x c = K P ⋅ ∆ x + K D ⋅ ∆ x + K I ⋅ ∆ x ⋅ dt ∫ (21)
channel (y d
)
→ y is integrated in the pertur-

bation Λ(s ) as in Figure 6.
where θ c represents the imposed angular velo-
city, ∆θ represents the orientation (or direction) The open lop transfer function is:

error of the mobile robot, x c represents the
H ( jω ) =
[
K a K I + ω 2 (TK P − K D )

]
imposed linear velocity and ∆ x represents the

(
ω 2 1 + T 2ω 2 )
position error of the mobile robot. − j
[
K a (K P − TK I ) + K DTω 2 ] (22)
(
ω 1 + T 2ω 2 )
48 CONTROL ENGINEERING AND APPLIED INFORMATICS

Im(H )

ω = 0+

Re(H )
M0 ω → −∞
(− 1, j 0) ω → +∞

ω = 0−

Fig. 7. The root locus method diagram for stability analyzes of the two-wheel
differential drive mobile robot.

A first case is: K P − T ⋅ K I ≥ 0 . Using Nyquist and the center angle of the trajectory ∆θ is:
criteria, the conclusion is that the stability is
assured if K D > 0 . If K P = T ⋅ K I and K D = 0 , ∆LL − ∆LR
∆θ = (25)
some oscillations with constant amplitude are lA
produced.

A second case is K P − T ⋅ K I < 0 . In this


situation, the system is stable if the point M0 is
placed in the left of the point (− 1, j 0) in the root
locus method diagram depicted in Figure 7. If
the system is stable, the residual error is zero for
an input step of position or velocity and constant
for an input step of acceleration.

Concerning the perturbation, the residual error is


zero for an input step of position and constant
for an input step of velocity.

5. DIRECT AND INVERSE CINEMATIC


EQUATIONS Fig. 8. Notations for the two-wheel differential
drive mobile robot equations.
Using the notations introduced by Figure 8, the
arcs lengths decrypted by the two driven wheels The linear velocities for the two driven wheels
are: can be calculated in function of angular
velocities of the driven wheels:
⎛ l ⎞
∆LL = ⎜ ρ − A ⎟ ⋅ ∆θ
⎝ 2⎠ vL = R ⋅ ωL
⎛ l ⎞ v R = R ⋅ ωR (26)
∆LR = ⎜ ρ + A ⎟ ⋅ ∆θ (23)
⎝ 2⎠
Finally, the direct cinematic model for the two-
The length of the arc evolution describe by the wheel differential drive mobile robot is
characteristic point P is: represented by the next two equations, where the
first one is for the linear velocity and the second
∆L L + ∆L R is for the angular velocity of the mobile robot.
∆L = (24) They give this information in function of two
2
variables: angular speed of the left and right
CONTROL ENGINEERING AND APPLIED INFORMATICS 49

driven wheels ωL , ωR and others two constant drive mobile robot". The robot is characterized
parameters, radius of the driven wheels R and in both by its mechanical parameters R = 5cm ,
the distance between them l A : l A = 0.4m . The desired performances in linear
velocity and acceleration are v max = 0.2m / s and
v L + v R (ω L + ω R ) ⋅ R a max = 0.2m / s 2 , while in angular velocity and
v= = (27)
2 2
acceleration are ωmax = π / 4rad / s and respec-
• v − v R (ω L − ω R ) ⋅ R
θ= L = (28) tively α max = π / 4rad / s 2 .
lA lA

From other point of view, the angular velocity The experiments were performed for different
can be calculated as: complex global trajectories as shown Figs. 9-11.
In “Method 1” we use the control for position
• dθ dθ dL v and orientation included in Figs. 4-5, while in
θ= = ⋅ = (29) “Method 2” we use a classical control solution
dt dL dt ρ
based on the primary model presented in Fig. 2.
The equality between the equations (28) and
(29) gives the values for the angular velocities Y
of the driven wheels:

⎛ l ⎞ v
ω L = ⎜⎜1 − A ⎟⎟ ⋅ (30)
⎝ 2⋅ρ R

⎛ l ⎞ v Method 1
ω R = ⎜⎜1 + A ⎟⎟ ⋅ (31)
⎝ 2⋅ρ ⎠ R Method 2

X
The last two equations were obtained for the
counter-clockwise turn of the mobile robot. For Fig. 9. Complex trajectory based on circular arcs.
the opposite clockwise turn of the mobile robot,
these equations can be easily translated into the
next two: Y

⎛ l ⎞ v
ω L′ = ⎜⎜1 + A ⎟⎟ ⋅ (32)
⎝ 2⋅ρ R
⎠ Method 1

⎛ l ⎞ v
ω R′ = ⎜⎜1 − A ⎟⎟ ⋅ (33) Method 2
⎝ 2⋅ρ ⎠ R

Combining equations (30) - (33), we can obtain X


finally the inverse cinematic model of the two-
wheel differential drive mobile robot. The model
is depicted by the next two equations of angular Fig. 10. Complex trajectory based on straight lines.
velocities for the driven left and right wheels:
Y
⎛ l ⎞ v
ω L = ⎜⎜1 − sign(ρ ) A ⎟⎟ ⋅ (34)
Method 2
⎝ 2⋅ρ ⎠ R
⎛ l ⎞ v
ω R = ⎜⎜1 + sign(ρ ) A ⎟⎟ ⋅ (35) Method 1
⎝ 2⋅ρ ⎠ R

6. EXPERIMENTS
X
A program was developed to compare two con-
trol solutions for the "two-wheel differential Fig. 11. Complex trajectory with all cases.
50 CONTROL ENGINEERING AND APPLIED INFORMATICS

Figure 9 resumes the results in the case of the mobile robots, IEEE Transactions on
plane trajectory planned by circular arcs like an Robotics and Automation, Vol. 12, No. 1,
eight number. p.47, 1996.
[5]De Santis R., Modelling and path tracking
Figure 10 resumes the results in the case of the control of a mobile wheeled robot with a
plane trajectory planned by a combination of differrential drive, Robotica, 13, Part 4, p.
0
four straight lines and 90 quick turning 401, 1995.
motions, like a rectangle. [6]Dong W., Huo W., Tso S.K., Xu W.L.,
Tracking control of uncertain dynamic
Figure 11 resumes the results in the case of the nonholonomic system and its application to
real complex plane trajectory containing straight wheeled mobile robots, IEEE Transactions
lines, circular arcs and quick turning motions. on Robotics and Automation, Vol. 16, No. 6,
p. 870, 2000.
[7]Koh K., Cho. H., A path tracking control
7. CONCLUSION system for autonomous mobile robots,
Mechatronics, 4, p.799, 1994.
This paper presents some results regarding [8]Kriegman D., Triendl E., A mobile robot:
mathematical models for one kind of mobile sensing, planning and locomotion, IEEE
robots, namely two-wheel differential drive Transaction on Robotics and Automation, p.
mobile robot. The closed loop control diagrams 402, 1987.
for position control and respectively for [9]Krogh B., Thorpe C., Integrated path plan-
direction control in tracking along imposed ning and dynamic steering control for
trajectories are also analyzed. Afterwards, for autonomous vehicles, Proceedings of IEEE
these control solutions, the paper presents International Conference on Robotics and
therefore some analyses regarding the stability Automation, San Francisco, USA, p.1664,
for different type of inputs and alternativs 1986.
experiments to evaluate performances on tipical [10]Latombe J. C., Robot motion planning, Ed.
test trajectories. Direct and inverse cinematic Kluwer Academic Publishers, USA, p.42,
models for this class of mobile robots are also 1993.
included. Finally, to evaluate the control perfor- [11]Nishizawa T., Ohia A., An implementation
mances, some experimental and comparative of on board position estimation for a mobile
results on complex trajectories are so indicated. robot, Proceedings of IEEE International
Conference on Robotics and Automation,
Nagoya, Japan, p.395, 1995.
REFERENCES [12]Niţulescu M., Robotic systems with
navigation capabilities (in Romanian), Ed.
[1]Ailon A., Berman N., Arogeti S., Robot Universitaria, Craiova, Romania, ISBN: 973
controller design for achieving global -8043-143-3, p.151, 2002.
asymptotic stability and local prescribed [13]Tsai P., Wang L., Chang F., Modeling and
performance, IEEE Transactions on Robotics hierarchical tracking control of tri-wheeled
and Automation, Vol. 20, No. 5, p. 790, mobile robots, IEEE Transactions on
2004. Robotics, Vol. 22, No. 5, p.1055, 2006.
[2] Andrea, B., Bastin G., Modeling and control [14]Wenjie D., Kuhnert K., Robust adaptive
of non-holonomic wheeled mobile robots, control of nonholonomic mobile robot with
Proceedings of IEEE International Confe- parameter and nonparameter uncertainties,
rence on Robotics and Automation, Sacra- IEEE Transactions on Robotics and
mento, SUA, p.1130, 1991. Automation, Vol. 21, No. 2, p.261, 2005.
[3]Bicchi, A., Casalino C., Santilli C., Planning
shortest bounded curvature paths for a class
of nonholonomic vehicles among obstacles,
Proceedings of IEEE International Confe-
rence on Robotics and Automation, Nagoya,
Japan, p.1349, 1995.
[4]Campion G., Bastin G., Dandrea B.,
Structural properties and classification of
kinematic and dynamic models of wheeled

You might also like