Научная статья на тему 'CONTROL OF AN INVERTED WHEELED PENDULUM ON A SOFT SURFACE'

CONTROL OF AN INVERTED WHEELED PENDULUM ON A SOFT SURFACE Текст научной статьи по специальности «Физика»

CC BY
19
4
i Надоели баннеры? Вы всегда можете отключить рекламу.
Журнал
Russian Journal of Nonlinear Dynamics
Scopus
ВАК
RSCI
MathSciNet
zbMATH
Область наук
Ключевые слова
PENDULUM / CONTROL / STABILITY / DIFFERENTIAL INCLUSION

Аннотация научной статьи по физике, автор научной работы — Kiselev Oleg M.

The dynamics of an inverted wheeled pendulum controlled by a proportional plus integral plus derivative action controller in various cases is investigated. The properties of trajectories are studied for a pendulum stabilized on a horizontal line, an inclined straight line and on a soft horizontal line. Oscillation regions on phase portraits of dynamical systems are shown. In particular, an analysis is made of the stabilization of the pendulum on a soft surface, modeled by a differential inclusion. It is shown that there exist trajectories tending to a semistable equilibrium position in the adopted mathematical model. However, in numerical simulations, as well as in the case of real robotic devices, such trajectories turn into a limit cycle due to round-off errors and perturbations not taken into account in the model.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «CONTROL OF AN INVERTED WHEELED PENDULUM ON A SOFT SURFACE»

Russian Journal of Nonlinear Dynamics, 2020, vol. 16, no. 3, pp. 421-436. Full-texts are available at http://nd.ics.org.ru DOI: 10.20537/nd200302

NONLINEAR PHYSICS AND MECHANICS

MSC 2010: 37N35, 70E60, 70Q05

Control of an Inverted Wheeled Pendulum on a Soft Surface

O. M. Kiselev

The dynamics of an inverted wheeled pendulum controlled by a proportional plus integral plus derivative action controller in various cases is investigated. The properties of trajectories are studied for a pendulum stabilized on a horizontal line, an inclined straight line and on a soft horizontal line. Oscillation regions on phase portraits of dynamical systems are shown. In particular, an analysis is made of the stabilization of the pendulum on a soft surface, modeled by a differential inclusion. It is shown that there exist trajectories tending to a semistable equilibrium position in the adopted mathematical model. However, in numerical simulations, as well as in the case of real robotic devices, such trajectories turn into a limit cycle due to round-off errors and perturbations not taken into account in the model.

Keywords: pendulum, control, stability, differential inclusion

1. Introduction

An inverted wheeled pendulum is a popular model used to investigate the dynamics and control systems of robotic devices.

This paper derives dynamics equations for a wheeled pendulum moving uniformly on a soft surface. Analysis is made of degenerations of these equations for motion on a rough surface, in a horizontal straight line and in a straight line of constant inclination under the action of a proportional plus derivative action controller (PD controller) and under the action of a proportional plus integral plus derivative action controller (PID controller). The properties of the phase space of corresponding dynamical systems are investigated and regions are obtained in which the inverted pendulum is stabilized by a PD controller. It is shown how the the region of stable motion of the pendulum diminishes as the inclination of the surface is varied. The stability conditions are considered in bounded regions for initial nonlinear equations.

Received December 16, 2019 Accepted May 19, 2020

Oleg M. Kiselev ok@ufanet.ru

Institute of Mathematics with Computing Centre —

Subdivision of the Ufa Federal Research Centre of the Russian Academy of Science ul. Chernyshevskogo 112, Ufa, 450008 Russia

The motion of an inverted wheeled pendulum on a soft surface in the presence of rolling friction is examined. It is shown that there exist conditions under which the wheeled pendulum stabilizes during accelerated motion of the wheel. Generally speaking, this mode causes the pendulum to accelerate and leads to the loss of stabilization due to the fact that the dynamical performance of the motor is limited. It is shown that the introduction of an integral component into the PD controller leads to the onset of a limit cycle and, as a consequence, to the stabilization of motions in the neighborhood of such a cycle.

In recent years, there has been an extensive amount of research devoted to an inverted wheeled pendulum. A historical review and a consecutive statement of problems concerning the control of the pendulum in various devices can be found in the monographs [1, 2]. A brief review of publications discussing a control system for the inverted wheeled pendulum is given, for example, in [3].

A derivation of equations for a wheeled pendulum and the problem of synthesis of control is discussed, for example, in the book [4] and in the paper [5]. Problems of the stability and control of an inverted pendulum on a two-wheeled platform were addressed, for example, in [6-9] for a pendulum on an inclined surface. The problem of negotiating vertical obstacles was addressed in [10]. The motion of a robot on a rough surface was studied in [11], and the stability of motion on a rough surface was analyzed in [12].

PID controllers are widely used in technical devices (see, e.g., [13]). General approaches to the control of models defined by linear second-order systems were considered, for example, in [14] from the viewpoint of analysis of the evolution of first integrals. PD and PID controllers are rather often used to control two-wheeled robots (see, e.g., [15, 16]) and the literature review [3].

To solve the problem of stabilizing the pendulum in the upper position, one usually considers either linearization in a small neighborhood of the upper point of the pendulum, as in most of the above-mentioned publications, or, for example, nonsmooth control based of the Lyapunov function for the inverted wheeled pendulum [17].

The results of the above-mentioned studies are supplemented according to the general view of the wheeled pendulum as a dynamical system. First integrals are found which appear when a proportional controller is used. The domains of attraction of steady-state solutions for a PD controller are investigated using suitable Lyapunov functions, which are obtained from conservation laws taking into account the differential part of the controller.

The paper is structured as follows. Section 2 derives equations of motion for a wheeled pendulum using the Lagrangian function. In general this is a standard approach, however, here this derivation is presented for general understanding of how the parameters of the nondimensional-ized system of equations are related to the initial mechanical system — the wheeled pendulum.

Section 3 discusses the motion of the pendulum on a plane curve of an arbitrary shape without control action.

Section 4 addresses the problem of stabilizing the pendulum under the action of a PD controller on a smooth surface. An equation of motion is derived and it is shown that the upper equilibrium point is asymptotically stable.

Section 5 is concerned with the dynamics of the pendulum's motion in a straight line with constant inclination. It is shown that a PD controller with a constantly acting torque is necessary to ensure the asymptotic stability of the pendulum under the condition of unaccelerated rotation of the wheel.

Section 6 examines the motion on a soft surface. To set the pendulum in motion, it is necessary to overcome the rolling friction torque. The rolling friction torque leads to the appearance of the discontinuous coefficient in the system of differential equations. A hypersurface arises in

the phase space on which the value of the discontinuous coefficient is undefined. In this case, it is convenient to model the mechanical system by means of differential inclusion. The use of differential inclusions in the problem with dry friction is described, for example, in the book [18].

It has turned out that it is not possible to stabilize the upper point of the pendulum using a PID controller when it is located on a soft horizontal line. However, a stable limit cycle arises in the neighborhood of the upper position of the pendulum. As a result, dynamical stabilization occurs due to the limit cycle located in the neighborhood of the unstable point of the pendulum.

2. Equations of motion for a wheeled pendulum

We consider equations of motion for the mechanical structure of a wheeled pendulum.

Let m be the mass of the pendulum shown in Fig. 1 and M the mass of the rim of the wheel. Assume that the pendulum is acted upon by gravity directed vertically downward with free-fall acceleration g.

We consider motion along the curve u(3), v(3), where the coordinate u is the horizontal coordinate of the curve and v is the vertical coordinate of the curve along which the wheel moves.

If we assume that a is the angle of deviation of the pendulum from the vertical and 3 is the angle of rotation of the wheel, then the kinetic energy is

m'-2 I -2\ I M i 2 ¿2 I -2 I -2\

T=-{x2+y2) +

2

(r2/32 + U2 + v2).

The potential energy for the mechanical structure of the wheeled pendulum shown in Fig. 1 is

n = gvM + gmy. We use the generalized coordinates a, / with

x = l sin(a) + u, y = l cos(a) + v, u = u(3), v = v(3), U = r ¡3cos(z), v = r 3sin(z). Here z(3) is a given function defining the inclination of the curve u(3), v(3).

Fig. 1. A wheeled pendulum. Let r denote the radius of the wheel, l the length of the pendulum, a the angle of deviation of the pendulum from the vertical, and ¡3 the angle of rotation of the wheel relative to some initial position. We assume that the pendulum is fastened with a hinge on the wheel's axis in such a way that it can freely rotate relative to the wheel.

As a result, one can obtain a Lagrangian function depending on two variables a, / and the given curve z(3), which defines the coordinate of the supporting point of the wheel.

The Lagrange equations rewritten for the coordinates a, / are a system of two second-order equations:

dt \daJ da ' dt \d$J dp

Before investigating the explicit form of this system, it is convenient to introduce the following notation:

r _ m fa du . . dv , .

p=v { = m> T = y?> dp=cos{z)' dp=sm{z)-

To simplify the notation, we will use a dot and a prime to denote the derivative with respect to the independent variable t and the parameter /, respectively:

$L= f ^i. = '

d,T~ dp~9'

Then we obtain a system of equations defining the angles of rotation:

a = sin(a) — (cos(a — z)3 + sin(a — z)z'$ 2)p, (Z + 2)p¡3 = — sin(z) — (¿i cos(a — z) — á2 sin(a — z)) (.

(2.1)

Here z(fi) is a given function defining the surface on which the wheel rolls.

This system of equations degenerates to an equation of the mathematical pendulum if the radius of the wheel is taken to be zero with p = 0:

a = sin(a). (2.2)

If the wheeled pendulum is on the horizontal surface, i.e., z = 0, then one can decouple from the system one equation for a:

(sin2(a)( + 2)a = (( + 2) sin(a) - ^a2( sin(2a). (2.3)

For a pendulum on a surface with constant inclination z = e one can also decouple one second-order equation for the angle of rotation of the pendulum a:

(sin2(e - a)( + 2)a = (2 + () sin(a) + sin(e) cos(e - a) + ^(a2 sin(2(e - a)). (2.4)

Equations (2.2)-(2.4) are integrable with corresponding conservation laws: ca 2

E = — + cos(a), (2.5)

E0 = a2 + (C + 2) cos(a) + iá2 sin2(a)(, (2.6)

Ee = cx2 + (( + 2) cos(a) + sin(e) sin(e - a) + ^a2 sin2(e - a)(. (2.7)

Here E, E0 and Ee are conservation laws for (2.2), (2.3) and (2.4), respectively.

3. Stationary points for a wheeled pendulum

Here and in what follows, by steady-state solutions we mean those solutions of the system of equations (2.1) for which a = const.

In particular, for a pendulum on a smooth supporting surface (2.3) the stationary point as = 0 corresponds to a saddle, i.e., such a point is unstable, and

P = Pit + Po,

for VPi, P0 G R. Thus, the wheeled pendulum can move with constant velocity.

For a pendulum on a surface with constant inclination the equation for a stationary point is

(2 + Z) sin(as) + sin(e) cos(e — as) = 0.

The solution is

sin(2e)

a, = arctan 1

,2(2 + C + sin2(e)),

In this position the whole wheeled pendulum rolls on the surface with constant inclination and the wheel rotates with constant angular acceleration:

•• - sin(e) ^ - sin(e) 2

In the general position case, the stabilization of the position of the pendulum leads to a redefined system of equations for the wheel's angle of rotation /(t) and as = const:

0 = sin(as) — (cos(as — z)(3 + sin(as — z)z' (3 2)p,

(C + 2)p /3 = — sin(z).

The condition for existence of a joint solution for this redefined system of equations leads to a second-order equation for the curve z((3):

, . ,sin(z)\ , , ,sin(z)\

2 sm(as - z) I — I cos(as - ) + 2- sm(«s - ^ I =

f . / \ , ,sin(zU d , . . .

1 sm(as) + cos(as - z) + 2 1 — (z sin(as - z)).

4. Stabilization of a wheeled pendulum on a smooth surface

Stationary points corresponding to the upper position of the pendulum are unstable. To stabilize the pendulum in a neighborhood of an unstable stationary point, the control of the wheel's rotation is used.

Let the torque of the wheel be If this torque is denoted as ¡i = 2Mrh, then the system of equations for the wheeled pendulum takes the form

a = sin(o:) — (cos(o: — z)'[3 — sin(o: — z)z' [32)p — 2 -Ji,

C2 (4.!)

(( + '2)p(3 = — sin(z) — (acos(o: — z) — a2 sin(o: — z)) ( H—h.

P

In particular, for a wheeled pendulum on a smooth surface (z = 0) we have (sin2(a)( + 2)a = (( + 2) sin(a) - sin(2a) - 2 Q cos(a) + + pj h. (4.2)

The problem of controllability and stability for linearization of the system of equations (4.1) and for linearization of Eq. (4.2) in the neighborhood of a = 0 is addressed, for example, in the book [4] (Chapter 1 §2). The approach to investigating the stability by linearization is a standard approach used to construct control systems for nonlinear systems in control theory and engineering applications. Below we consider the stability of a feedback system for the nonlinear system (4.1) and the nonlinear equation (4.2).

Consider stabilization using a PD controller (see, e.g., [16] and the review [3]):

h = k1a + k2a.

If k2 = 0, the equation for the wheeled pendulum on the smooth surface with control turns out to be integrable. The integral of motion for this equation is

¿-0=^1 + ^ sin2(a:)<^ a2 + (( + 2) cos(o;) + k\ ^-(a sin(a) + cos(o;) + a2p + ^

The stationary points ai for the pendulum with control are defined by the equation 2kip2(Z + 2)a - (p(( + 2) sin(a) + 2ki(acos(a) = 0.

When

*,< c"(2 + c)

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

2Z + 2p2(2 + C)

there exists the only stationary point ao = 0, which is a saddle. When

Cp(2 + C) 2C + 2p2(2 + C)

there exist three stationary points: a0, which is a stable focus if k2 = 0 is a center; the other two points a1 > 0, a2 < 0 are saddles.

In this case, there exist two heteroclinic curves (separatrices), one of which emanates from the saddle a1 and tends to the saddle a2 as t to, and the other emanates from the saddle a2 and tends to a1 as t — to. These separatrices bound the oscillation zone around the point a0 (see Fig. 2).

On the separatrices, the value of the conservation law is

£{0s) = (( + 2) cos(ai) + ki 0(ai sin(ai) + cos(ai) + a\p + ^Jj. (4.4)

Thus, the separatrices are defined by the curves on the phase plane (a, a) by the given value of Ei^. An example is given in Fig. 2.

When k2 > 0, the derivative E0 has the following form by virtue of Eq. (4.2):

¿o = -2k2a2 + 0 p + i cos(a)

It follows from this formula that the point (0,0) is a stable focus. When k2 > 0, all trajectories from the oscillation zone tend to it. When (a, a) = (0,0), it follows from the second equation of (2.1) that /3 = 0, that is, the wheel can rotate with constant velocity.

1

0.8 0.6 0.4

J 0-2 > 0 d-0.2 -0.4 -0.6 -0.8 -1

-1 -0.5 0 0.5 1 1.5 2

a

Fig. 2. Phase portrait for Eq. (4.2) in a neighborhood of the stationary point with Z =10, p = 0.2, k\ = 1.5, k2 = 0.05. The upper and lower separatrices (for which k2 = 0) bound the domain of attraction of the trajectories of the stationary point (0, 0). The curve tending to the point (0,0) has been obtained by numerically solving Eq. (4.2) using the Runge-Kutta fourth-order method.

The basin of stability

The result of this section is

Theorem 1. If condition (4.3) is satisfied, the trajectories of Eq. (2.3) inside the region bounded by the separatrices defined by Eq. (4.4) tend, as t ^-<x>, to the point (0,0) on the phase plane (a, a) provided that k2 > 0. At the point (a, a) = (0,0) the acceleration of the wheel is /5 = 0.

5. Stabilization on a surface with constant inclination

For a pendulum on a surface with constant inclination z = e = const the equation for a has the form

(sin2(e — a)Z + 2)a = (2 + Z) sin(a) + sin(e) cos(e — a) +

^(d2 sin(2(e -a))- 2 Q cos(e - a) + ^1 + pj h- O5-1)

In Section 3 it is shown that the stabilization of the pendulum without control action leads to uniformly accelerated motion of the wheel on an inclined surface. Such a mode does not satisfy the problem of stabilizing the wheeled pendulum since the wheel itself accelerates continuously.

Linearized equations of motion for systems on an inclined surface which are similar in design are discussed, for example, in [9], see also [7]. Below we consider the behavior of the wheeled pendulum in a region where nonlinearity has a significant influence.

Let the control action for the stabilization of the pendulum be

h = ki a + k2a. (5.2)

Then the equation for a takes the form

(sin2(e — a)( + 2)a = (2 + () sin(a) — ^C®2 sin(2(e — a)) — 2pcos(e — a)(k\a + fooi). (5.3)

If we set k2 = 0, then the equation of motion for the angle a has the conservation law

£e = k\ ( p (1 + a2 + -(cos(e — a) — 2asin(e — a)) ) +

J (5.4)

cos(a;)(C + 2) + sin(e) sin(e — a) + í - sin2(e — a)( + 1 j a2.

The equation of motion turns out to be integrable by quadratures for k2 = 0. Stationary points for (5.3) satisfy the equation

2((Z + 2)p2 + Z cos(e — a))k1 a + ((- sin(e) cos(e — a) — 2 sin(a))Z — sin(a)Z2 )p = 0.

Solutions to this equations in explicit form are not expressed in terms of elementary functions. For clarity of representation, it is convenient to rewrite this equation as

= (sin(a)(C + 2) + sin(e) cos(e - a))(p lCX 2(( + 2)p2 + 2cos(e-a)C ' '

This form of equation is convenient for graphical analysis. Figure 3 shows that, when k1 = 2, there exist three points of intersection of the curve from the right-hand side of equation (5.5). For small values of k1, for example, for k1 = 0.3, there exists only one solution.

Fig. 3. The points of intersection of the heavy curve and the straight lines correspond to solutions of Eq. (5.5). The graph has been plotted for p = 0.2, Z =10, e = 0.2.

It can be shown that 3eo, 0 ^ eo < n/2, such that for the inclination angles e G [0, eo) there exist values of the parameter k\ such that for the equation for a G (—n/2,n/2) there exist three stationary points a0)i)2 such that -n/2a\ < a0 <a2 < n/2.

The points a1>2 are saddles on the phase plane (a, a). When k2 > 0, the point a0 is a stable focus.

Since the integral £e has different values at saddle points in the general position case, for each of the saddle points with k2 = 0 there exist two homoclinic trajectories which tend to ai as t ^ ±rc>. The stability region of the pendulum is defined by the smallest of the separatrix loops (see Fig. 4).

The basin of stability for the inverted wheeled pendulum on the slanted plane

a

Fig. 4. Separatrices emanating from the left and right saddle points. The separatrix loop at the center defines the region of stable trajectories of the pendulum in a neighborhood of the point (aj 0). The curves have been plotted by numerically solving equation (5.1) by the Runge-Kutta fourth-order method for the parameter values: Z =10, p = 0.2, ki = 1.5. For the trajectory converging to the point (a0, 0), k2 = 0.05.

Let us differentiate the function £e by virtue of Eq. (5.1) with k2 > 0. This yields

d£e , 2 (( 2 \ 1

Denote

Ma, (, p) = ( ( 1 + ^ p + i cos(e - a)

Then all trajectories inside the separatrix loop tend to the minimal value of £€, namely, to the point (ao, 0), if the following condition is satisfied:

f€ (a, Z, p) > 0, Va e (ai ,am), am = maxae£ (a), L = {(a,(a)\£i\a=ai}. (5.6) The main result of this section is the following theorem.

Theorem 2. Equation (5.1) has an asymptotically stable equilibrium point with coordinates (a0,0) on the phase plane provided that the function h has the form (5.2) with coefficients k1 and k2 satisfying condition (5.6). Trajectories lying inside the separatrix loop defined by equation (4) with a = ai, where \ai\ < \aj\, i,j = 1,2, tend to (a0,0) as t — œ. At the point (a, a) = (a0,0, ) the acceleration of the wheel is ¡3 = 0, i.e., the wheel can rotate with constant velocity.

6. Stabilization of a pendulum on a soft surface

During motion on a smooth soft surface the wheel gets into a hole and for incipient motion the torque must exceed some threshold value. Here we denote the coefficient, similar to the coefficient of rolling friction, by v.

For motion on a soft surface the following model is adopted.

If the wheel is not locked, then it is acted upon by the rolling friction torque v sgn(î).

If the wheel is locked and the absolute value of the torque of the wheel is smaller than the value of v, then the rolling friction torque is unknown, but lies in the interval (—v, v).

If during the lock-up of the wheel the absolute value of the wheel's torque becomes larger than the value of v, then the wheel begins to rotate and the whole inverted wheeled pendulum starts to move.

The motion on a horizontal soft surface is defined by the differential inclusion:

à — sin(a) + = pcos(a)f3, (Z + 2)p /5 g F(a,a,a, $). (6.1)

Denote

2

/ = — (àœs(a) — a2 sin(o;)) Z H—h.

p

In (6.1) the map F (a, a ,a, $) has the following structure:

f — v sgn(/5), {y/3 = 0}; F (a, a a ( v, v ), {$ = 0}U{\f \ < v};

f — v sgn(/5), {/3 = 0}u {{a, a, a} g{ \ f \> v}}.

Differential inclusions are often used to describe the motion with dry friction [18]. Rolling friction is an analog close to it. It is convenient to regard the differential inclusion (6.1) as two different dynamical systems: for the wheel lock mode and for the rotating wheel.

If the wheel is locked, /5 = 0, then / = const. The equation for the deflection angle of the pendulum is

à — sin(a) + + k2a) = 0. (6.2)

This equation can be regarded as an equation of the mathematical pendulum with dissipation and additional torque.

The obvious equilibrium position for Eq. (6.2) is (a, a) = (0,0). If k1 > (Z/p), this is the only steady-state solution of the equation and this solution is stable.

If k1 < (Z/p), the solution (a, a) = (0,0) is unstable, and in the interval a G (—n,n) there exist two more steady-state solutions to this equation —n < a1 < 0 < a2 < n. These solutions are stable foci when k2 > 0.

If the values of a1 and a2 with k1 < (Z/p) are such that 2k1 p\ a1>2 \ ^ v, then there exist two stable stationary positions of the wheeled pendulum in which the wheel remains locked.

If the values of a1 and a2 with k1 < (Z/p) are such that 2k1 p\a1>2 \ > v, then there exists no stable equilibrium position with the wheel locked.

This implies that in the case of a small deviation from the equilibrium position the deflection angle of the pendulum will begin to change and this change will lead to a change in the control torque of the wheel. The wheel will start to move.

Let us consider the dynamics of the pendulum on the segments of a trajectory with definite sign sgn(/5). The equation for a is

— /11 A „;„/„A ZA,2„:„/I„A I„ /1 , 2

(2 + Z sin (a))â = (2 + () sin(a) - |a2sin(2a) - 2p + - ) (kia + k2a)~

2

- cos(a)(kia + k2à) + sgn(/5)z/cos(a:). p

On the segments with constant sign sgn(/) and with k2 = 0 this equation has the conservation law

£v = + i sin2(a)C^ a2 + (( + 2) cos(a) - z/sgn(/3) cos(a)+

/2 2 / 2 k\ I -(asin(o;) + cos(a)) + a p ( 1 + -

If k2 = 0, then by virtue of this equation the derivative has the following form:

£v = -2k2a2 + 0 p + i cos(a)

If the wheel is not locked, then the equation for stationary positions of the pendulum has the form

hp = {v sgn(jg) cos(a) + (( + 2) sin(q))p2

C a 2(C + 2)p2 + 2cos(a)C ' l'j

If this equation has three solutions for each of the cases sgn(//) = ±1 —n/2 < a± < a± < a± < n/2, then at the point a± the function has a minimum. For the cases sgn(/) = ±1 the minimum points of the function are such that a- < 0 < a+.

0.04 0.03 0.02 0.01 0

-0.01 -0.02 -0.03 -0.04

-1 -0.5 0 0.5 1

a

Fig. 5. The figure shows two curves corresponding to the right-hand sides of Eq. (6.3) with sgn(//) > 0 and sgn(/3) > 0 for the values Z =10, p = 0.2, v = 0.5. The straight line corresponds to the the left-hand side of Eq. (6.3).

When the pendulum is stabilized at points a±, under the condition 2k2|ao| > pv, the acceleration of the pendulum's wheel is

The constant acceleration of the wheel leads to an increase in the velocity of motion of the wheeled pendulum and eventually to the loss of stabilization when the maximal rotational speed is exceeded of which the motor rotating the wheel is capable. A numerical example for uniformly accelerated rotation of the wheel is given in Fig. 6.

0.08

0.06

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

0.04

0.02

0

-0.02

-0.04

-0.06

-0.08

-0.1

Fig. 6. The solution to Eqs. (6.1) with initial conditions t = 0, a = —0.1, a = —0.1, /3 = 0,$ = 0.1 and with a proportional-plus-derivative action control law, where ki = 1.5, k2 = 0.2. The left figure shows the stabilization of the rotation angle of the pendulum a, and the right figure shows the steady-state linear dependence of the rotation angle of the wheel / on time t. The friction coefficient is v = 0.05.

If 2k2 | a± | ^ pv, then /5 = 0 and the stabilization on a± leads to the inequality

< (- sin(a±) + < v. (6.4)

cos(a0 ) V (J

Thus, for stabilization it suffices to construct a control that stabilizes the pendulum at the point a = 0 or in its small neighborhood.

To stabilize motion in this situation it suffices to introduce an integral component into the wheel's control system:

h = k1 a + k2a + k3 J a(9) d0.

As a result of introduction of the integral component into the control law, a term that increases linearly in absolute value for any constant values of a = 0 is added to the autonomous equation of motion for a. So that there exists the only steady-state solution a = 0. Indeed, let us denote

T

A = J add.

o

Then the following third-order equation holds for A:

(2 +(sin2(A))A = (2 + ()sin(A) - |A2 sin(2i) + sgn(/3)z/cos(i) -

2p + 0 (kiA + k2A + k3A) - ^cos(i)(fcii + k2A + k3A).

The steady-state solution to this equation (with a = A = 0) is

A± =

± sgn(/3)Zvp

(2ksZ + 4ks) p2 + 2ksZ' RUSSIAN JOURNAL OF NONLINEAR DYNAMICS, 2020, 16(3), 421 436

Let us take the formula

T

h = k\a + k2a + A± + k3 j a dO.

T ±

As a result, the equation for a with motion /3 = 0 and with t > t± takes the form of an equation of motion along a horizontal line with an additional integral term:

(sin2(a)( + 2)ol = (( + 2) sin(a) - ^a2( sin(2a) -2 Q cos(a) + + 0 p^j |' kia + k2á + k3 J add^j. (6.5)

When k2 = k3 = 0, the conservation law coincides with the conservation law for the motion of the pendulum along the horizontal line:

So = + ^ sin2(a)(^ a2 + (( + 2) cos(a) + k\ ^-(asin(o:) + cos(a) + a2p + ^

Let us differentiate E0 by virtue of Eq. (6.5) on the segment of motion without change of sign sgn(/3) = const:

^ = -2k2 ( + p + ^ cos(a)) + K¿á J ■

Here k3 = k3/k2.

When k3 = 0, the motion coincides with the motion along the horizontal line, for which the statement of stability of the steady-state solution (Theorem 1) has been proved. When k3 > 0, the term with the integral on the right-hand side of the formula is not sign-definite. However, for sufficiently small values of k it may be expected that the integral addition will not lead to the loss of stability of the zero value of a.

To investigate stability for small values of a, we consider the linearized equation (6.5) in a neighborhood of (a, a) = (0,0):

a, = —k3s J a{9) dd — k2sà, — ^s — ^ — l^j a,

where

'2p 1

-T+P + -( P

Let us differentiate this equation with respect to t. Then the characteristic equation for the third-order equation is

A3 = -k3s - k2s\2 -(s-Î-ij A.

Denote the solutions to this equation by Xj, j = 1,2,3. In the general position case the stability condition for (a, a) = (0,0) is

Re(Xj) < 0, j = 1,2,3.

If we consider small values of k2 and k3, then the stability condition takes the form

2p 1

-T+P + -( P

h > | +1,

0 <k3 <k2

2P 1

-T+P + -( P

(6.6)

Let us formulate the main statement.

Theorem 3. There exist k0 > 0 and k0 > 0 such that Eq. (6.5) in the interval sgn(/j) = = const has an asymptotically stable equilibrium point with coordinates (a0,0) on the phase plane under condition (6.6), where k2 < k0 and k3 < k0.

0.05 -

0.04

0.03

;\0.02 -

œoi 0s ; .ft

oof --"0008 0.006 0.004 0.002

0.02

< 0

"iT

S-0.02

-0.04

1 "

H/j:

8410 8430 8450 8415 8417 8419 8421

t t

8410 8430 8450

t

8410 8420 8430

t

Fig. 7. A solution to (6.1) with initial conditions t = 0, a = —0.1, a = —0.1, ¡3 = 0, /3 = 0 and with a proportional plus integral plus derivative action control law, where ki = 1.5, k2 = 0.2, k3 = 0.05. The upper panels show the stabilization of the rotation angle of the pendulum a; the row of panels second from the top shows the rate of change in the rotation angle a; the row of panels third from the top shows a graph of the value of the integral component in the controller A = fj a(0) d0; the lower row of panels shows the velocity of the wheel /3(t). The parameters of the pendulum are Z =10, p = 0.2, and the friction coefficient is v = 0.1.

Theorem 3 provides a qualitative description of the dynamics of a wheeled pendulum controlled by a PID controller. Typical stages are presented in Fig. 7, which illustrates calculation results for a wheeled pendulum on a soft surface. In particular, the row of graphs third from the top shows how fast the integral component of the controller increases. Then it stabilizes until the rotational velocity of the wheel ¡3 changes sign. In the interval with a stable value of the integral component one has (a, a) — (0,0) and ¡3 — —0.

The limiting value A = A-, a = 0, a = 0, ¡3 = 0 is a steady-state solution which is stable below, but unstable above when /5 = 0 + 5 V5 > 0. With the perturbations present in the real system and with the round-off errors generated in the computational scheme this leads eventually to a change of the sign of ¡3.

After the change of the sign of ¡3 the system rearranges itself fast. The integral component stabilizes at the new value A = A+. The process of stabilization repeats itself: (a, a) — (0,0) and ¡3 — +0. In this case, the limiting solution A = A+, a = 0, a = 0, ¡3 = 0 is a steady-state solution stable above, but unstable below. With the passage of time, due to perturbations in the real system or round-off errors in the numerical scheme, ¡3 eventually changes sign and the process repeats itself. This gives rise to a limit cycle with a period depending on a random quantity — perturbations in the real system or a pseudo-random variable — a round-off error in the numerical scheme.

Figure 8 shows projections of trajectories onto the phase planes (a, a) and (¡,¡3).

a P

Fig. 8. A solution to (6.1) with initial conditions t = 0, a = —0.1, a = —0.1, ¡3 = 0, ¡3 = —0.1 and with a proportional plus integral plus derivative action control law, where ki = 1.5, k2 = 0.2, k3 = 0.05. The figure shows a limit cycle for the rotation angle of the pendulum a, the right panel shows a stable limit cycle on the phase plane (3,33). The parameters of the pendulum are Z =10, p = 0.2, and the friction coefficient is v = 0.1.

7. Conclusion

In this paper it is shown that for stabilization of the wheeled pendulum on a smooth and inclined surface it suffices to use a proportional plus derivative action controller.

For stabilization of the wheeled pendulum on a soft surface, the proportional plus derivative action controller can stabilize the pendulum in the upper position, but in this case the wheel moves with constant acceleration. To stabilize the rotational velocity of the wheel, it is proposed to use the proportional plus integral plus derivative action controller. It turns out that stabilization on a soft surface occurs on the limit cycle near the state of unstable equilibrium of the pendulum.

References

[1] Andrievsky, B.R. and Fradkov, A.L., Selected Chapters of Control Theory with Examples in MATLAB, St. Petersburg: Nauka, 1999 (Russian).

[2] Astrom, K.J., Block D.J., and Spong M.W., The Reaction Wheel Pendulum, San Rafael, Calif.: Morgan & Claypool, 2007.

[3] Halkyard, C. R., Chan, R. P. M., and Stol, K. A., Review of Modelling and Control of Two-Wheeled Robots, Annu. Rev. Control, 2013, vol.37, no. 1, pp. 89-103.

[4] Formalskii, A.M., Stabilization and Motion Control of Unstable Objects, Stud. Math. Phys., vol.33, Berlin: de Gruyter, 2015.

[5] Martynenko, Yu. G. and Formal'skii, A. M., Controlled Pendulum on a Movable Base, Mech. Solids, 2013, vol.48, no. 1, pp. 6-18; see also: Izv. Akad. Nauk. Mekh. Tverd. Tela, 2013, no. 1, pp. 9-23.

[6] Colombi, S., Grasser, F., D'Arrigo, A., and Rufer, A. C., Joe: A Mobile, Inverted Pendulum, IEEE Trans. Ind. Electron., 2002, vol.49, no. 1, pp. 107-114.

[7] Pathak, K., Franch, J., and Agrawal, S.K., Velocity and Position Control of a Wheeled Inverted Pendulum by Partial Feedback Linearization, IEEE Trans. Robot., 2005, vol.21, no. 3, pp. 505-513.

[8] Francovsky, P., Dominik, L., Gmiterko, A., Virgala, I., Kurylo, P., and Perminova, O., Modeling of Two-Wheeled Self-Balancing Robot Driven by DC Gearmotors, Int. J. Appl. Mech. Eng., 2017, vol. 22, no. 3, pp. 739-747.

[9] Nasrallah, D. S., Michalska, L., and Angeles, J., Controllability and Posture Control of a Wheeled Pendulum Moving on an Inclined Plane, IEEE Trans. Robot., 2007, vol. 23, no. 3, pp. 564-577.

[10] Kunz, T., Teeyapan, K., Wang, J., and Stilman M., Robot Limbo: Optimized Planning and Control for Dynamically Stable Robots under Vertical Obstacles, in IEEE Int. Conf. Robot. Autom. (Anchorage, Alaska, May 3-8, 2010), pp. 4519-4524.

[11] Stol, K., Kausar, Z., and Patel, N., Performance Enhancement of a Statically Unstable Two Wheeled Mobile Robot Traversing on an Uneven Surface, in 2010 IEEE Conference on Robotics Automation and Mechatronics (RAM), pp. 156-162.

[12] Stol, K., Kausar, Z., and Patel, N., The Effect of Terrain Inclination on Performance and the Stability Region of Two-Wheeled Mobile Robots, Int. J. Adv. Robot. Syst., 2012, vol.9, no. 5, 11pp.

[13] Astrom, K.J. and Hagglund, T., PID Controllers: Theory, Design, and Tuning, 2nd ed., 1994.

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

[14] Kiselev, O.M., Mathematical Foundations of Robotics, Oryol: Kartush, 2019.

[15] Shimada, A. and Hatakeyama, N., Movement Control Using Zero Dynamics of Two-Wheeled Inverted Pendulum Robot, in 10th IEEE International Workshop on Advanced Motion Control (Trento, Italy, March 26-28, 2008), pp. 38-43.

[16] Ahmad, M. A., Nasir, A. N.K., and Raja Ismail, R. M.,T., Performance Comparison between Sliding Mode Control (SMC) and PD-PID Controllers for a Nonlinear Inverted Pendulum System, in 11th Internat. Conf. on Control, Automation, Robotics and Vision (ICARCV 2010), pp. 122-127.

[17] Maddahi, A., Shamekhi, A.H., and Ghaffari, A., A Lyapunov Controller for Self-Balancing Two-Wheeled Vehicles, Robotica, 2015, vol.33, no. 1, pp. 225-239.

[18] Filippov, A.F., Differential Equations with Discontinuous Righthand Sides, Math. Appl., vol.18, Dordrecht: Springer, 1988.

i Надоели баннеры? Вы всегда можете отключить рекламу.