Robotica (2022), 1–16 doi:10.1017/S0263574722000091 RESEARCH ARTICLE Quaternion-based state-dependent differential Riccati equation for quadrotor drones: Regulation control problem in aerobatic flight Saeed Rafee Nekoo∗, José Ángel Acosta and Anibal Ollero GRVC Robotics Lab., Departamento de Ingeniería de Sistemas y Automática, Escuela Técnica Superior de Ingeniería, Universidad de Sevilla, Seville, Spain ∗Corresponding author. E-mail:
[email protected] Received: 7 September 2021; Revised: 24 November 2021; Accepted: 10 January 2022 Keywords: SDDRE, Riccati, optimal control, quaternion, quadrotor, Cobra maneuver, aerobatic maneuver Abstract The quaternion is a powerful and common tool to avoid singularity in rotational dynamics in three-dimensional (3D) space. Here it has been particularly used as an alternative to Euler angles and rotation matrix. The application of the quaternion is exercised in quadrotor modeling and control. It changes the dynamics and represents a singularityfree attitude model. Here for the first time (for the best knowledge of authors), the state-dependent differential Riccati equation (SDDRE) control has been implemented on the quaternion-based model of a quadcopter. The proposed control structure is capable of aerobatic flight, and the Pugachev’s Cobra maneuver is chosen to assess the capability of the quaternion-based SDDRE approach. The introduced control simulator is validated by comparison with conventional dynamics based on Euler angles, controlled using a proportional-derivative (PD) controller on a normal regulation flight. The simulator successfully performed the Cobra maneuver and also validated the proposed structure. The more precision in regulation along with lower energy consumption demonstrated the superiority of the introduced approach. 1. Introduction The Euler angles and rotation matrix in three-dimensional (3D) space are vulnerable to singularities, considering dynamics, especially in an aerobatic flight. Here we focus, particularly on multirotor drones and quadcopters. The dynamics of the multirotor drones are usually subjected to hovering assumptions to guarantee a stable flight [1]. To perform agile maneuvers with sudden changes in attitude, geometric control was introduced that avoids singularities and computes the rotation matrix in another manifold [2]. Krishna et al. used the geometric control for helicopter trajectory tracking in agile flight regarding the attitude of the system [3]. The sliding mode was employed as the controller and the error function in the geometric domain constructed the sliding condition to prove the stability. The geometric control was also applied on quadrotor drones subject to wind disturbance and sudden changes in attitude dynamics [4]. A flip is representative of a challenging maneuver that includes passing through a singularity that was addressed by the geometric approach [5]. The π(rad)flip in roll angle was considered, sudden motion between two stable roll angles. The change in the manifold and solving singularity cost the user more complicated integration methods [6]. Variational integration is an effective method [7]. Improper treatment of the integration may cause numerical drift in the results, especially in big orientation changes. The quaternion is another representation of the complex numbers in mathematics, with a wide range of usage in theory and application. The focus of this work is to implement the alternative representation of the Euler angles and rotation matrix in 3D space. The application of quaternion in control was reported C The Author(s), 2022. Published by Cambridge University Press. This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited. https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
2Saeed Rafee Nekoo et al. on aircraft [8,9], orientation and translation control of manipulators [10,11], control of autonomous underwater vehicles [12–15], helicopter attitude control [16], etc. Terze et al. used quaternion representation of the rotational dynamics for aircraft simulators and introduced shifting update process to ensure precise integration in long flight simulations [8]. Kinematics control of a robotic arm was presented using dual quaternion, aimed to present a robust controller without decoupling of the translational and orientation dynamics [10]. Cooke et al. presented a thorough implementation of the quaternion dynamics for flight simulation [17]. The performance of the quaternion-based control was validated by an omnidirectional intelligent navigator for an underwater platform [12]. Suzuki et al. presented the simulation and experimental studies on Lepton-Ex unmanned helicopter using quaternion feedback in control [16]. Quadrotor and multicopters were also employed quaternions [18–23]. A study compared three controllers, linear quadratic regulator (LQR), proportional-derivative (PD), and model predictive controller (MPC) for trajectory tracking that revealed the PD and the LQR gained better results in an ideal condition, and the MPC was more accurate in presence of disturbance [18]. Quaternion variables in the attitude controller provided an advantage, employment of low-cost sensors due to the high-speed capability of the singularity-free controller [20]. Palomo et al. presented an observer-based method based on positionyaw for the ellipsoid method [21]. Linear matrix inequalities were used to optimize the feedback of the observer, and experimental results showed successful tracking in high speed maneuver. Euler angles are popular in UAV modeling though they suffer from gimbal lock when two orthogonal axes align and lock together [24]. Another disadvantage of Euler angles is the computational cost by computing so many trigonometric functions [25], on the contrary, quaternion mathematics only involves algebraic computations [26]. Sanchez et al. used quaternion dynamics for quadrotor control based on receiving gesture commands [27], where it was important to cope with the unpredictability of the gesture and quaternion made it more reliable due to insensitivity to singularity. Performing experiment on aggressive maneuvers requires more safety concerns in addition to solving singularities. Gillula et al. used the Hamilton–Jacobi differential game approach for finding a reachable set for aerobatic maneuvers to guarantee safety [28]. Considering the constraint of the actuators in the flight experiment is an important issue since, during the flip, it is highly probable to put the rotors in saturation [29]. Here in this work, the simulation of the Cobra maneuver is done and for experimentation, actuator limits and speed of the maneuver must be considered to avoid undesired saturations in the middle of trajectory that could be dangerous. The state-dependent Riccati equation (SDRE) is a closed-loop optimal nonlinear controller introduced in the 1960s [30]. The utilization of the quaternion in SDRE was explored in several platforms such as satellite [31,32], spacecraft [33–36], spacecraft in proximity operations [37], attitude control of a rigid body [38], and remote sensing CubeSats [39]. Here we present the state-dependent differential Riccati equation (SDDRE) control based on quaternion for quadcopter dynamic systems. For the best knowledge of authors, a quaternion-based SDDRE controller has not been used for quadrotors in the literature so far which makes the first contribution of this work. The SDDRE is a finite time controller that penalizes the states (error variables) by a final boundary condition [40]. The singularity-free attitude control is the principal advantage of the quaternion. The Cobra is a challenging aerobatic flight maneuver, performed by a jet aircraft [41,42]. The motion turns the aircraft vertical (even for pitch angle θ>π/2) to perform the maneuver along with sudden deceleration; the thrust of the jet engine helps to avoid the system from falling. A tail-sitter drone is a good choice, with a vertical thrust option, to perform the Cobra maneuver [43]. Xu et al. presented iterative learning control for a tail sitter unmanned aerial vertical-take-off-and- landing system for Pugachev’s Cobra maneuver [43]. They used the acceleration model that resulted in simple dynamics without system identification. The Cobra was exercised by a quadrotor using adaptive control [44]. The quadrotor possessed 28(g), a small lightweight platform. An adaptive backstepping controller with a modified recursive least-square was employed to control the system. Contributions: (1) presenting a quaternion-based SDDRE control peculiar to a quadrotor. (2) Implementing Cobra maneuver in pitch angle in a forward flight. The performed Cobra in ref. [44] was done in vertical ascending flight. In a forward flight, conducting a Cobra maneuver, the system will https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
Robotica 3 lose its thrust (θ≈π/2) and is subjected to fall. Here in this work, using SDDRE, the Cobra in forward flight is done. Section 2describes the preliminaries in quaternion mathematics. Section 3states the system dynamics details. Section 4presents the SDDRE control structure. Section 5expresses the approximate closed-form solution to the SDDRE. Section 6presents the implementation and method and cascade design. Simulations are reported in Section 7which includes validation and aerobatic flight, and concluding remarks are summarized in Section 8. Notations:Rndenotes the n-dimensional Euclidean space, Hndenotes the n-dimensional Hamilton space, and (·)∗performs conjugate transpose. Rn×mis the set of n×mreal matrices; (·)Tis the transpose of a matrix or a vector; denotes Kronecker product; diag (·)means a diagonal matrix; In×nand 0n×n denote n×nidentity and zero matrices. 2. Preliminaries: Quaternion mathematics Here we consider the quaternion definition with real-scalar part q0and vector-imaginary part qv=q1i+ q2j+q3k, set all together q=q0 qv=⎡ ⎢ ⎣ cosϑ 2 rsinϑ 2 ⎤ ⎥ ⎦,(1) where r∈R3is a unit rotation vector and ϑis the corresponding rotation angle about that ref. [20]. To solve the ambiguity of the direction of quaternions, 0≤q0≤1is chosen. A conjugate transpose of the quaternion (1) is presented as q*=q0 −qv.(2) The multiplication product of two arbitrary quaternions qand pis defined through Kronecker product q⊗p=Q(q)p=⎡ ⎢ ⎢ ⎢ ⎢ ⎣ q0−q1−q2−q3 q1q0−q3q2 q2q3q0−q1 q3−q2q1q0 ⎤ ⎥ ⎥ ⎥ ⎥ ⎦ ⎡ ⎢ ⎢ ⎢ ⎢ ⎣ p0 p1 p2 p3 ⎤ ⎥ ⎥ ⎥ ⎥ ⎦ .(3) A unit quaternion can build a rotation transformation by two multiplications by Kronecker product that could rotate an arbitrary vector vfrom the global coordinate to a moving coordinate qas in the form of q⊗0, vTT⊗q*. So, using definitions (2) and (3), the rotation matrix is built by replacing x,y,zin turn into v: Rx(q)=q⊗[0,1,0,0]T⊗q*, Ry(q)=q⊗[0,0,1,0]T⊗q*, Rz(q)=q⊗[0,0,0,1]T⊗q*, which form [25]: R(q)=Rx(2: 4), Ry(2: 4), Rz(2: 4)=⎡ ⎢ ⎣ q2 0+q2 1−q2 2−q2 32q1q2−2q0q32q0q2+2q1q3 2q0q3+2q1q2q2 0−q2 1+q2 2−q2 32q2q3−2q0q1 2q1q3−2q0q22q0q1+2q2q3q2 0−q2 1−q2 2+q2 3 ⎤ ⎥ ⎦. where that is Rx(2: 4) selects three last components of Rx. https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
4Saeed Rafee Nekoo et al. Fig. 1. The definition of the reference coordinates for a sample quadrotor drone. The angular velocity vector of the quaternion is accessible (supposedly) in local moving coordinate; it is presented by the vector ω(q,˙ q):H×R4→R3where ω=[ω1,ω2,ω3]Trad s. Then the derivative of the quaternion is found [45]: ˙ qω=1 2q⊗0 ω=1 2Q(q)0 ω,(4) in which ˙ qω(q,ω): H×R3→R4and Q(q)has been introduced in Eq. (3). The relation between the Euler angles (ϕ,θ,ψ)and quaternions is also needed for the control design [25]: q= ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ cosϕ 2cosθ 2cosψ 2+sinϕ 2sinθ 2sinψ 2 sinϕ 2cosθ 2cosψ 2−cosϕ 2sinθ 2sinψ 2 cosϕ 2sinθ 2cosψ 2+sinϕ 2cosθ 2sinψ 2 cosϕ 2cosθ 2sinψ 2−sinϕ 2sinθ 2cosψ 2 ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ,(5) and also with inverse mapping, one could find: ⎡ ⎢ ⎣ ϕ θ ψ ⎤ ⎥ ⎦=⎡ ⎢ ⎣ atan22(q0q1+q2q3),q2 0−q2 1−q2 2+q2 3 asin (2(q0q2−q1q3)) atan22(q0q3+q1q2),q2 0+q2 1−q2 2−q2 3⎤ ⎥ ⎦. 3. Dynamics of the system Consider a “plus-shaped” quadrotor drone with two moving and fixed reference coordinates, body frame denoted by B, and global frame marked with M={X,Y,Z}, with respect, see Fig. 1. The position of the moving coordinate is defined through the vector ξ1(t)=xc(t), yc(t), zc(t)T(m).The kinematics equation is ˙ ξ1(t)=R(q(t))υ1(t), (6) where υ1(t)=[u(t), v(t), w(t)]Tm s, and R(q):H→R3×3is the quaternion-based rotation matrix; and {ϕ,θ,ψ}(rad)are Euler angles set in global coordinate. The local angular velocity vector set on the body frame is also named υ2(t)=p(t), q(t), r(t)Trad s. To find the dynamics of the system, Newton–Euler equation could be used that results in two sets of dynamic equations, the first set is translational: m¨ ξ1(t)=R3(q(t))TB(t)−mge3,(7) https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
Robotica 5 where R3(q)is the last column of R(q),g=9.81 m s2is the gravity constant, m(kg)is the total mass of the drone, and e3=[0,0,1]T. The second set is rotational dynamic: J˙ υ2(t)=τB(t)−υ2(t)×Jυ2(t), (8) where τB(t)=τx(t), τy(t), τz(t)T(Nm)is the input torque vector and J=diag Ixx,Iyy,Izzkgm2is the inertia matrix assigned in the body frame. The state-vector is [x(t)]13×1=ξT 1(t), qT(t), ˙ ξT 1(t), ˙ υT 2(t)T , which provides the state-space representation of the multi-copter using Eqs. (4)–(8) and setting ω(t)=υ2(t)=p,q,rTin Eq. (4): ˙ x(t)= ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ R(q(t))υ1(t) 1 2Q(q(t)) 0 υ2(t) 1 mR3(q(t))TB(t)−mge3−D˙ ξ1(t) J−1(τB(t)−υ2(t)×Jυ2(t)) ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ .(9) In state-space Eq. (9), D∈R3×3collects drag and aerodynamics parameters of the quadcopter model and has been added to complete the model. 4. The state-dependent differential Riccati equation controller design Consider the time-invariant affine-in-control nonlinear system ˙ x(t)=f(x(t)) +g(x(t), u(t)),(10) where x(t)∈Rnis the state vector, u(t)∈Rmis the input vector, f(x(t)): Rn→Rnand g(x(t), u(t)): Rn× Rm→Rnrepresents the dynamics and they satisfy local Lipschitz condition. nis the dimension of the state vector and mis the total number of actuators. The system Eq. (10) is transformed into state-dependent coefficient (SDC) parameterization [46]: f(x(t)) =A(x(t))x(t), (11) g(x(t), u(t)) =B(x(t))u(t), (12) in which B(x(t)): Rn→Rn×mand A(x(t)): Rn→Rn×nare held. The pair of {A(x(t)), B(x(t))}is a controllable parameterization of system (10)[47]. The cost function of the SDDRE is structured as J(·)=1 2xT(t)Fx(t)+1 2 tf 0xT(t)Q(x(t))x(t)+uT(t)R(x(t))u(t)dt,(13) where tf∈R+is the final time of the control task, Q(x(t)): Rn→Rn×n,R(x(t))Rn→Rm×m, and F∈Rn×n are weighting matrices, for states and inputs in t∈[0, tf)and states at the final time tfwith respect. The pair of A(x(t)), Q1 2(x(t))is an observable parameterization of system (10) where Q1 2(x(t)) is the Cholesky decomposition of weighting matrix in (13). The control law is defined by applying ∂H(x(t),u(t),λ(t)) ∂u(t)=0, stationary condition, on Hamiltonian function H(x(t), u(t), λ(t))=J(·)+λT(t)˙ x(t): u(t)=−R−1(x(t))BT(x(t))K(x(t))x(t), (14) https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
6Saeed Rafee Nekoo et al. where λ(t)=K(x(t))x(t)is the co-state vector and K(x(t)): Rn→Rn×nis the control gain of the control equation, SDDRE. Using the necessary condition for optimality, ∂H(x(t),u(t),λ(t)) ∂x(t)=−˙ λ(t)and the derivative of the co-state vector ˙ λ=˙ Kx +K˙ x, one could find: ˙ K(x)+K(x)A(x)−K(x)B(x)R−1(x)BT(x)K(x)+AT(x)K(x)+Q(x)+(x)=0, where (x)collects the derivative terms (see the complete equation in ref. [46]), then the SDDRE is represented as [48]: −˙ K(x)=Q(x)−K(x)B(x)R−1(x)BT(x)K(x)+K(x)A(x)+AT(x)K(x), (15) with K(x(tf)) =F, a final boundary condition. 5. An approximate closed-form solution to the SDDRE The quadrotor dynamics in Eq. (9) must be controlled by the SDDRE approach. The extended linearization model of (9) is so-called state-dependent coefficient parameterization (or apparent linearization) [49]. To solve the SDDRE (15) and to find the control gain, several methods could be used such as backward integration (BI) [50], state-transition matrix [51], and Lyapunov-based approach [52]. The BI imposes a two-round solution that might not be proper for systems that need frequent changes in initial and final conditions, nonrepetitive systems. The STM approach is not computationally robust when the final time is long [53], then the Lyapunov-based approach has been selected for this work. It works with both positive and negative solutions to the Riccati equation and delivers an approximate closedform answer, in just one round. This work uses Lyapunov-based method via negative root to the related SDRE, K− ss(x)to find the symmetric positive-definite solution to the SDDRE, K(x(t)) [50]. Subtracting (15)from AT(x)Kss(x)+Kss(x)A(x)+Q(x)−Kss(x)B(x)R−1(x)BT(x)Kss(x)=0,(16) generates −˙ K(x)=[K(x)−Kss(x)]A(x)+AT(x)[K(x)−Kss(x)] −K(x)B(x)R−1(x)BT(x)K(x) +Kss(x)B(x)R−1(x)BT(x)Kss(x). (17) Adding and subtracting KBR−1BTKss,KssBR−1BTKand KssBR−1BTKss to (17) result in: −˙ K(x)=AT(x)[K(x)−Kss(x)]+[K(x)−Kss(x)]A(x) −[K(x)−Kss(x)]B(x)R−1(x)BT(x)Kss(x) −B(x)R−1(x)BT(x)Kss(x)T[K(x)−Kss(x)] −K(x)B(x)R−1(x)BT(x)K(x) +K(x)B(x)R−1(x)BT(x)Kss(x) +Kss(x)B(x)R−1(x)BT(x)K(x) −Kss(x)B(x)R−1(x)BT(x)Kss(x). (18) Rewriting (18): −˙ K(x)=[K(x)−Kss(x)]A(x)+AT(x)[K(x)−Kss(x)] −[K(x)−Kss(x)]B(x)R−1(x)BT(x)Kss(x) −B(x)R−1(x)BT(x)Kss(x)T[K(x)−Kss(x)] −[K(x)−Kss(x)]B(x)R−1(x)BT(x)[K(x)−Kss(x)], https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
Robotica 7 and introducing a new variable P−1(x)=K(x)−Kss(x), and expressing the closed-loop matrix of the system Acl(x)=A(x)−B(x)R−1(x)BT(x)Kss(x), one could present −˙ K(x)=P−1(x)Acl(x)+AT cl(x)P−1(x)−P−1(x)B(x)R−1(x)BT(x)P−1(x)(19) Regarding that d dtP−1(x)=−P−1(x)˙ P(x)P−1(x),Eq.(19) should be changed to P−1(x)˙ P(x)P−1(x)=P−1(x)Acl(x)+AT cl(x)P−1(x)−P−1(x)B(x)R−1(x)B(x)P−1(x), and consequently, results in a state-dependent differential Lyapunov Eq. [50]: ˙ P(x)=Acl(x)P(x)+P(x)AT cl(x)−B(x)R−1(x)BT(x), (20) with a final boundary condition P(tf)=[F−Kss(x(t))]−1. A solution to (20)is P(x)=E(x)+exp {Acl(x)(t−tf)}[P(tf)−E(x)]exp AT cl(x)(t−tf),(21) in which E(x(t)) is an answer to a state-dependent algebraic Lyapunov equation: E(x)AT cl(x)+Acl(x)E(x)−B(x)R−1(x)BT(x)=0.(22) Proof of (21) could be checked by the substitution of Eq. (21)into(20): ˙ E(x)+d(Acl(x)(t−tf)) dtexp{Acl(x)(t−tf)}[P(tf)−E(x)]exp{AT cl(x)(t−tf)} −exp{Acl(x)(t−tf)}˙ E(x)exp{AT cl(x)(t−tf)} +exp{Acl(x)(t−tf)}[P(tf)−E(x)]exp{AT cl(x)(t−tf)}dAT cl(x)(t−tf) dt =E(x)AT cl(x)+exp{Acl(x)(t−tf)}[P(tf)−E(x)]exp{AT cl(x)(t−tf)}AT cl(x)+Acl(x)E(x) +Acl(x)exp{Acl(x)(t−tf)}[P(tf)−E(x)]exp{AT cl(x)(t−tf)}−B(x)R−1(x)BT(x). (23) From (22)wehave B(x)R−1(x)BT(x)=Acl(x)E(x)+E(x)AT cl(x). (24) The algebraic Lyapunov Eq. (22) results in ˙ E(x)=0. Regarding frozen computation at each simulation time-step, we neglect the time derivative of Acl(x)and as a result, d(Acl(x)(t−tf)) dt=Acl(x)+ ˙ Acl(x)(t−tf) 0 . Substituting (24)into(23), mathematical manipulation cancels all terms and shows that the solution (21) holds for Eq. (20). Since we neglected ˙ Acl(x)(t−tf)≈0in the derivative d(Acl(x)(t−tf)) dt and considered ˙ E(x)=0, this approach is so-called a closed-form approximate solution. The positive gain of the SDDRE (15) is regarded as K(x(t))=Kss (x(t))+P−1(x(t)),in which Kss (x(t))could be a negative definite K− ss (x(t))or positive definite K+ ss (x(t))solution to the SDRE (16). It works with both of them. The details of the positive and negative roots of the SDRE are reported in Sections 3.1.1 and 3.3.2 of Ref. [50]. The negative root is computationally more robust than the positive one, and it has been https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
8Saeed Rafee Nekoo et al. used here in this work. Finally, notice that the negative definite solution to the SDRE (16) is the positive definite answer to −K+ n(x)A(x)−AT(x)K+ n(x)−K+ n(x)B(x)R−1(x)BT(x)K+ n(x)+Q(x)=0, with consideration of K− ss (x(t))=−K+ n(x(t)). 6. Implementation of the SDDRE on quaternion-based dynamics The state-space equation of the system (9) must be represented by SDC forms (11) and (12). On the one hand, the dimension of the state vector (13 states) is not compatible with the cascade approach, commonly used in quadrotor control (12 states) [5]. On the other hand, the separation of rotational and translational dynamics was reported helpful in the control design due to different speeds of them, slow and fast dynamic [54]. So, here we propose two subcontrollers for the translation and rotational dynamics, connected through cascade design. For the translation dynamic, the set of SDC parameterization is At(x(t)) =⎡ ⎣ 03×3R(q(t)) 03×3−D m ⎤ ⎦,Bt=⎡ ⎣ 03×3 I3×3 m ⎤ ⎦, in which hovering condition has been assumed to find ˙ ξ1=R(q) I υ1≈υ1, to make the factorization possible, and “t” stands for translation. For the orientation section, we neglect the scalar part of the quaternion, the first column, and the row of Q(q(t)) in (9), then the SDC parameterization is Ao(x(t)) =03×3[Q(2: 4, 2: 4)]3×3 03×3−J−1[υ2×I]3×3,Bo=03×3 J−1, where Q(2: 4, 2: 4)collects the second to fourth components of Q(q(t)) in columns and rows, and “o” stands for orientation. Based on (14), the translation control law for regulation to the desired condition rather than zero is ut(t)=−R−1 t(x(t))BT tKt(x(t))ξ1(t)−ξ1,des ˙ ξ1(t)−˙ ξ1,des ,(25) where R,Qt,Ft, and Ktare the corresponding matrices (with proper dimension) for the translation and Riccati equation and “des” defines the desired condition. The computation of input law (25) is based on a fully actuated system, which is not possible in reality. So, to transform the [ut(t)]3×1to the scalar thrust input considering the gravity as well, we use cascade design [55]: TB(t)=mR3(q(t))1ut,1(t)+R3(q(t))2ut,2(t)+R3(q(t))3ut,3(t)+g, where that is R3(q(t))1is the first component of R3(q(t)). The cascade design delivers the necessary desired Euler angles θdes(t)=tan−1ut,1cosψdes +ut,2sinψdes ut,3 +g,(26) φdes(t)=sin−1⎛ ⎝ut,1sinψdes −ut,2cosψdes u2 t,1 +u2 t,2 +ut,3 +g2⎞ ⎠,(27) in which ψdes could possess an arbitrary value. https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
Robotica 9 The orientation control law is also presented as uo(t)=−R−1 o(x(t))BT oKo(x(t))Feq(t) υ2(t)−υ2,des ,(28) where eq(t)is quaternion error and F=⎡ ⎢ ⎢ ⎢ ⎢ ⎣ 0000 0100 0010 0001 ⎤ ⎥ ⎥ ⎥ ⎥ ⎦ . The quaternion error in (28) is defined as eq(t)=−qdes(t)⊗q∗(t)=−Qqdes(t)q∗(t), where qdes(t)is defined by substituting (26), (27), and ψdes into Eq. (5). 7. Simulations 7.1. Validation To validate the proposed controller design and the simulator, a comparison has been done with the PD controller and a conventional sliding mode control (SMC). We consider a system based on the Euler angles in rotational dynamics, controlled by a simple PD to have it as a reference. Then the SDDRE controller is implemented on the quaternion-based dynamics to check the performance and also to validate the correctness of the implementation. The SMC has been frequently used in UAV control [56], in the context of robustness or combined with other techniques [57]. Based on that, the SMC is selected for comparison to add the more detailed result. The mass of the system is m=0.468 (kg), the drag coefficient matrix is D= diag (0.25, 0.25, 0.25)kg s, the components of the inertia matrix are Ixx =4.856 ×10−3kgm2, Iyy =4.856 ×10−3kgm2, and Izz =8.801 ×10−3kgm2. The time of the simulation has been set tf=10 (s), and the drone flies from zero coordinate to the desired position in Cartesian coordinate (−2, 3, 1.5)( m). All of the initial conditions are set zero including position, velocity, Euler angles, and angular velocity. The initial condition of the quaternions is found by substituting (φ(0),θ(0),ψ(0)) into (5) to reach q(0)=[1, 0, 0, 0]T. The PD control gains are set as KP,t =I3×3,KD,t =2×I3×3,KP,o =I3×3, and KD,o =0.5 ×I3×3.The SDDRE controller gains are selected as follows: Rt=I3×3,Qt=diag (0.1, 0.1, 0.1, 0.2, 0.2, 0.2),Ft= 100 ×Qt,Ro=I3×3,Qo=diag (2, 2, 2, 0, 0, 0),Fo=10 ×Qo. Two separate SMC controllers are considered for translation and orientation parts, consistent with Section 6. The sliding surface is si(X)=˙ ˜ Xi+i˜ Xifor i={t,o}(translation and orientation) where ˜ Xi=ξi−ξi,des and iis a strictly positive constant matrix. The control law is also in the form of ui= B−1 i,SMC(x)¨ ξi,des −fi,SMC(x)−Ki,SMC tanh si(x) σ, where Bt,SMC =1/mI3×3,Bo,SMC(x)=J−1 cξ2,ft,SMC(x)= −1 mD˙ ξ1(t),fo,SMC(x)=−J−1ξ2Cξ2,˙ ξ2˙ ξ2, and Ki,SMC is the correction gain of the SMC. More details on conventional dynamics, such as Jcξ2=WTξ2IW ξ2, can be found in ref. [54]. To avoid chattering in SMC, tanh si(x) σis used where σ=0.2 in this simulation. The SMC control parameters are selected as t=diag (0.5, 0.5, 1),o=1.5 ×I3×3,Kt,SMC =diag (5, 5, 1),Ko,SMC =2.5 ×I3×3, and desired accelerations are set zero, ¨ ξi,des =0. Simulating the system, the results are found in the following. The position variables of the drone are illustrated in Fig. 2to Fig. 4with respect. The roll and pitch angles of the multi-copter are plotted in Fig. 5 and Fig. 6with respect. The input norm of the quadrotor is illustrated in Fig. 7and the configuration and trajectories of the drones are shown in Fig. 8. https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press
16 Saeed Rafee Nekoo et al. [32] A. G. Romero, L. C. G. Souza and R. A. Chagas, “Application of the SDRE Technique in the Satellite Attitude and Orbit Control System with Nonlinear Dynamics,” 2018 SpaceOps Conference, Marseille, France (2018) p. 2536. [33] D. T. Stansbery and J. R. Cloutier, “Position and Attitude Control of a Spacecraft Using The State-Dependent Riccati Equation Technique,” Proceedings of the American Control Conference, Chicago, Illinois (2000) pp. 1867–1871. [34] W. Luo and Y.-C. Chu, “Attitude Control Using the SDRE Technique,” 7th International Conference on Control, Automation, Robotics and Vision, Singapore (2002) pp. 1281–1286. [35] C. Pukdeboon and A. S. Zinober, “Optimal sliding mode controllers for spacecraft attitude manoeuvres,” IFAC Proc. Vol. 42(6), 173–178 (2009). [36] C. Pukdeboon, “Robust optimal output feedback sliding mode control for spacecraft attitude tracking maneuvers,” Int. J. Pure Appl. Math. 79(1), 11–27 (2012). [37] P. Li, X. Yue, X. Chi and C. Du, “Optimal Relative Attitude Tracking Control for Spacecraft Proximity Operation,” 25th Chinese Control and Decision Conference, Taiyuan, China (2013) pp. 4582–4587. [38] M. Safi, M. Mortazavi and S. M. Dibaji, “Global stabilization of attitude dynamics: SDRE-based control designs,” AUT J. Model. Simul. 50(2), 203–210 (2018). [39] A. G. Romero and L. C. G. de Souza, “State-dependent Riccati equation controller using Java in remote sensing CubeSats,” J. Appl. Remote Sens. 13(3), 032509 (2019). [40] T. Cimen, “Survey of state-dependent Riccati equation in nonlinear optimal feedback control synthesis,” J. Guidance Control Dyn. 35(4), 1025–1047 (2012). [41] N. Wang, R. Ma, X. Chang and L. Zhang, “Numerical virtual flight simulation of quasi-cobra maneuver of a fighter aircraft,” J. Aircraft 58(1), 138–152 (2021). [42] B. Gal-Or and D. D. Baumann, “Mathematical phenomenology for thrust-vectoring-induced agility comparisons,” J. Aircraft. 30(2), 248–255 (1993). [43] W. Xu and F. Zhang, “Learning Pugachev’s Cobra maneuver for tail-sitter UAVs using acceleration model,” IEEE Rob. Autom. Lett. 5(2), 3452–3459 (2020). [44] Y. Chen and N. O. Pérez-Arancibia, “Adaptive Control of Aerobatic Quadrotor Maneuvers in the Presence of Propeller-Aerodynamic-Coefficient and Torque-Latency Time-Variations,” 2019 International Conference on Robotics and Automation (ICRA), Montreal, Canada (2019) pp. 6447–6453. [45] J. Diebel, “Representing attitude: Euler angles, unit quaternions, and rotation vectors,” Matrix 58(15), 1–35 (2006). [46] S. R. Nekoo, “Tutorial and review on the state-dependent Riccati equation,” J. Appl. Nonlinear Dyn. 8(2), 109–166 (2019). [47] S. R. Nekoo, “A PDE breach to the SDRE,” Asian J. Control 22(2), 667–676 (2020). [48] S. R. Nekoo, “Digital implementation of a continuous-time nonlinear optimal controller: An experimental study with realtime computations,” ISA Trans. 101, 346–357 (2020). [49] A. Jayaram and M. Tadi, “Synchronization of chaotic systems based on SDRE method,” Chaos Solitons Fractals 28(3), 707–715 (2006). [50] M. H. Korayem and S. R. Nekoo, “Finite-time state-dependent Riccati equation for time-varying nonaffine systems: Rigid and flexible joint manipulator control,” ISA Trans. 54, 125–144 (2015). [51] S. Mathavaraj and R. Padhi, “Finite-Time LQR and SDRE for Satellite Formation Flying,” In: Satellite Formation Flying (Springer, Singapore, 2021) pp. 99–109. ISBN: 978-981-15-9631-5. [52] A. Heydari and S. N. Balakrishnan, “Approximate Closed-Form Solutions to Finite-Horizon Optimal Control of Nonlinear Systems,” American Control Conference, Fairmont Queen Elizabeth, Montréal, Canada (2012) pp. 2657–2662. [53] M. H. Korayem and S. R. Nekoo, “Nonlinear Optimal Control via Finite Time Horizon State-Dependent Riccati Equation,” Second RSI/ISM International Conference on Robotics and Mechatronics, Tehran, Iran (2014) pp. 878–883. [54] S. R. Nekoo, J. Á. Acosta, A. E. Gomez-Tamm and A. Ollero, “Optimized Thrust Allocation of Variable-Pitch Propellers Quadrotor Control: A Comparative Study on Flip Maneuver,” 2019 Workshop on Research, Education and Development of Unmanned Aerial Systems (RED UAS), Cranfield, UK (2019) pp. 86–95. [55] S. R. Nekoo, J. Á. Acosta and A. Ollero, “Fully Coupled Six-DoF Nonlinear Suboptimal Control of a Quadrotor: Application to Variable-Pitch Rotor Design,” Iberian Robotics Conference, Porto, Portugal (2019) pp. 72–83. [56] R. Xu and U. Ozguner, “Sliding Mode Control of a Quadrotor Helicopter,” Proceedings of the 45th IEEE Conference on Decision and Control, San Diego, CA, USA (2006) pp. 4957–4962. [57] G. E. M. Abro, S. A. Zulkifli, V. S. Asirvadam and Z. A. Ali, “Model-Free-based Single-Dimension Fuzzy SMC Design for Underactuated Quadrotor UAV,” In: Actuators (H. Wang, ed.) (MDPI, Switzerland, 2021) p. 191. [58] J.-J. Xiong and G.-B. Zhang, “Global fast dynamic terminal sliding mode control for a quadrotor UAV,” ISA Trans. 66, 233–240 (2017). Cite this article: S.R. Nekoo, J.Á. Acosta and A. Ollero, “Quaternion-based state-dependent differential Riccati equation for quadrotor drones: Regulation control problem in aerobatic flight”, Robotica.https://doi.org/10.1017/S0263574722000091 https://doi.org/10.1017/S0263574722000091 Published online by Cambridge University Press