Positional control of rotary servo cart system using generalized dynamic inversion

This paper presents the design approach of Generalized Dynamic Inversion (GDI) for angular position control of SRV02 rotary servo base system. In GDI, linear first order constraint differential equations are formulated based on the deviation function of angular position and its rate, and its inverse is calculated using Moore-Penrose Generalized Inverse to realize the control law. The singularity problem related to generalized inversion is solved by the inclusion of dynamic scaling factor that will guarantee the boundedness of the elements of the inverted matrix and stable tracking performance. Numerical simulations and real-time experiment are performed to evaluate the tracking performance and robustness capabilities of the proposed control law considering nominal and perturbed model dynamics. For comparative analysis, the results of GDI is compared with conventional PID control. Simulation and experimental results demonstrate better angular position tracking for the square-wave and sinusoidal waveforms, which reveals the superiority, and agility of GDI control over conventional PID.


Introduction
Servomotor based on rotary cart system is essential for the modern-day industries and a powerful tool for real world applications.Depending upon the type of production plant, position and speed control of servo system can be of major importance.They are extensively used in electrical vehicles, robotic manipulators, automated factories, aircrafts, etc. [1] because of its accuracy, reliability, low cost, less power utilization, and compatibility with digital systems [2].The high precision required in position tracking is very crucial for evaluating the performance of servo motor system.Inaccurate position tracking will lead to experimental failure, such as bad tracking properties of actuators will affect the stability of entire missile control system.Therefore, it is imperative to develop the control algorithms to improve the tracking performance and accuracy of servo motor systems.The inherent attributes of servo motors such as parametric uncertainties, load inertial torque, nonlinear friction, load variations and torque disturbances impose more complications and challenges to design the precise tracking control system [3].
To solve these challenges, several control methods are proposed in literature to eliminate the influences of the above factors.Linear control technique such as Proportional Integral Derivative (PID) [4], and Linear Quadratic Regulator (LQR) [5], are efficient, however their performance might deteriorate due to nonlinearities and parametric uncertainties.Therefore, to design effective tracking control system, several nonlinear control techniques are considered such as Back stepping control [6,7], Adaptive control [8,9], Fuzzy control [10,11], Neural networks [12].Furthermore, Sliding mode controllers [13][14][15] are used extensively for servo motor control applications, because of its inherent robustness characteristics.However, the influence of chattering on the control signal is inevitable and therefore the selection of controller gain is a trade-off between smooth control action and tracking control accuracy.Besides these, state feedback based Fractional order controller is also designed for better tracking performance of servo cart system [16][17][18].
Among nonlinear control, Generalized Dynamic Inversion (GDI) is a constraint based control approach, in which rather to invert the entire system equations of motion, dynamic constraints are defined which contains the control objectives and are inverted using Moore-Penrose Generalized Inverse (MPGI) based Greville method [19].Hence GDI methodology overcome the limitations associated with classical Nonlinear dynamic inversion control, which includes cancellation of useful nonlinearities, simplifying assumptions required to invert the nonlinear plant dynamics, large control effort and square dimensionality restrictions.GDI control technique had been applied for several aerospace and robotics applications [20][21][22][23][24][25][26].
In this paper, GDI control is applied for the angular position tracking of SRV02 rotary servo base system.It begins with prescribing the set of linear first order constraint differential equations which encompasses the essential control objectives.The constraint dynamics are evaluated along the trajectories of angular position and its rate and are inverted using MPGI based Greville method to obtain the control law.The singularity problem is addressed by including a first order asymptotically stable dynamic scaling factor in the expression of MPGI.To evaluate the performance of GDI control, numerical simulations and real time experiment are performed on Quanser's SRV02 servo base system, to analyze the tracking capabilities of GDI control law.
The remaining part of the paper is organized as follows: The mathematical modeling of SRV02 rotary servo base system is presented in Section 2. The formulation of constraint dynamics in the form of differential equations for angular position control using GDI is discussed in Section 3. The inclusion of dynamic scale factor to deal with the singularity problem associated with GDI is shown in Section 4. The semi-global partial closed loop stability of GDI control is presented in Section 5. Numerical simulations and experimental results are discussed in Section 6, whereas conclusion is presented in Section 7.

Mathematical modeling
The SRV02 rotary servo base system provides hardware in loop experimental research platform for rapid prototyping of real-time control.This platform is designed for position and speed control applications and being utilized to validate the performance of various control algorithms.In this section, the dynamical modeling of SRV02 servo system is presented.The schematic diagram of a SRV02 rotary servo base unit is shown in Fig. 1 [27].In the schematic diagram, the electrical circuit elements  ,  ,  and  are denoted for motor resistance, inductance, back-emf and back-emf constant respectively.Angular positions, speeds and torques are expressed by  ,  ,  and  ,  ,  respectively for the motor shaft and the load shaft of rotary servo base unit.The parameters  and  represents the gear number of teeth, whereas moment of inertia and viscous friction coefficients are considered as  ,  and  ,  for the motor and load shaft respectively.The electrical and mechanical dynamical equations are combined to obtain the expression of the angular speed of the load shaft  with respect to the applied input voltage  of the motor, resulting in: where  represents equivalent moment of inertia and  is the equivalent damping term and is expressed as: where,  represents the equivalent viscous friction,  is the gear ratio,  is the efficiency of the gearbox,  is the efficiency of the motor,  is the motor torque constant and  denotes the actuator gain, defined as:

Design of GDI control
The autopilot for angular position control of SRV02 rotary servo base unit is based on GDI.The dynamical equations of SRV02 servo system given by Eqs.(1-2) can be expressed as: where  = −  ,  and  =   .To precisely tracks the angular position  and the angular velocity  , the squared error norms of the state deviation functions are defined as: where  = ( −  ) and  = ( −  ).In Eqs.(5)(6),  and  are the positive real valued constants, the letter  denotes the error of the corresponding state from its desired value, and the subscript  represents the desired value.Based on the deviation functions, linear time varying ordinary differential constraint equations are formulated, whose differential orders are equivalent to the relative degree of the deviation functions.The equation takes the following form: where the coefficients  ,  and  are selected appropriately, such that the constraint differential equations given by Eqs.(7)(8) are uniformly asymptotically stable [28].The first and second time derivatives of constraint dynamics given by Eq. ( 7) are calculated as: Similarly, the first-time derivative of constraint dynamics given by Eq. ( 8) is computed as: By placing the time derivatives given by Eqs.(9)(10)(11) in the constraint dynamics described by Eqs.(7)(8), its differential forms are transformed into an algebraic expression, given as: or: where: Eq. ( 13) is an under-determined algebraic system having infinite number of solutions.These solutions can be parameterized by generalized inversion using the Greville method, which yields: where  is the MPGI of  given as: and  is the null control, and  is the null projection given by: The matrix  × appeared to be a tall matrix, which causes the element of  becomes zero by using the property of pseudo inverse   = 1.Hence the null control is supposed to be incompetent and therefore not considered in the present control design methodology.
Generalized inversion has its limitations when it is applied to matrices with variable elements due to the singularity problem.This problem arises when the inverted matrix tends to change its rank, which causes discontinuity in the MPGI matrix function, and causes the elements to go unbounded.In this paper, dynamic scale factor is augmented within MPGI to address the problem of singularity.

GDI singularity avoidance
For singularity avoidance, a linear first order dynamic scaling factor  is introduced within MPGI [21], defined as: The homogeneous part of Eq. ( 21) is asymptotically stable, whereas  in the forcing term is a positive real valued constant.The Dynamically Scaled Generalized Inverse (DSGI) is written as: Based on this, the updated GDI based control input voltage is given as: and the closed loop dynamics given by Eq. ( 4) is therefore expressed as: Theorem 1.For the closed loop systems depicted by Eq. ( 3) and Eq. ( 24), the elements of  * are always bounded for all  > 0.
Proof.As time tends to infinity, the asymptotically stable first order dynamics given by Eq. ( 21) satisfies: Hence: In reference to Eq. ( 26), as   is positive definite, so the inverse of  is definitely exist if the right part of Eq. ( 25) is finite and non-zero.However, the inverse exists for the two limit conditions still need to be verified given as: If the first limit condition holds true then Eq. ( 26) implies that: If the second limit condition is satisfied then Eq. ( 26) yields: which indicates that the control input voltage  * given by Eq. ( 23) approaches to  given by Eq. (18) showing that the constraint dynamics given by Eqs.(7)(8) are asymptotically stable as the elements of  * are bounded.Nevertheless, asymptotic realization of Eqs.(7-8) implies that the error vector   asymptotically vanishes, which contradicts the second limit condition of Eq. (27).Therefore, occurrence of the second limit condition is impossible.

Global practical asymptotic stability of GDI
The semi-global asymptotic stability of the constraint dynamics given by Eqs.(7)(8) are guaranteed by the control input voltage given by Eq. ( 18).This yields that the equilibrium error state of the solution trajectories of the MPGI-based closed loop dynamics given by Eqs.(3-4) from the desired solution trajectories is asymptotically stable concerning   =  × [9].The similar attribute is applicable on the equilibrium error state that corresponds to the DSGI based closed-loop dynamics given by Eq. ( 3) and Eq. ( 24) which is stated by the following theorem.
Theorem 2. Consider the closed loop systems given by Eq. ( 3) and Eq. ( 24), the error vector   remains bounded for all  > 0, which ensures that the equilibrium error vector is globally practical stable.
Proof.On the contrary assuming that the error vector   goes unbounded, then it follows from the asymptotically stable dynamics of dynamic scale factor given by Eq. ( 25) that: Under this assumption, the DSGI of  * is written as: which results in the asymptotic realization of the constraint dynamics given by Eqs.(7)(8).This statement is contradictory with the statement in which unboundedness of error vector is assumed.
In a similar way, if error vector   turns to zero, then the DSGI of  * implies that: Accordingly, the elements of the error vector   are always confined which illustrates that the equilibrium error state   is globally attractive.Moreover, the DSGI based control voltage enforces the error trajectories in the close vicinity of the equilibrium error vector which makes it uniformly ultimate bounded, i.e., making it globally practical stable.

Numerical simulations and experimental results
To analyze the efficiency and the tracking performance of the GDI control, numerical simulations and experimental studies are performed on Quanser's SRV02 servo system, whose major parameters along with the numerical values are listed in Table 1 [27].In the simulations, the design parameters of the proposed GDI control law are selected as  = 10,  = 1,  = 10,  = 12000,  = 60.

Square-wave tracking
In the first scenario, the servo system is required to follow the square-wave profile having amplitude of ±1 deg and a frequency of 0.4 Hz.The position tracking performance of GDI control by considering nominal servo system parameters is shown in Fig. 2(a), which indicates that the GDI control exhibits fast and accurate angular position tracking.The error convergence in the form of squared error norm is shown in Fig. 2(b).The controlled input voltage generated to perform the required maneuvering is shown in Fig. 2(c), whereas the desired and achieved angular speeds are shown in Fig. 2(d).

Robust analysis for Sinusoidal positional tracking
In this plot, a sinusoidal waveform having an amplitude of ±20 deg with a frequency 0.2 Hz is provided as the reference profile.To evaluate the robustness characteristics, the variations of 20 % in the numerical values of SRV02 system parameters are also considered.Comparative analysis of GDI is also performed with PID control scheme.The angular position tracking of the given sinusoidal trajectory is shown in Fig. 3(a), which clearly demonstrate the better tracking performance of the GDI control in comparison with PID.The squared norms of the angular position errors are depicted in Fig. 3(b), in which the error goes up to 1.5 deg by using PID control, however by employing GDI control, the error value reaches approximately 0.15 deg, which is 10 times lesser in magnitude as compared to PID, that obviously established the superiority and agility of the proposed GDI based control law.The generated control input voltages for sinusoidal angular positional tracking are shown in Fig. 3(c) which exhibit that the control input requirement is very much realizable.The initial small overshoot in the control voltage command generated by GDI, is because of the fast convergence of positional tracking error.The tracking performance of

Experimental results
The performance of the GDI control law is also established through experimental results, conducted on a laboratory test bed Quanser's SRV02 rotary servo base system.The experimental setup includes a Computer, the Rotary Servo Unit (SRV02) equipped with DC motor, gearbox, load, rotary arm and encoder, Linear Voltage Amplifier (VoltPAQ-X1) and Data Acquisition Board (G2-USB) as shown in Fig. 4.

Conclusions
This paper successfully demonstrates the design of GDI control for angular position control of SRV02 rotary servo base system.In GDI control, dynamic constraints are successfully prescribed in the form of constraint differential equations and are inverted using MPGI to realize the control law for stable position tracking.The singularity problem is addressed successfully by augmenting a delaying dynamic scale factor in the definition of MPGI.To demonstrate the effectiveness of proposed GDI control, a dynamic model of servo cart system is developed, and numerical simulations are conducted considering both nominal and perturbed dynamical model.In addition to computer simulations, real time experiment is also performed on Quanser's SRV02 rotary servo base system in presence of parametric uncertainties.Computer simulation and experimental results exhibit better angular position tracking performance of the GDI control law for the squarewave and sinusoidal trajectories.

2 .
a) Angular position tracking b) Squared error norm c) Input voltage d) Angular speed tracking Fig. Square-wave tracking

Fig. 4 .
Fig. 4. Experimental setupFor real-time experiment, a sinusoidal trajectory of ±40 deg peak to peak amplitude with the frequency of 0.2 Hz is considered as a reference profile.Furthermore, to evaluate the robustness