scieee AI-readable full text Open interactive document viewer

Dynamic Feedback Linearizability of Mobile Vehicles with Active Caster Wheels

Povill Clarós, Xavier,Quiles Pastor, Daniel,Ramis Vich, Bernat,San Martin Suárez, Lara

Abstract

In this article, a controller for the non-linear dynamics of a caster wheels vehicle is designed, using the method of dynamic feedback linearization. Numerical simulations of the performance of the controller are included

Full text

Dynamic Feedback Linearizability of Mobile Vehicles with Active Caster Wheels Xavier Povill Clar´os,∗Daniel Quiles Pastor, Bernat Ramis Vich, and Lara San Mart´ın Su´arez Universitat Polit`ecnica de Catalunya (Barcelona Tech) (Dated: May 31, 2022) In this article, a controller for the non-linear dynamics of a caster wheels vehicle is designed, using the method of dynamic feedback linearization. Numerical simulations of the performance of the controller are included. Keywords: Actively driven caster wheels, dynamic feedback linearization, differential flatness, non-linear control The aim of this article is to design a non-linear controller for the dynamical system arising from the equations of motion of a caster wheels vehicle (given the initial position of the vehicle and the desired final position). I. INTRODUCTION In this first part, the basics of the dynamic feedback linearization techniques that will be used later will be reviewed. In linear control theory, there exists a characterization of controllable systems based on the controllability matrix [1]. However, finding out whether a non-linear system is controllable and, if it is so, designing a control, still remains an open problem. The models considered are expressed in affine form: ˙x=f(x) + m X k=1 gk(x)uk(1) where x∈Rnis the vector of state variables and uk∈ R, k = 1,...m are the control variables. Consider that f(x), gk(x)∈Rnare known vector functions of the state variables. The aim consists in choosing the control functions uk(x), k = 1,...msuch that xgoes from the starting state x0to a certain final state xf. Notice, however, that in some cases this is not possible. If the system was single input (m= 1) we would wish to find a diffeomorphism T:Rn→Rnfor the state variables y=T(x), together with a feedback law ¯u= α(x)+β(x)u, such that, in the new state variables y, the system reads: ˙y=       0 1 0 0 . . . 0 0 1 0 . . . . . .... 0. . . 0 0 1 0. . . 0 0 0       y+       0 0 . . . 0 1       u(2) ∗[email protected] This is called Brunovsky canonical form. A system is said to be static feedback linearizable (SFL) if there exists such a diffeomorphism T(and a feedback law) that turns the system into (2) [2]. The system (2) is clearly controllable, since the last state variable is accessible via a control, and the variable yihas access to the variable yi−1, for i= 2, . . . , n. In the multi-input case (m > 1), it is desirable to find the diffeomorphism Tthat decouples the system into m independent subsystems, such that each subsystem looks like (2) and each state variable is not involved in any other subsystem but its own. Since the state variables belong to a differentiable manifold, let us introduce several tools that come in handy. A distribution Dgenerated by a set of vector fields {X1, . . . , Xr}is the set of all vector fields over a manifold that can be generated by linear combinatons of {X1, . . . , Xr}using any set of functions {F1, . . . , Fr}over the manifold as coefficients: D= {Pr i=1 Fi(x)Xi(x),for any set of functions F1, . . . , Fr}. Also recall the concept of Lie derivative of functions and vector fields (an introduction to the topic can be found in [3]). Notice, as a particular case, that the temporal derivative of a function of the state variables is equivalent to computing the following Lie derivative: ˙ h(x) = Lfh(x) + Pm i=1 Lgih(x)ui. A distribution Dgenerated by the vector fields {X1, . . . , Xr}is said to be involutive if [Xi, Xj] = 0 for any pair of generating fields, i, j = 1, . . . , r. All in all, the algorithm we follow to static feedback linearize systems in affine form is: 1. Compute the following distributions: •D0=< g1, g2, . . . , gm> •D1=< g1, g2,...gm, adfg1, . . . adfgm> •. . . •Dk=< g1, g2, . . . , adfg1, . . . adfgm,..., gm, adk fg1, . . . adk fgm> up to k∈Nsuch that Dk=Rn. Note that the notation adr fgistands for the r-th Lie bracket of the vector fields giwith respect to f, i.e. adr fgi:= [f, [. . .(r),[f, gi]. . . ]. 2 2. Check that all these distributions are involutive. Otherwise, the system will not linearizable. 3. If diis the dimension of Di, define r0=d0,r1= d1−d0, . . . , rk=dk−dk−1; and let kj, j = 1, . . . , m be the number of ri, i = 1, . . . , k that are greater or equal to j. 4. Find mfunctions h1, . . . , hmsuch that dhi⊥Dki−2 and such that h1, . . . , hmare differentially independent. This step consists in solving a system of partial differential equations. 5. The diffeomorphism is given by the hi, i = 1, . . . , m functions and their Lie derivatives: y=                        h1(x) Lfh1(x) . . . Lk1−1 fh1(x) h2 . . . Lk2−1 fh2(x) . . . hk . . . Lkm−1 fhm(x)                        (3) Moreover, the feedback control law is: W=       Lk1 fh1(x) Lk2 fh2(x) . . . Lkm fhm(x)       +       Pm i=1 LgiLk1−1 fh1(x)ui Pm i=1 LgiLk2−1 fh2(x)ui . . . Pm i=1 LgiLkm−1 fhm(x)ui       (4) As remarked in step 2, a system may not be linearizable through this algorithm. Luckily, there exist techniques to transform a system into an equivalent one that is static feedback linearizable. The whole process is called dynamic feedback linearization. Aprolongation of a system like (1) consists in setting some controls ukas state variables as follows: For a given control variable ui, add the new state variables z1, . . . , zrto the system: z1=ui ˙z1=z2 ˙z2=z3 . . . ˙zr=v where vis the new control. This prolongation can be applied for as many control variables as wished and for any r∈N. II. KINEMATIC MODELS The kinematic model of a mobile vehicle with two caster wheels will be presented in order to study the effect of adding an offset in one wheel to the control of the system. In particular, it will be considered that each wheel has two rotating axes along the normal vector and parallel vector to the ground plane. Coordinates (x, y) will refer to the connection of the front caster wheel with the board in the inertial frame, θto the angular orientation of the board and θito the angular orientation of the front (i= 1) and back (i= 2) caster wheels with respect to the vehicle. The mobile vehicle is assumed to be a rigid body, the caster wheels are assumed to not slip on the ground and the height of the vehicle is assumed to remain constant. The connections of the caster wheels with the board are equally spaced to the center of the board by a distance a. The parameter γ2is defined as l2sin β2, the distance offset to the back caster wheel, where β2corre- sponds to the angle offset of the back caster wheel with respect to the perpendicular position. Fig. 1 provides a schematic of the vehicle. FIG. 1. Schematic of the mobile vehicle with two caster wheels and offsets. The dynamic equations of the system are presented in (5). Two variations of the problem will be studied: •Model 1: γ2= 0 •Model 2: γ2= 0       ˙x ˙y ˙ θ ˙ θ1 ˙ θ2       =       0 0 cos(θ+θ1) 0 0 sin(θ+θ1) 0−γ2 γ2+2acos θ2 sin(θ1−θ2) γ2+2acos θ2 1 0 0 0 1 0         u1 u2 uR  (5) III. CONTROL DESIGN In both systems it is easy to check that they are not SFL since the distribution D0=< g1, g2, g3>generated by the control functions is not involutive, in both cases because [g1, g3] is not generated by D0. That means that 3 it is necessary to find a prolongation to get an SFL system. In both models the prolongation is the same. It is defined by taking z=uRas a new state variable. Let v be the control of this new variable. Then the new system is:         ˙x ˙y ˙ θ ˙ θ1 ˙ θ2 ˙z         =         cos(θ+θ1)z sin(θ+θ1)z sin(θ1−θ2) γ2+2acos θ2z 0 0 0         +         000 000 0−γ2 γ2+2acos θ20 100 010 001           u1 u2 v   (6) The corresponding distributions that are obtained from that system are (using tangent space notation): D0=<∂ ∂θ1 ,γ2 γ2+ 2a·cos(θ2) ∂ ∂θ +∂ ∂θ2 ,∂ ∂z > D1=< D0,−γ2sin(θ+θ1)z γ2+ 2a·cos(θ2) ∂ ∂x +γ2cos(θ+θ1)z γ2+ 2a·cos(θ2) ∂ ∂y + +(γ2cos(θ1−θ2)+2a·cos(θ1))z (γ2+ 2a·cos(θ2))2 ∂ ∂θ ,sin(θ+θ1)z∂ ∂x− −cos(θ+θ1)z∂ ∂y −cos(θ1−θ2)z γ2+ 2a·cos(θ2) ∂ ∂θ ,−cos(θ+θ1)∂ ∂x− −sin(θ+θ1)∂ ∂y −sin(θ1−θ2) γ2+ 2a·cos(θ2) ∂ ∂θ > (7) Clearly D0is involutive, because no pair of the givectors has a cross dependence between variables. Moreover, the distribution D0has constant rank if γ2+2a·cos(θ2)= 0. D1has 6 components, so we only need to check that they are independent (that means that they span R6). The determinant of the vectors is: det(D1) = z22a·cos(θ1) (γ2+ 2a·cos(θ2))2(8) According to equation (8), D1=R6if z= 0 (meaning the control uR= 0), θ1=±π/2 (meaning the front wheel is not perpendicular to the orientation of the vehicle) and θ2= arccos(−γ2/2a), which limits the maximum angle of the back wheel and is also necessary for having the vectors of both distributions be well defined. In case of the model 1, with γ2= 0, the last condition simplifies to θ2=±π/2 Therefore, under the restrictions listed above, with this prolongation both models are SFL. The diffeomorphism to obtain the Brunovsky canonical form will now be constructed. According to the theory explained above, one can find that r0=d0= 3, r1= d1−d0= 6 −3 = 3 (di= dimension of Di)⇒k1=k2= k3= 2. So it is necessary to find dh1, dh2, dh3⊥D0 A. No offset In this model, the functions hiare trivially obtained: h1=x h2=y h3=θ Computing the temporal derivatives of the hifunctions we get the diffeomorphism: y=        y1 ˙y1 y2 ˙y2 y3 ˙y3        =         x cos(θ+θ1)z y sin(θ+θ1)z θ sin(θ1−θ2)z 2a·cos(θ2)         (9) And the regular feedback law: W=  w1 w2 w3  =   −sin(θ+θ1) sin(θ1−θ2)z2 2a·cos(θ2) cos(θ+θ1) sin(θ1−θ2)z2 2a·cos(θ2) 0   + +  −sin(θ+θ1)z0 cos(θ+θ1) cos(θ+θ1)z0 sin(θ+θ1) cos(θ1−θ2)z 2a·cos(θ2) cos(θ1)z 2a·cos2(θ2) sin(θ1−θ2) 2a·cos(θ2)    u1 u2 v   (10) Where wi= ¨yiis the control in the Brunovsky form. Then, by inverting the feedback law, it is possible to get the original controls from the Brunovsky form ones (wi): v= cos(θ+θ1)w1+ sin(θ+θ1)w2 u1=−sin(θ+θ1) zw1+cos(θ+θ1) zw2−sin(θ1−θ2)z 2a·cos(θ2) u2=2a·cos2(θ2) z·cos(θ1)cos(θ1−θ2)z 2a·cos(θ2)u1+sin(θ1−θ2) 2a·cos(θ2)v−w3 (11) Now, we have all the tools to make a MATLAB program able to solve the initial and final values problem, computing the values of the controls along time. It is only necessary to decide initial and final values of the state variables in the original system, and then transform these conditions through the diffeomorphism for y. From these conditions, one can build an interpolating polynomial, which will be used to build a trajectory for the yvariables in Brunovsky’s form. Then, the new control laws ware taken to be the ki-th derivatives of these polynomials. Finally, as mentioned above, the original controls u1, u2, v can be recovered using the equations in (11). 4 B. Offset in second wheel In this model, the functions hican be taken to be: h1=x h2=y h3=θ+γ2 p4a2−γ2 2 log p4a2−γ2 2+ (2a−γ2) tan(θ2/2) p4a2−γ2 2−(2a−γ2) tan(θ2/2) Where h3is a solution of the partial differential equation: ∂h3 ∂θ −γ2 γ2+ 2a·cos(θ2)+∂h3 ∂θ2 = 0 It is easy to check that h3solves the equation and, taking into account that 2ais the distance between axis while γ2is the offset distance of the caster wheel, it seems safe to suppose that 2a>γ2, so all the square roots have real solution. As before, the new state functions ycan be obtained from the hiand their first derivatives. As h1and h2are the same as in the previous case, y1and y2as the same as before. The only changes are in y3=h3(the new one) and in ˙y3. It can be checked that the derivative reduces to: ˙y3=sin(θ1−θ2)z γ2+ 2a·cos(θ2) Computing the second derivative as before, one can obtain Wfor the Brunovsky form system. Then, inverting the relation, again one can find the original controls in terms of the controls of the Brunovsky form: vhas the same form as in the previous model (see 11) and the new controls u1and u2are: u1=−sin(θ+θ1) zw1+cos θ+θ1) zw2− −sin(θ1−θ2)z γ2+ 2a·cos(θ2)−γ2 γ2+ 2a·cos(θ2)u2 u2= ˜u2·z·cos(θ1) 2a·cos2(θ2)·(γ2+ 2a·cos(θ2))2 (γ2cos(θ1−θ2)+2a·cos(θ1)) (12) Where ˜u2is u2from model 1 (11). As u2only depends on u1and the state variables, substituting it in u1one can obtain u1as a function of the state variables and the Brunovsky form controls wi. As before, we have now all the tools necessary to solve the problem of initial and final values numerically. IV. NUMERICAL SIMULATION The previous controller has been implemented in Matlab. To solve the system of ODE’s, the numerical integrator ode45 is used. This integrator is based on the Dormand-Prince method (a combination of 4th and 5th order Runge-Kutta). The chosen initial and final conditions are        x0 y0 θ0 θ10 θ20 z0        =        0 0 0 0 0 1        ,        xf yf θf θ1f θ2f zf        =        5 10 0.9 0.3 0.5 1        together with parameters T= 2 and a= 5. After the numerical simulation, the error of the final value of the state variables in 2-norm is 7.83·10−4for the first model (γ2= 0) and 1.35 ·10−3for the second model (γ2= 1). Figure 2 shows the time evolution of both systems, which is quite similar. One can observe that the trajectories are quite smooth and monotonous (except for the angles of the wheels θ1,θ2and the control z=uR). In order to implement the system in practice, the remaining controls could be recovered from equations (11) and (12). FIG. 2. Time-evolution of the model with γ2= 0 (up) and γ2= 1 (down). 5 [1] J. Franch and S. Agrawal, Non-linear control. [2] A. Isidori, Nonlinear Control Systems, 3rd ed. (Springer, London, 1995). [3] X. Gr`acia, Varietats Diferenciables: Definicions i resultats (2020).