Russian Journal of Nonlinear Dynamics, 2018, vol. 14, no. 3, pp. 409-417. Full-texts are available at http://nd.ics.org.ru DOI: 10.20537/nd180310
MSC 2010: 93C85, 68T40
Stable Feedback Control of a Fast Wheeled Robot
O. M. Kiselev
We obtain criteria for the stability of fast straight-line motion of a wheeled robot using proportional or proportional derivative feedback control. The motion of fast robots with discrete feedback control is defined by the discrete dynamical system. The stability criteria are obtained for the discrete system for proportional and proportional-derivative feedback control.
Keywords: feedback control, stability, robotics
1. Introduction
Wheeled robots with differential driving for left and right wheels are typical of contests of fast robots. Such robots are important models for design of control at large velocities when a delay of digital feedback is noticeable. The kinematics of such robots gives us theoretical limits for a speed which is appropriate for control.
When we study only kinematics and neglect dynamics, we obtain a simplified mathematical model in which the moment of inertia and the power of motors are not taken into account. But the neglect of dynamics gives us the opportunity to consider constraints of geometry design of the robot for ideal dynamical properties. Roughly speaking, this shows us a theoretical potential for the velocity of the chosen design and control scheme.
In the most simple and therefore important case the robot can be thought of as two wheels on one geometric axis. The coordinates of the robot are the coordinates of the center of the axis (x,y) and the angle a. The angle a is the direction of the robot with respect to the axis Ox. Hence the phase space of the robot on the plane contains three components (x,y, a), where (x,y) £ R2, a £ [—n,n).
The length of a curve in this phase space is defined for coordinates (x,y). Therefore, one can consider this phase space as a sub-Riemannian manifold [1].
A geometric scheme of the robot and its important dimensions can be seen in Figure 1.
Received April 19, 2018 Accepted May 07, 2018
Oleg M. Kiselev [email protected]
Institute of mathematics with computer center, UFRC RAS ul. Chernyshevskogo 112, Ufa, 450008, Russia
wheel
Fig. 1. The coordinates of the center of the robot are (x, y) and the direction of the robot is the angle a. This coordinate triplet (x, y, a) defines the position of the robot on the plane.
The typical geometric dimensions of the kinematic model are defined as follows: D is the diameter of the wheels, which is typically 25-100 mm; 2K is a gauge, which is typically 100200 mm; A is the position of the line sensor, the typical value is about 200 mm.
The paper is structured as follows. In Section 2 we derive a system of equations for the motion. We keep track of the dependence of the system parameters on the geometric dimensions of the robot and rotation speeds of the wheels. In Section 3 we write out an equation of motion for the robot under proportional feedback control for straight-line motion. We show that this motion is asymptotically stable. In Section 4 we study the motion under proportional feedback control with small delay. It shown that this delay may bring an instability into the control. We obtain a criterion for stability of the straight-line motion under small delay. In Section 5 we consider the motion under proportional derivative feedback control and we formulate a theorem about stability of straight-line motion. In Section 6 we show that fast motion under proportional derivative feedback control with small delay may be unstable. We obtain a criterion for stability of such motion.
2. Kinematics equations
Here we derive a well-known system for the kinematics for wheeled robots. The goal of this derivation is to find the influence of dimensions on the properties of the moving robot. Besides, when one writes out the dimensionless form of kinematic equations, one can see the dependence of the parameters on the rotation velocities of the motors.
To derive the equations for the moving robot in the configuration space (x, y, a) £ {R2 xS1}, we denote the angle velocity of the left wheel by ul and the angle velocity of the right wheel by ur. The typical values of the velocities are less than 100 rad/sec.
Suppose we are given the angle velocities of the wheels and ul < ur. Then the linear speed of the left wheel is ulD/2 and the linear speed of the right wheel is urD/2.
Let R be the radius of the trajectory. The left and right wheels are moving in a circle. The equation for the rotational velocity of the wheel axis is
uld/2 = a(R - K), urd/2 = a(R + K). Then we can obtain the rotational velocity of the robot and the radius of the trajectory:
D , n t) ur + ul a = -— (ujr — ujl), r =-A.
4A v h ujr - ujl
Let (X,Y) be the coordinates of the center of rotation and let (xo,yo,ao) be the current coordinates of the robot. Then we can write the following formula for X, Y and R:
xo — X = R sin(ao), yo — Y = —R cos(ao).
Let (xi,yi,ai) denote the coordinates of the robot after rotation through angle da. Then the change in the coordinates is
a1 — a0 = da,
x1 — x0 = R(sin(a1) — sin(a0)), yi — yo = — R(cos(ai) — cos(ao)).
Let 5 be a step of dicretization. Then the recurrent system of equations for the coordinates can be rewritten as
_ _ D ojr-ujl s-
1 OLn — ^ 2 ' Xn+1 - Xn = il"(sin(a«+1) ~ sm(an)),
yn+i ~ Un = -UR + U,L K(cos(an+1) - cos(an)). (2.1)
wR — wl
It is convenient to rewrite x = KX, y = KY and to denote w = (wR + wL)/2, d = (wR — wL)/2, A = 5wD/(2K). Then we obtain the system in dimensionless form:
Q
ttn+i ~ Oin = u A,
Xn+i - Xn = j (sin(ara+i) - sin(an)), Yn+i ~ Yn = -j (cos(ara+i) - cos(a„)).
One can transform the system of difference equations into a system of ordinary differential equations where the independent variable T is such that Tn+i — Tn = A. Let us denote £ = Q/w. Then, as A ^ 0, one gets:
a' = X' = cos(a), Y' = cos(a). (2.2)
Here £ = Q/w is the dimensionless control parameter, namely, the ratio between the velocity of rotation and the velocity of motion along the trajectory of the robot.
The system of equations (2.2) is well known. For a derivation and the use of the system for analysis of motion in a somewhat different form, see [2, 3].
3. Feedback control
Let us consider the feedback control for straight-line motion. Typically one considers a proportional-integral-derivative controller. In our case, such a controller should define the parameter d, which is the angular velocity of the robot.
For definiteness we use Cartesian coordinates X, Y for the robot such that the axis OX is directed along the line of motion of the robot. The axis OY is perpendicular to the line of motion. In this coordinate system the curve of motion is defined by the equation Y = 0 [4].
There exist various control systems for such mobile robots. Below we consider proportional and proportional-derivative controllers.
We do not consider the integral control in this work. The integral part of the PID-controller is helpful for a curvilinear path when the proportional part of the PID-controller is insufficient for part of the path with a small radius of rotation. In this case the integral part of the PIDcontroller accumulates changes within several control steps. But the typical property of a fast robot is that it has a small frequency of control steps and the integral part does not have time to accumulate sufficient value.
A proportional feedback controller is the simplest and the most frequently used controller. Usually it operates using a deviation of the path with respect to the middle of the line sensor.
If the line sensor shows that the deviation is equal to Z, then the value of the control parameter 6 is
6 = kpz.
Here kp > 0 is the coefficient of feedback control. The range of values of the coefficient is limited by the dynamical properties of the gearmotor and this range primarily depends on torque. Below we will consider the value of the coefficient kp = 0(1).
A formula for the value of the deviation Z from the middle of the line sensor can be obtained using the following geometrical property:
KZ cos(a) + KY + A sin(a) = 0. (3.1)
Then the recurrent system for the coordinates of the robot has the form
ai _ ao = -— A f Y° + A
u I cos(a:o) K cos(o;o) J
u (sin(ai) — sin(ao))cos(a0)
X\ — Xq —
Yq + jl sin(ao))
ш (cos(ai) -cos(ao))cos(ao)
1" 0 = —7—A—r-^—" ( }
P (Yq + ^ sin(a0)J
Here one should consider u/np as a parameter of this system.
The system of ordinary differential equations for this feedback control has the form
d = + ^ = cos (a), Y> = sin (a). (3.3)
ш y cos(a) K cos(a) I
One can rewrite this system as a linear differential second-order equation:
Y» = -%(Y + Ary (3.4)
Making a change of the independent variable т — Ту/ф and using a new parameter ¡x —
= (.A/K) \Jк,/и, we obtain
Y" + ¡Y' + Y — 0.
Kp
The characteristic equation has the form
A2 + ¡A + 1 = 0.
The real parts of the roots of this equation are Re(A1>2) < 0. Therefore, the zero solution of this equation is asymptotically stable. Then we have the following theorem.
Theorem 1. The solution of the system (3.3) a = 0, Y = 0 and X = t is asymptotically stable.
4. Asymptotic properties of motion using feedback control
For fast linear velocities, that is, for i — 0, the real part of the roots of the characteristic equation is small and the stability property decreases. Indeed,
k1 ~ i —
a
2'
k2 ^—i —
a
2'
¡1 — 0.
The system with feedback control has a delay because of processing. Let us define a typical delay as 5. Then the shift with respect to the middle of the line sensor is known for the time value t — 5. In terms of the variable T one gets A = (D/2K)5w. In such cases one usually considers systems with delay instead of (2.2), see [5]. However, in our case of large values of w, the step of discretization A is not small. As a result, one has to use a discrete map (3.2) instead of ordinary differential equations with delay.
The current map for X should be considered separately. The maps for a and Y are linked. Therefore, we can consider the map:
Kr,
ttn+1 = ttn + — zn A
Yn+1 — Yn
u
(cos (a + ^j- Zna) - cos(an)j
Zn
(4.1)
(4.2)
where
Zn —
Y + ^ sin(a„) cos( an, )
Let us obtain an asymptotic behavior for this map in a neighborhood of (a,y) = (0,0):
^ 1 _ heaa -ula ^
ujk u
a _ kpa A2
_ ^pAi UJK 2 w 2 /
Let us consider quadratic form:
F - a2 + Y2
n — n ^ tjJ 1 n ■
One can obtain an asymptotic approximation when w — to:
Fr
n+1
2akp F__
1 n T-
Ku
. 2 KP a 2 2 + — A an-
Therefore if
then Fn+i < Fn •
KA — 2A< 0,
K
p
Proportional feedback control
X
Fig. 2. Stable and unstable straight-line motion under feedback control with different values of w. The geometric dimensions of the robot are: D = 0.05, K = 0.1, A = 0.2. The step over time is S = 0.01. The coefficient of proportional control is Kp = 1.
The formal asymptotic expansion shows that inequality is an necessary condition of stability for straightforward motion. Let us rewrite the condition in terms of 5. We obtain that the straightforward motion under feedback control is stable for
/ 4 A
The stability does not depend
on the proportional coefficient of feedback control Kp. The results for the discrete map are shown in Figure 2.
The formula for Fn+\ implies that the speed of convergence for the map to zero depends on the coefficient of the proportional feedback control Kp. An optimal value of this coefficient can be found by optimizing the path. This is a variational problem and is not considered in this work.
5. Motion under proportional-derivative feedback control
Additional damping is a general approach to stabilize oscillations. In control systems, such an approach is applied by adding a derivative term to the feedback. In our case, such an additional term is the angular velocity:
da = t^L7 , d.Z dT w w dT1
§=coS(a), §=*„<«).
Here Kd > 0 is the coefficient of derivative control.
Let us differentiate the geometric formula (3.1) to obtain an expression for (dZ)/(dT). This yields:
^ cos (a) - Zsin(a) + w sin(a) + cos(a) = 0.
Then the system of equations for a and Y has the form
(V(T) + sin(g)) ^ / , 2A \ da sin (a) _ sin(g) _ 2Ada
cos (a) v \ \ 1 ; D 1 7 dT cos (a) cos (a) D dT
da _ _
dT~ u cos (a) u ' D dT cos(a) cos(a) D dT
§ =-n(o).
To study the stability of the zero solution to this system, one can rewrite it as a differential second-order equation for a and obtain a linearized part of the equation in a neighborhood of zero. As a result, one obtains
a = - ( a I h a - (a } a — a,
dr2 \d,T J \d,T J
where r = \Juj/k,vT, k\ = k^K/(kpA), ¡jl = sjkv/ujA/K.
A characteristic equation for the second-order equation for a has the form
A2 = -(ki + 1) ¡A - 1. (5.1)
If k1 > 0 and ¡> 0, then the solution of this equation has a negative real part.
One can see that the zero is an asymptotic stable solution for a system of equations for a, Y.
Theorem 2. The solution of a system of equations for straight-line motion under proportional derivative feedback control is asymptotically stable.
6. Asymptotic properties of motion
under proportional derivative feedback control
Let us consider solutions for a large speed, that is, for ¡i — 0. In this case, the real parts of the roots for the characteristic equation (5.1) have asymptotic behavior:
h ~ « - f (1 + h), k2 ~ -i - f (1 + hi), At -»■ 0.
The real part of A1>2 is negative, but small. Hence the robot is close to instability when the speed is large.
The approximation of maps (2.1) by the system of differential equations (2.2) is not appropriate because the value of A is not small when w is large. This leads to discrete maps instead of differential equations:
otn+i = OLn + -^j- ZnA + -¿j- (Zn — Zn_i),
(sin (an + § ZnA + ^ (Zn - Z„_i)) - sin(a„))
{jj ^ 1 i,J i,J v ^ ^ Xn+\ = xn + —
/7 , Kd (Zn - Zn-1) ¿11 i
n 1 «y A (cos (a„ + § ZnA + ^ (Zn - Z„_i)) - cos(a„))
, , , , .- ,,, .- ,, . Jn ^n
Y — Y - —
1 ra+l - 1 n
7 , Kd (Zn - Zn-l) + Ä
p
2.5 2 1.5 1
0.5 ^ 0 -0.5 -1 -1.5 -2 -2.5
0 5000 10000 15000 20000 25000 30000
X
Fig. 3. Here one can see stable and unstable motions under proportional feedback control for different values of w. The dimensions of the robot are: D = 0.05, K = 0.1, A = 0.2. The step of time discretization is S = 0.01. The coefficient of proportional feedback is Kp = 1 and the coefficient of derivative feedback is Kd = 0.5.
Proportional and derivative feedback
LJ = 1600.0, A = 4.0, Kp = l,Kd = 0.5 w = 2400.0, A = 6.0, kp = l,Kd = 0.5
Numeric experiments show that the condition for stability of the discrete map is
. 4A (, . ndK\
Results for the discrete map are shown in Figure 3.
The stability condition for proportional derivative feedback control contains a relation of coefficients for proportional and derivative terms of the feedback. This condition does not answer the question of the optimal value of coefficients for feedback control. The search for the optimal values is an important problem, which requires additional studies.
7. Conclusions
The system of control gives kinematic stability of straight-line motion under proportional feedback when
4A ^ Dô>
where D is the diameter of wheels; A is the distance from the line sensor, S is the delay of the control, and w is half the sum of the angular velocities of the wheels.
The condition for stability of straight-line motion under proportional derivative feedback looks like this:
4A , 4KdK DÔ KpDô '
where 0 < Kd is the coefficient of derivative feedback and 0 < kp is the coefficient of proportional feedback.
References
[1] Sachkov, Yu. L., Conjugate and Cut Time in the Sub-Riemannian Problem on the Group of Motions of a Plane, ESAIM Control Optim. Calc. Var, 2010, vol. 16, pp. 1018-1039.
[2] Campion, G., Bastin, G., and d'Andrea-Novel, B., Structural Properties and Classification of Kinematic and Dynamic Models of Wheeled Mobile Robots, IEEE Trans. Robot. Autom., 1996, vol. 12, no. 1, pp. 47-62.
[3] Martynenko, Yu. G., Motion Control of Mobile Wheeled Robots, J. Math. Sci. (N. Y.), 2007, vol. 147, no. 2, pp. 6569-6606; see also: Fundam. Prikl. Mat., 2005, vol.11, no. 8, pp. 29-80.
[4] Walsh, G., Tilbury, D., Sastry, S., Murray, R., and Laumond, J. P., Stabilization of Trajectories for Systems with Nonholonomic Constrains, IEEE Trans. Automat. Control, 1994, vol.39, no. 1, pp. 216-222.
[5] Ollero, A. and Heredia, G., Stability Analysis of Mobile Robot Path Tracking, in Proc. of the 1995 IEEE/RSJ Internat. Conf. on Intelligent Robots and Systems. Human Robot Interaction and Cooperative Robots: Vol. 3, pp. 461-466.