Abstract
In this paper, a simple active-model-based control scheme is developed for the quadrotor slung load (QSL) system. The scheme works to improve the rejection of the influences caused by the abruptly changed load as a complementary enhancement while maintaining the structure and parameters of the original controller. A linearized model is first constructed with respect to the hovering state of a quadrotor. Modeling error is then introduced to describe the uncertainties caused by the load change and the simplified model. The modeling error is actively estimated by a Kalman filter (KF), while the estimation is further integrated into a normal controller, to enhance its performance of disturbance rejection. Experiments are conducted on a quadrotor controlled by the Pixhawk, which is one of the most popular controllers commercially available on the market. The improvements of the proposed scheme are shown by the comparisons between the controls with and without the active-model-based enhancement. The experiments also indicate that, with its simple structure and less computational algorithm, this active-model-based enhancement would be a feasible approach to enhance the commercial UAV controller to handle more uncertainties.
1. Introduction
A quadrotor carrying a cable-suspended load is usually called a quadrotor slung load (QSL) system. There are distinct advantages for using a QSL system to transport cargos [1,2,3]. A QSL system can freely pass complex terrains and access the locations which are hard for the ground vehicle transportation. Also, the QSL system has better tolerance with respect to the shape and size of the cargo, while the suspended cargo can be easily loaded and unloaded even without landing the quadrotor. However, in spite of the benefits the QSL system could provide, the swing load will seriously influence the dynamics of the QSL system [4] and increase its degrees of freedom [5]. The dynamics of a QSL system are strongly nonlinear, coupled, and underactuated, remaining many challenging problems in the controller design [1,2,3,4,5]. Generally, there are two ways to improve the performance of a QSL system, namely: (1) trying to construct a more accurate model that meets the QSL dynamics so that the controller can use it to compensate the complex dynamics; and (2) designing a controller that could reject the unmodeled uncertainties effectively, while achieving good control performance at the same time.
Recently, extensive studies have been carried out for modeling the QSL system [4,5,6,7,8,9,10,11,12,13]. Researchers used Euler–Lagrange method [6,7], Udwadia-Kalaba Equations [8,9], Newton-Euler method [10] and Kane’s method [11], to model the QSL system. For examples, in [4], the QSL dynamics were described as a second-order Euler–Lagrange model while ignoring the aerodynamic effects. In [12], a planar scenario was considered by using Euler–Lagrange method. Theoretically, we probably could obtain a high-fidelity model if the load of the QSL system and its motion states were exactly known. However, in most of the real applications, either the motion of the load or its influence to the aerodynamics is time-varying and unknown.
Besides the modeling techniques, control strategies were also proposed to improve the performance of the QSL system [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]. Xu et al. used both PD and sliding mode controller for the QSL system, and showed that the sliding mode control exhibited a strong robustness against the effects of the cable-suspended load [13]. A nested saturation controller was proposed in [12] by decomposing the nonlinear system into several independent plants. In [2,14,15], input shaping techniques were utilized, and Ivler et al. in [16] used the measurements of the slung load motions as well as the conventional fuselage feedback to improve the control performance for hovering and low speed flights. Other input shaping controllers [17,18,19,20], adaptive controllers [21,22], as well as vision based controllers [20,22,23] were also proposed for the QSL or helicopter slung load system. Specifically, in [21], a state estimator was used to estimate the oscillation frequency of the suspended load, and the estimated results were further utilized to adaptively update an input shaping controller to reject the disturbances.
In this paper, we develop a simple active-model-based control scheme for the QSL system. The scheme works to improve the rejection of the influences caused by the abruptly changed load as a complementary enhancement while maintaining the structure and parameters of the original controller. Experiments are conducted on a quadrotor to demonstrate that the proposed scheme can be easily implemented on the cascade PID controller of Pixhawk, which is one of the most popular controllers commercially available on the market. The improvements of the proposed scheme are shown by the comparisons between the controls with and without the active-model-based enhancement, while indicating that, with its simple structure and less computational algorithm, this active-model-based enhancement would be a feasible way to upgrade a commercial UAV controller to handle more uncertainties.
The rest of this paper is organized as follows. In Section 2, the linearized model of a quadrotor is formulated as pre-knowledge. In Section 3, the modeling error is introduced and the KF-based active estimation method is described. The active-model-based complementary control is designed in Section 4. Experiments and the relative results are demonstrated and analyzed in Section 5, followed by the concluding remarks in Section 6.
2. Pre-Knowledge: Quadrotor Dynamics
The dynamics of a quadrotor can be described by the following nonlinear differential equations [24]:
where x, y, z are the quadrotor positions in inertial frame; M is the mass of quadrotor; , and are the inertia with respect to x, y, z-axis, respectively; , and represent the roll, pitch, yaw angles, respectively; g is the gravitational acceleration; , , and are control inputs, which are defined as:
where and are, respectively, the coefficient of thrust and torque; l is the length between the motor and the center of gravity; is the total thrust provided by the four motors; represent the torques of the roll, pitch, yaw directions, respectively; is the propeller rotation speed and ; .
In this paper, the state vector is defined as:
For the purpose of simplicity, we make the following definitions:
When the quadrotor is hovering, and tend to 0, and is close to . So, by assuming , , , , , , , , , the following equations can be yielded from Equation (4):
Therefore, substituting Equations (4) and (5) into (1), we get the nominal model of the quadrotor in state space form:
where the matrices , , S, and are given as:
and is a unit matrix.
3. Modeling Error and Its Estimation
In order to describe the disturbances caused by the slung load, we define the modeling error as [25,26]:
where is the modeling error; represents the real states of the QSL system; is the model states of Equation (6). And we further assume that is driven by a white noise, i.e.,
where is a noise vector, and
Combining Equations (6) and (7), we get the dynamics of “the real QSL system”:
where is the process noise vector; and is the measurement noise vector.
In this paper, we use Kalman filter to estimate the modeling error of actively. To do this, we put the modeling error into the state vector, and define the extended state as:
Then we have the discrete state-space equation of Equation (10),
where ; ; ; ; ; ; is the matrix related to modeling error; is a zero matrix; is a unit matrix; is the discrete expression of ; k is the sampling point; and is the sampling time.
We further assume that and are white Gaussian noises, i.e.,
and
where , and represent related mean, covariance and variance values, respectively.
Then, the KF estimator can be described as [26]:
where is the covariance matrix of process noise ; is the covariance matrix of measurement noise ; is the estimation of extended state ; is the estimation of covariance matrix ; and I is an identity matrix. Thus, we can use Equation (15) to estimate the modeling error of in Equation (11) iteratively.
4. Design of Active Model Based Control
Shown as Figure 1, the active model based control is designed as a complementary enhancement of the normal controller, i.e.,
where is the control input of Equation (12); is the nominal control; and is the compensation control.
Figure 1.
Scheme of the active-model-enhanced control
The nominal control is designed according to the reference model of Equation (6), or any other controller which the quadrotor uses already. The compensation control, on the other hand, is designed based on the estimated model error . The purpose of the compensation control is to achieve
Substituting Equations (6) and (10) into Equation (17), we have
To solve Equation (19), the following optimization method [26], i.e., the following cost function with a quadratic form is considered:
where is the defined cost function; , are positive definite weight matrices, which are set previously; and is the estimated value of . In particular, is an identity matrix. To minimize , we can derive
Combing Equations (20) and (21), we can yield
Therefore, the compensation control input is chosen as:
5. Experiments
The quadrotor we use to test the proposed scheme is shown in Figure 2. It has the cross X configuration, and a Pixhawk flight controller where the original PID algorithm of Equation (24) is embedded as the normal control [27,28]. The proposed active estimation and enhancement control are implemented on the added controller, i.e., Odroid XU4. The motion states of the quadrotor, shown in Figure 3, are measured by the Qualisys motion capture system [29], and the sampling rate is 200 Hz.
Figure 2.
The experimental testbed
Figure 3.
The experimental scenario. (a) The quadrotor slung load (QSL) system with symmetrical load; (b) The QSL system with asymmetrical load.
Shown in Figure 3, we use a counterweight as the slung load. Initially, the counterweight is attached to the quadrotor by two symmetrical cables, so the load is aligned along the center of gravity (CoG) of the quadrotor (Figure 3a). The length of each cable is 0.39 m and the mass of the load is 0.5 kg. During the hovering flight, one of the cables is cut abruptly so that the load become asymmetrically attached and will influence the weight balance of the quadrotor (Figure 3b). The active modeling error estimation, the nominal PID control, the active estimation of modeling error, as well as the active-model-based compensation control, are respectively tested with respect to this load change scenario. And the experimental video is available as supplementary material.
Before the experiments, the nominal model of the quadrotor with respect to hovering mode is identified offline by least square method [30,31], and we get the parameters of Equations (3)–(6), i.e.,
5.1. Experimental Results on Modeling Error Estimation
The experiment is conducted to verify the modeling error estimation technique. The QSL system is in the hovering state controlled by the nominal controller only, while one of the cables is cut abruptly to generate the load change (Figure 3). The experimental results are shown in Figure 4, where the cable is cut at the sampling point of 200.
Figure 4.
The performance of the active model error estimation (The measurements (black dashed), the nominal model outputs (red dashdot), the desired values (blue solid), or estimated model errors (red dashdot), and the nominal model + modeling errors (green solid) before and after the load change). (a) Nominal model output; (b) Nominal model output + Modeling error.
There are 3 plots in each of the figures of Figure 4a which are, respectively, the desired value, the measurements of the quadrotor motion state, and the nominal model outputs. We can see that the nominal model outputs meet the measurements well before the cut occurring, which indicates that the offline-identified model matched the quadrotor well in the hovering state. After the cutting, the nominal model outputs deviate significantly from the corresponding measurements, which means the model can not describe the load change. Therefore, the real measurements of the quadrotor bias the desire values significantly, which means the quadrotor vibrates clearly after the abrupt change of the load.
Figure 4b demonstrates the performance of the active estimation of modeling error. There are also 3 plots in each figure of Figure 4b, which are the measurements of the motion state, modeling error estimation, and the nominal output + modeling error. We can see that the deviation of the model outputs from the corresponding measurements has been effectively rejected by the proposed active modeling technique.
In order to demonstrate the effectiveness of the active estimation in quantify, we propose the following index [32] to calculate the average errors between two states:
where j represents sampling point and ; is the average error between and . While are the “normal model output” and the “normal model output + the modeling error” respectively, and is the corresponding measurement, the average errors calculated by Equation (26) are listed in Table 1. We can see that the average position errors have been rejected more than 80% by the active modeling method, and the attitude errors have been rejected more than 58%.
Table 1.
The of modeling.
5.2. Experimental Results on the Active-Model-Enhanced Control
Figure 5 demonstrates the control performance with and without the active-model-based enhancement. The compensation control is designed according to Equation (24). There are 2 plots in each figure of Figure 5, which are, respectively, the measurements by “the normal cascade PID control” only, and the measurements by “the normal cascade PID + active-model-based enhancement”. From Figure 5 we can see that after the cable-cutting, the deviations of the measurements by enhanced PID control are much smaller than those by the normal PID control.
Figure 5.
The experimental results. (a) The position; (b) The attitude angles.
While are the motion states under the “normal PID control” and the “enhanced PID control” respectively, and is the corresponding measurement, the average errors of Equation (26) are listed in Table 2. We can see that after the active-modeling-error-based enhancement, the position tracking errors caused by the abrupt load change have been rejected more than 40%, and the attitude errors more than 27%, while being compared with the normal PID control.
Table 2.
The of control.
6. Conclusions
Active modeling error estimation and the corresponding compensation control scheme have been proposed in this paper. The performance of both the active estimation and enhancement control are verified by experimental flight tests. One of the advantages of this scheme is that the compensation enhances the rejection of the modeling errors in a “decoupled way” with the normal control, namely, the compensation based on the active estimation is completely decoupled with the nominal control, so it may be combined with any normal controls as an enhancement. With its simple structure and less computational algorithm, the proposed scheme may be feasible for a commercial quadrotor to handle payload uncertainties during some real applications.
Supplementary Materials
Supplementary File 1Author Contributions
Conceptualization, K.Y. and X.L.; methodology, K.Y.; software, K.Y.; validation, X.L., Y.H., L.Y. and J.H.; formal analysis, K.Y. and J.H.; investigation, K.Y. and X.L.; resources, X.L., Y.H., L.Y. and J.H.; data curation, K.Y.; writing—original draft preparation, K.Y.; writing—review and editing, K.Y., X.L., Y.H., L.Y. and J.H.; visualization, X.L.; supervision, J.H.; project administration, X.L. and Y.H.; funding acquisition, Y.H., L.Y. and J.H.
Funding
This work was supported in part by the National Key Research and Development Program of China under Grant 2017YFD0701002, and in part by the National Natural Science Foundation of China under Grant 91848203, U1508208 and 61503369.
Acknowledgments
The authors would like to thank Ning Sun at Nankai University, Zhihong Man at Swinburne University of Technology, the Editor-in-Chief, the Associate Editor, and the anonymous reviewers for their valuable comments for improving this work.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Yi, K.; Liang, X.; He, Y.; Yang, L.; Han, J. KF-Based Active Modeling for a Quadrotor Slung Load System. In Proceedings of the 2018 IEEE International Conference on Robotics and Biomimetics (ROBIO), Kuala Lumpur, Malaysia, 12–15 December 2018; pp. 2279–2284. [Google Scholar]
- Adams, C.; Potter, J.; Singhose, W. Input-Shaping and Model-Following Control of a Helicopter Carrying a Suspended Load. J. Guid. Control Dyn. 2015, 38, 94–105. [Google Scholar] [CrossRef]
- Yi, K.; Gu, F.; Yang, L.; He, Y.; Han, J. Sliding Mode Control for a Quadrotor Slung Load System. In Proceedings of the 2017 36th Chinese Control Conference (CCC), Dalian, China, 26–28 July 2017; pp. 3697–3703. [Google Scholar]
- Pizetta, I.H.B.; Brandao, A.S.; Sarcinelli-Filho, M. Control and Obstacle Avoidance for an UAV Carrying a Load in Forestal Environments. In Proceedings of the International Conference on Unmanned Aircraft Systems, Dallas, TX, USA, 12–15 June 2018; pp. 62–67. [Google Scholar]
- Liang, X.; Fang, Y.; Sun, N.; Lin, H. Nonlinear Hierarchical Control for Unmanned Quadrotor Transportation Systems. IEEE Trans. Ind. Electron. 2018, 65, 3395–3405. [Google Scholar] [CrossRef]
- Goodarzi, F.A.; Lee, D.; Lee, T. Geometric Stabilization of a Quadrotor UAV with a Payload Connected by Flexible Cable. In Proceedings of the American Control Conference, Portland, OR, USA, 4–6 June 2014; pp. 4925–4930. [Google Scholar]
- Almeida, M.M.D.; Raffo, G.V. Nonlinear Control of a TiltRotor UAV for Load Transportation. IFAC Papersonline 2015, 48, 232–237. [Google Scholar]
- Lee, B.Y.; Hong, S.M.; Yoo, D.W.; Lee, H.I.; Moon, G.H.; Tahk, M.J. Design of a Neural Network Controller for a Slung-Load System Lifted by 1 Quad-Rotor. J. Autom. Control. Eng. 2015, 3, 9–14. [Google Scholar] [CrossRef][Green Version]
- Lee, B.Y.; Lee, H.I.; Yoo, D.W.; Moon, G.H.; Lee, D.Y.; Kim, Y.Y.; Tahk, M.J. Study on Payload Stabilization Method with the Slung-load Transportation System Using a Quad-rotor. In Proceedings of the European Control Conference (ECC), Linz, Austria, 15–17 July 2015; pp. 2097–2102. [Google Scholar]
- Jain, R.P.K. Transportation of Cable Suspended Load Using Unmanned Aerial Vehicles: A Real-Time Model Predictive Control Approach. Master’s Thesis, Delft University of Technology, Delft, The Netherlands, 2015. [Google Scholar]
- Klausen, K.; Fossen, T.I.; Johansen, T.A. Nonlinear Control of a Multirotor UAV with Suspended Load. In Proceedings of the International Conference on Unmanned Aircraft Systems, Denver, CO, USA, 9–12 June 2015; pp. 176–184. [Google Scholar]
- Nicotra, M.M.; Garone, E.; Naldi, R.; Marconi, L. Nested Saturation Control of an UAV Carrying a Suspended Load. In Proceedings of the American Control Conference, Portland, OR, USA, 4–6 June 2014; pp. 3585–3590. [Google Scholar]
- Zhou, X.; Liu, R.; Zhang, J.; Zhang, X. Stabilization of a Quadrotor with Uncertain Suspended Load Using Sliding Mode Control. In Proceedings of the ASME International Design Engineering Technical Conferences & Computers and Information in Engineering Conference, Charlotte, NC, USA, 21–24 August 2016. [Google Scholar]
- Potter, J.; Singhose, W.; Costelloy, M. Reducing Swing of Model Helicopter Sling Load using Input Shaping. In Proceedings of the IEEE International Conference on Control and Automation, Santiago, Chile, 19–21 December 2011; pp. 348–353. [Google Scholar]
- Adams, C.; Potter, J.; Singhose, W. Modeling and Input Shaping Control of a Micro Coaxial Radio-Controlled Helicopter Carrying a Suspended Load. In Proceedings of the International Conference on Control, Automation and Systems, JeJu Island, Korea, 17–21 October 2012; pp. 645–650. [Google Scholar]
- Ivler, C.M.; Tischler, M.; Powell, J.D. Cable Angle Feedback Control Systems to Improve Handling Qualities for Helicopters with Slung Loads. In Proceedings of the AIAA Guidance, Navigation, and Control Conference, Portland, OR, USA, 8–11 August 2011. [Google Scholar]
- Bisgaard, M.; Courharbo, A.L.; Bendtsen, J. Input Shaping for Helicopter Slung Load Swing Reduction. In Proceedings of the AIAA Guidance, Navigation and Control Conference and Exhibit, Keystone, CO, USA, 21–24 August 2006. [Google Scholar]
- Bisgaard, M.; Courharbo, A.L.; Bendtsen, J. Full State Estimation for Helicopter Slung Load System. In Proceedings of the AIAA Guidance, Navigation and Control Conference and Exhibit, Hilton Head Island, SC, USA, 20–23 August 2007. [Google Scholar]
- Bisgaard, M.; Bendtsen, J.; Courharbo, A.L. Modelling of Generic Slung Load System. J. Guidance Control Dyn. 2009, 32, 573–585. [Google Scholar] [CrossRef]
- Bisgaard, M. Modeling, Estimation, and Control of Helicopter Slung Load System. Ph.D. Thesis, Aalborg University, Aalborg, Denmark, 2008. [Google Scholar]
- Bisgaard, M.; Cour-Harbo, A.L.; Bendtsen, J.D. Adaptive Control System for Autonomous Helicopter Slung Load Operations. Control Eng. Pract. 2010, 18, 800–811. [Google Scholar] [CrossRef]
- Bisgaard, M.; Cour-Harbo, A.L.; Bendtsen, J.D. Swing Damping for Helicopter Slung Load Systems using Delayed Feedback. In Proceedings of the AIAA Guidance, Navigation, and Control Conference and Exhibit, Chicago, IL, USA, 10–13 August 2009. [Google Scholar]
- Bisgaard, M.; Cour-Harbo, A.L.; Johnson, E.N.; Bendtsen, J.D. Vision Aided State Estimator for Helicopter Slung Load System. In Proceedings of the 17th IFAC Symposium On Automatic Control In Aerospace, Toulouse, France, 25–29 June 2007; pp. 425–430. [Google Scholar]
- Shi, D.; Wu, Z.; Chou, W. Harmonic Extended State Observer Based Anti-Swing Attitude Control for Quadrotor with Slung Load. Electronics 2018, 7, 83. [Google Scholar] [CrossRef]
- Abbeel, P.; Coates, A.; Ng, A.Y. Autonomous Helicopter Aerobatics Through Apprenticeship Learning. Int. J. Rob. Res. 2010, 29, 1608–1639. [Google Scholar] [CrossRef]
- Zhang, D.; Zhao, X.; Han, J. Active Model-Based Control for Pneumatic Artificial Muscle. IEEE Trans. Ind. Electron. 2017, 64, 1686–1695. [Google Scholar] [CrossRef]
- Dai, B.; He, Y.; Gu, F.; Yang, L.; Han, J.; Xu, W. A Vision-Based Autonomous Aerial Spray System for Precision Agriculture. In Proceedings of the IEEE International Conference on Robotics and Biomimetics, Macau, China, 5–8 December 2017; pp. 507–513. [Google Scholar]
- Mellinger, D.; Kumar, V. Minimum Snap Trajectory Generation and Control for Quadrotors. In Proceedings of the IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011; pp. 2520–2525. [Google Scholar]
- Qualisys Motion Capture System. Available online: https://www.qualisys.com/ (accessed on 12 August 2018).
- Reséndiz, V.M.A.; Rivas-Araiza, E.A. System Identification of a Quadrotor in X Configuration from Experimental Data. Res. Comput. Sci. 2016, 118, 77–86. [Google Scholar]
- Liu, J.; Shen, X.; Zhao, L. System Identification Theory and MATLAB Simulation; Publishing House of Electronics Industry: Beijing, China, 2013. [Google Scholar]
- Sheng, Z.; Xie, S.; Pan, C. Probability and Mathematical Statistics, 4th ed.; Higher Education Press: Beijing, China, 2008. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).