This patent application claims the benefit and priority of Chinese Patent Application No. 2023117712341, filed with the China National Intellectual Property Administration on Dec. 21, 2023, the disclosure of which is incorporated by reference herein in its entirety as part of the present application.
The present disclosure relates to the technical field of unmanned aerial vehicle (UAV) control, and in particular to an attitude planner-containing trajectory tracking control method and system for a quadrotor UAV.
The quadrotor UAV is an underactuated system because it has six degrees of freedom (DOFs) but only four inputs. Due to topological obstruction, it is a great challenge to control the quadrotor UAV That is, the attitude of the mechanical system having a rotational DOF cannot be globally stabilized through continuous feedback. A variety of control technologies based on different attitude descriptions, mainly including a Euler angle-based attitude controller, a rotation matrix-based attitude controller, and a quaternion-based attitude controller, are proposed for the quadrotor UAV.
With the minimum three dimensions, easily-measured Euler angle design, and intuitive physical significance, the Euler angle-based attitude controller has been widely used in system modeling and control of such devices with rotary joints as industrial robots, aircrafts, vehicles, and ships. However, the Euler angle-based attitude controller is mainly defective for a lockup problem at a particular position and cannot realize global control. Specifically, the universal joint of the gyroscope is stuck, and cannot cause a limited amount of movement within infinitely short time.
The rotation matrix is an attitude description without a singular point. The rotation matrix-based attitude controller can overcome the lockup problem. However, due to 3*3 dimensions of the rotation matrix, the rotation matrix-based attitude controller has the redundant calculation, and is rarely used in large computational simulation for a high storage cost. On the other hand, the rotation matrix belongs to a special three-order orthogonal group, and is incompressible to any Euclidean space. Therefore, the rotation matrix-based continuous feedback controller also cannot realize the global control.
The quaternion model-based continuous controller can overcome the problems of lockup and redundant calculation, but gives rise to the unwinding phenomenon. That is, the quaternion-based controller causes unnecessary complete rotation of the UAV. In order to overcome the unwinding problem, hybrid hysteretic control is introduced in the prior art. Hence, the quaternion-based controller is realized hardly, without desirable robustness.
An objective of the present disclosure is to provide an attitude planner-containing trajectory tracking control method for a quadrotor UAV and system, to solve the lockup (namely the universal joint of the gyroscope is stuck), the redundant calculation of the controller, and the unwinding phenomenon (namely the UAV has unnecessary complete rotation) in existing quadrotor UAV control technologies based on different attitude descriptions, and prevent the discontinuity, hybrid hysteretic control and other problems caused in the process of overcoming the unwinding phenomenon.
To achieve the above objective, the present disclosure provides the following solutions:
According to a first aspect, the present disclosure provides an attitude planner-containing trajectory tracking control method for a quadrotor UAV, including:
Optionally, the quaternion-based quadrotor UAV dynamic model is expressed as:
Optionally, the desired fully-actuated control is expressed as:
Optionally, the constructing a smooth attitude planner based on the relative quaternion specifically includes the following steps:
Optionally, the inner-loop attitude control design result is expressed as:
According to a second aspect, based on the above method in the present disclosure, the present disclosure further provides an attitude planner-containing trajectory tracking control system for a quadrotor UAV, including:
Optionally, the quaternion-based quadrotor UAV dynamic model is expressed as:
where, r=(x, y, z)T and ν respectively represent a position and a velocity of the quadrotor UAV, represents an attitude unit quaternion calculated through an Euler angle, q=(q1, q2, q3, q4)=(η,εT) being respectively a scalar and a vector of the quaternion, and □ representing a set of all real numbers, mϵ□ represents a mass, g represents an acceleration of gravity, Fϵ and τ=(τx, τy, τz)T ϵ□3 respectively represent a lift force and a torque obtained by the four propellers, e3=(0, 0, 1)T is a unit vector in an axis z of the inertial frame, Jϵ□3×□3 is a body-fixed inertial matrix, ωϵS2 {xϵ□3|xTx=1} represents a rotational angular velocity,
Optionally, the desired fully-actuated control is expressed as:
According to a third aspect, the present disclosure provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to run the computer program to enable the electronic device to execute the attitude planner-containing trajectory tracking control method for a quadrotor UAV.
According to a fourth aspect, the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to realize the attitude planner-containing trajectory tracking control method for a quadrotor UAV
According to specific embodiments provided in the present disclosure, the present disclosure has the following technical effects:
In the present disclosure, by introducing fictitious force control to convert a dynamic model at an underactuated position of the quadrotor UAV into a fully-actuated form, the Brockett constraints are prevented, and thus continuous main thrust control can be designed. Compared with the existing hybrid control, the present disclosure has easy implementation, high control accuracy, and stronger robustness.
The present disclosure makes use of the Rodrigues parameter first to design the smooth attitude planner, converts the singular equilibrium points±1 (one is stable, the other is unstable, and both represent a same attitude) in the unwinding problem caused by the quaternion-based attitude description into the singular point at infinity and the equilibrium point at an origin of coordinates in the attitude dynamic system described based on the Rodrigues vector, and can design the smooth or continuous feedback torque controller with a typical backstepping method. This effectively prevents the unwinding problem and the introduction of the hybrid control, and achieves better maneuverability.
In addition, since the attitude system based on the Rodrigues vector is converted from the quaternion, influences from angle drift are alleviated with normalization of the quaternion, and the designed torque controller can also effectively prevent the redundant calculation, thereby improving the actual applicability.
Since the outer-loop position control design result (position controller) and the inner-loop attitude control design result (attitude controller) are achieved with the typical backstepping method, the controllers are easily combined with an adaptive observer. This can solve the more complicated control problem to improve the control accuracy of the quadrotor UAV.
To describe the technical solutions in embodiments of the present disclosure or in the prior art more clearly, the accompanying drawings required in the embodiments are briefly described below. Apparently, the accompanying drawings in the following description show merely some embodiments of the present disclosure, and other drawings can still be derived from these accompanying drawings by those of ordinary skill in the art without creative efforts.
The technical solutions in the embodiments of the present disclosure are clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present disclosure. All other embodiment obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
An objective of the present disclosure is to provide an attitude planner-containing trajectory tracking control method for a quadrotor UAV and system, to solve the lockup (namely the universal joint of the gyroscope is stuck), the redundant calculation of the controller, and the unwinding phenomenon (namely the UAV has unnecessary complete rotation) in existing quadrotor UAV control technologies based on different attitude descriptions, and prevent the discontinuity, hybrid hysteretic control and other problems caused in the process of overcoming the unwinding phenomenon.
In order to make the above objective, features and advantages of the present disclosure clearer and more comprehensible, the present disclosure will be further described in detail below in combination with accompanying drawings and specific implementations.
Step 101: A historical dataset of a barycentric coordinate, a historical dataset of a yaw angle, a historical dataset of a pitch angle, a historical dataset of a roll angle, a historical dataset of a linear velocity along a coordinate direction, and a historical dataset of an angular velocity of a corresponding turning angle of the quadrotor UAV are acquired.
Step 102: The barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV are acquired in real time.
Step 103: Kinematic calculation is performed on the historical dataset of the barycentric coordinate, the historical dataset of the yaw angle, the historical dataset of the pitch angle, the historical dataset of the roll angle, the historical dataset of the linear velocity along the coordinate direction, and the historical dataset of the angular velocity of the corresponding turning angle of the quadrotor UAV, mechanical calculation is performed on four propellers, mechanical calculation is performed on a body, and an attitude quaternion is calculated to obtain a quaternion-based quadrotor UAV dynamic model.
Specifically:
As shown in
In the foregoing equations, r=(x, y, z)T and ν respectively represent a position and a velocity of the quadrotor UAV, q=(q1, q2, q3, q4)=(η, εT) represents an attitude unit quaternion calculated through an Euler angle (the yaw angle, the pitch angle, and the roll angle), ηϵ□ and εϵ3 being respectively a scalar and a vector of the quaternion, and □ representing a set of all real numbers, mϵ represents a mass, g represents an acceleration of gravity, Fϵ□ and τ=(τx, τy, τz)Tϵ□3 respectively represent a lift force and a torque obtained by the four propellers, e3=(0, 0, 1)T is a unit vector in an axis z of the inertial frame, Jϵ□3×□3 is a body-fixed inertial matrix, ωϵS2={xϵ□3|xTx=1} represents a rotational angular velocity,
Step 104: A desired fully-actuated control is designed, and a main thrust direction of a body-fixed frame and a desired thrust direction of an inertial frame are calculated according to the desired fully-actuated force control to construct a relative quaternion.
Step 105: A smooth attitude planner is constructed based on the relative quaternion.
Step 106: An attitude error quaternion and an angular velocity error quaternion are determined based on the smooth attitude planner.
Step 107: An attitude error of the quadrotor UAV is calculated based on the attitude error quaternion and the angular velocity error quaternion with a Rodrigues parameter.
In order to solve the unwinding problem, and further design a smooth or continuous feedback controller to make the UAV realize global asymptotic tracking on a trajectory, for η≠0 a Rodrigues vector
is sought. An attitude kinematic model represented by the Rodrigues vector is introduced
The quadrotor UAV is an underactuated system because it has six DOFs but only four inputs. Hence, only four reference output variables can be assigned arbitrarily. According to an actual demand, the reference position r=r*ϵ3, can be assigned arbitrarily, and the yaw angle Ψ=Ψ*ϵ□ is assigned as required or extracted from the trajectory.
Step 108: An outer-loop position control design result and an inner-loop attitude control design result are determined based on the attitude error of the quadrotor UAV
Step 109: An attitude planner-containing position and attitude control model for the quadrotor UAV is constructed according to the outer-loop position control design result and the inner-loop attitude control design result.
Step 110: The barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV that are acquired in real time are input to the attitude planner-containing position and attitude control model for the quadrotor UAV, thereby obtaining an attitude planner-containing tracking control result for the quadrotor UAV.
The design objectives of the present disclosure are as follows: By designing the lift force control F, the attitude torque control τ, and the attitude planner estimate Ψ=Ψ*∈□, the quadrotor UAV can track a desired position signal r*, and ensure that other signals of the system are bounded.
The acceleration of the UAV in descending is not greater than the acceleration of the UAV in free falling.
In order to achieve the above objectives, there are a plurality of modules in the technical solution of the present disclosure, specifically including: a dynamic model calculation module, an outer-loop control module, an attitude planner module, an inner-loop control module, a quadrotor dynamic model calculation module, and a control result experiment display module. Each module is described below in detail:
This module includes a combined dynamic model calculation module, a position error dynamic model, and an attitude error dynamic model represented by the Rodrigues vector.
The combined dynamic model calculation module is also referred to as a position and attitude dynamic model calculation module. Specifically as shown in
The dynamic model calculation module undergoes a following calculation process: The lift force F obtained by the outer-loop control module, the rotation matrix R output by the attitude planner, and the attitude q output by the attitude dynamic model calculation module are input to the position dynamic model calculation module to obtain the position r and the translational velocity ν. The torque τ output by the inner-loop control module is taken as an input signal and input to the attitude dynamic model calculation module to obtain the attitude q and the angular velocity ω.
For a desired position and a desired attitude, the position error dynamic model and the attitude error dynamic model are constructed, and a tracking control problem is converted into a stabilization problem of the error dynamic model.
For a desired position r*=(x*, y*, z*)T, a position error re=r−r* is defined, and a position error dynamic model can be obtained
In the foregoing equation, Δ=μ−μd.
The attitude error in rotation is defined as qe=qd−1 ⊗q. By calculating a derivative of the equation qd⊗qd−1=(1, 0, 0, 0)T, a derivative of an inverse element of a desired attitude quaternion is obtained
By calculating a derivative of the attitude error qe, the attitude error dynamic model is obtained
In the foregoing equation, the angular velocity error in the body-fixed frame is ωe=ω−ωp, ωp=qe−1⊗ωd⊗qe, thereby obtaining the attitude error dynamic model represented by the Rodrigues vector
In combination with mechanical calculation of the quadrotor UAV, the attitude error dynamic model in the body-fixed frame is obtained
Based on a fact that the attitude error dynamic model represented by the Rodrigues vector has a singular point at infinity and an equilibrium point at an origin O, a continuous or smooth feedback controller can be designed. This prevents the lockup and unwinding problems of the attitude error dynamic model represented by the Euler angle, the rotation matrix and the quaternion in the existing control methods, and further prevents the caused hybrid control.
Step 1: A translational velocity error νe={dot over (r)}e−να=ν−{dot over (r)}*−να is introduced, να being a desired translational velocity control to be designed. A Lyapunov function of a translational displacement is defined
According to the chain rule, a following time derivative is obtained:
In the foregoing equation, {dot over (V)}p1 represents a first derivative of {dot over (V)}p1. According to the position error dynamic model, the desired translational velocity control is designed as:
In the foregoing equation, c1 is a positive design parameter. The derivative Vp1 of the Lyapunov function Vp1 is as follows:
Step 2: A derivative of the translational velocity error νe and a derivative of the desired translational velocity control να are calculated to obtain a new expression of a translational position error dynamic model:
In the foregoing equation, {dot over (ν)}e is a first derivative of νe, {umlaut over (r)}e is a second derivative of re, {dot over (ν)}α is a first derivative of να, {umlaut over (r)}* is a second derivative of r*, and μd is a fully-actuated force control to be designed.
The Lyapunov function of a translational system is defined
According to the chain rule, a time derivative is obtained:
According to the Lyapunov stability theorem and the definition Δ=FRd (Re−I3)e3 of the coupling term Δ, a desired fully-actuated force control is obtained
In the foregoing equation, c2,d1 are positive design parameters. The structural view of the outer-loop control module is as shown in
Referring to
The outer-loop control module undergoes a following calculation process: The real-time position r and the reference trajectory r* are input to a tracking error calculation module to obtain a trajectory tracking error re. In combination with the translational velocity ν, and the first derivative {umlaut over (r)}* and the second derivative {umlaut over (r)}* of the reference trajectory r*, the desired force control μd is obtained by a desired force control calculation module. The lift force F is obtained by a force calculation module.
The desired force control vector μdϵ□3 obtained by the outer-loop control calculation module corresponds to a desired attitude quaternion
θd representing a desired rotation angle, and nd representing a desired rotation axis. The desired force control satisfies
Once the desired force control vector μd is calculated, the lift force F=|μd| can be obtained, and a direction of the desired force control μd can be obtained
After the direction of the desired force control vector μd is obtained, a desired attitude qd can be solved reversely. The unit vector e3 in the axis z of the inertial frame and the direction
With square-root operation on Qd, a desired attitude quaternion
The attitude quaternion
defined through any assigned yaw angle Ψ* satisfies qΨ
This is used as the output of the attitude planner and combined into the attitude error. By reversely solving
the desired angular velocity ωd=2qd−1⊗{dot over (q)}d is obtained, thereby completing the design of the attitude planner module. The structural view of the attitude planner is as shown in
In the attitude planner module, qΨ
The attitude planner module undergoes a following calculation process: The force control μd is input to a desired attitude operation module through a quaternion square-root calculation module in combination with the yaw angle quaternion qΨ
With the Rodrigues parameter attitude error ρe, the rotational angular velocity error ωe, the ωp and the rotation matrix calculated by the attitude planner module, an inner-loop attitude torque controller τ is designed.
Step 1: An angular velocity error ωz=ωe−ωα is introduced, ωα being a desired angular velocity control to be designed. A Lyapunov function for the attitude error based on the Rodrigues parameter is defined
Va1=ρeTρe
According to the chain rule, a time derivative is calculated by the attitude error kinematic model represented by the Rodrigues parameter:
In the foregoing equation,
S(ρe) representing matrix operation on ρe, and {dot over (V)}a1 is a first derivative of Va1. The desired angular velocity control is designed as
In the foregoing equation,
and c3,d1 are positive design parameters. The derivative {dot over (V)}p1 of the Lyapunov function Vp1 is as follows:
Step 2: A derivative of the angular velocity error ωz and a derivative of the desired angular velocity ωα are calculated to obtain a new expression of the attitude error dynamic model:
The Lyapunov function of an attitude error dynamic system is defined as
According to the chain rule, a time derivative is obtained:
According to the Lyapunov stability theorem, a desired torque control is obtained
In the foregoing equation, c4 is a positive design parameter. The structural view of the inner-loop control module is as shown in
Referring to
The inner-loop control module undergoes a following calculation process: The reference trajectory r* is input to a desired yaw angle extraction module to obtain the yaw angle quaternion qΨ, which is taken as the input of the attitude planner. In combination with the desired force control μd, the attitude quaternion q and the angular velocity ω, the Rodrigues parameter attitude error ρe, the angular velocity error ωe, and ωp are obtained through the attitude planner module. In combination with the lift force F, the torque control τ is obtained through the inner-loop torque control calculation module.
An attitude planner-containing position and attitude control model for the quadrotor UAV is constructed according to the outer-loop force control design result and the inner-loop attitude torque control design result. The barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV are input to the attitude planner-containing position and attitude control model for the quadrotor UAV, thereby obtaining an attitude planner-containing quadrotor UAV tracking controller. Specifically:
In the foregoing equations, c1, c2, c3, c4, d1 are positive design parameters.
The control result experiment display module is as shown in
In combination with the outer-loop control module, the attitude planner module, the inner-loop control module, the quadrotor dynamic model calculation module, and the control result experiment display module, the structural view of the attitude planner-containing trajectory tracking control for a quadrotor UAV shown in
A reference trajectory signal is generated by the reference trajectory generator. In combination with real-time data of the position r and the translational velocity ν fed back by the dynamic model calculation module, the desired force control μd and the lift force F are calculated by the outer-loop control module. In combination with real-time data of the attitude q and the rotational angular velocity ω fed back by the dynamic model calculation module, the attitude rotation matrix R and the torque control τ are calculated by the inner-loop attitude control module containing the attitude planner. In combination with the desired force control μd calculated by the outer-loop control module, and the attitude rotation matrix R and the torque control τ calculated by the inner-loop attitude control module, the position and the attitude of the quadrotor UAV are controlled by the dynamic model calculation module in real time to realize asymptotic tracking on the reference trajectory. The position and the attitude of the quadrotor UAV can be displayed by the control result display module in real time.
The outer-loop fully-actuated force control design result and the inner-loop attitude torque control design result are calculated to construct a closed-loop error dynamic model for stability analysis. Specifically:
A Lyapunov function of the closed-loop error dynamic model for the stability analysis is calculated to obtain an attitude planner-containing quadrotor UAV tracking control model. The barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV are input to the attitude planner-containing quadrotor UAV tracking control model to obtain the attitude planner-containing quadrotor UAV tracking controller with the following functions:
Function 1: By adjusting the design parameters, with the attitude planner-containing quadrotor UAV tracking controller, the closed-loop error dynamic model is a strictly passive system which takes external environmental noises (dp, da) as an input and the translational velocity error and the angular velocity error (νe, ωz) as an output.
Function 2: When the external environmental noises (dp, da) are bounded, by introducing a damping term into the attitude planner-containing quadrotor UAV tracking controller, and adjusting the design parameters appropriately, all signals of the closed-loop system are bounded, and the output position signal r can almost realize global asymptotic tracking on r*. When there is no external noise disturbance, the closed-loop system is exponentially stable, and the output position signal r can almost realize global actual tracking on r*.
Trajectory tracking control experiments are conducted on the quadrotor UAV For different tracking tasks and different disturbance cases, same controller parameters are used to make experiments.
First case: System parameters are set as m=0.8 kg J1=J2=0.005 kg/m2, and J3=0.015 kg/m2. An acceleration of gravity is set as g=9.8 m/s2 Controller parameters are set as c1=5,c2=c3=c4=1 and d1=1. An initial position and an initial velocity of the UAV are as follows: r0=(r, 0, 0)T, ν0=(0,0,0)T. An initial attitude and an initial angular velocity are as follows: q0=1, ω0=(0,0,0)T. The reference trajectory is divided into an ascending stage, a cruising stage, and a descending stage. Specifically:
In the foregoing equations,
disturbance dp=0,da=0, parameter k1=k2=0.2, height h=100 m, cruising radius r=20 m, and simulation time T=20 πs. Simulation results are shown in
Through observation on the simulation results in
Second case: Disturbances dp=0.1 W1, da=0.1 W2, W1 and W2 are unit white noises, and other parameters are the same as those in the first case. Simulation results are shown in
Third case: System parameters are set as m=8 kg J1=J2=0.05 kg/m2, and J3=0.15 kg/m2 In the controller parameters, d1=0.1, disturbance dp=W1, da=W2, which is 10 times that in the second case, parameter k1=k2=0.04, height h=1000 m, cruising radius r=200 m, and simulation time T=100π s. Other parameters are the same as those in the first case. Simulation results are shown in
To sum up, the technical solution in the present disclosure has the following beneficial effects:
In the embodiments of the present disclosure, by introducing fictitious force control to convert a dynamic model at an underactuated position of the quadrotor UAV into a fully-actuated form, the Brockett constraints are prevented, and thus continuous main thrust control can be designed. Compared with the existing hybrid control, the present disclosure has easy implementation, high control accuracy, and stronger robustness.
The present disclosure makes use of the Rodrigues parameter first to design the smooth attitude planner, converts the singular equilibrium points±1 (one is stable, the other is unstable, and both represent a same attitude) in the unwinding problem caused by the quaternion-based attitude description into the singular point at infinity and the equilibrium point at an origin of coordinates in the attitude dynamic system described based on the Rodrigues vector, and can design the smooth or continuous feedback torque controller with a typical backstepping method. This effectively prevents the unwinding problem and the introduction of the hybrid control, and achieves better maneuverability.
In addition, since the attitude system based on the Rodrigues vector is converted from the quaternion, influences from angle drift are alleviated with normalization of the quaternion, and the designed torque controller can also effectively prevent the redundant calculation, thereby improving the actual applicability.
Since the outer-loop position control design result (position controller) and the inner-loop attitude control design result (attitude controller) are achieved with the typical backstepping method, the controllers are easily combined with an adaptive observer. This can solve the more complicated control problem to improve the control accuracy of the quadrotor UAV.
To implement the corresponding method in Embodiment 1 and achieve corresponding functions and technical effects, an attitude planner-containing trajectory tracking control system for a quadrotor UAV is provided below, including: a first dataset acquisition module, a second dataset acquisition module, a quaternion-based quadrotor UAV dynamic model construction module, a relative quaternion construction module, a smooth attitude planner construction module, an attitude error quaternion and angular velocity error quaternion determining module, a quadrotor UAV attitude error calculation module, an outer-loop design result and an inner-loop design result determining module, a quadrotor UAV position and attitude control model construction module, and a tracking control result determining module.
The first dataset acquisition module is configured to acquire a historical dataset of a barycentric coordinate, a historical dataset of a yaw angle, a historical dataset of a pitch angle, a historical dataset of a roll angle, a historical dataset of a linear velocity along a coordinate direction, and a historical dataset of an angular velocity of a corresponding turning angle of the quadrotor UAV.
The second dataset acquisition module is configured to acquire the barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV in real time.
The quaternion-based quadrotor UAV dynamic model construction module is configured to perform kinematic calculation based on the historical dataset of the barycentric coordinate, the historical dataset of the yaw angle, the historical dataset of the pitch angle, the historical dataset of the roll angle, the historical dataset of the linear velocity along the coordinate direction, and the historical dataset of the angular velocity of the corresponding turning angle of the quadrotor UAV, mechanical calculation on four propellers, and mechanical calculation on a body, and calculate an attitude quaternion to obtain a quaternion-based quadrotor UAV dynamic model.
The relative quaternion construction module is configured to design a desired fully-actuated force control, and calculate a main thrust direction of a body-fixed frame and a desired thrust direction of an inertial frame according to the desired fully-actuated force control to construct a relative quaternion.
The smooth attitude planner construction module is configured to construct a smooth attitude planner based on the relative quaternion.
The attitude error quaternion and angular velocity error quaternion determining module is configured to determine an attitude error quaternion and an angular velocity error quaternion based on the smooth attitude planner.
The quadrotor UAV attitude error calculation module is configured to calculate an attitude error of the quadrotor UAV based on the attitude error quaternion and the angular velocity error quaternion with a Rodrigues parameter.
The outer-loop design result and an inner-loop design result determining module is configured to determine an outer-loop position control design result and an inner-loop attitude control design result based on the attitude error of the quadrotor UAV.
The quadrotor UAV position and attitude control model construction module configured to construct an attitude planner-containing position and attitude control model for the quadrotor UAV according to the outer-loop position control design result and the inner-loop attitude control design result.
The tracking control result determining module is configured to input the barycentric coordinate, the yaw angle, the pitch angle, the roll angle, the linear velocity along the coordinate direction, and the angular velocity of the corresponding turning angle of the quadrotor UAV that are acquired in real time to the attitude planner-containing position and attitude control model for the quadrotor UAV, thereby obtaining an attitude planner-containing tracking control result for the quadrotor UAV.
An electronic device is provided in Embodiment 3 of the present disclosure. The electronic device includes a memory and a processor. The memory is configured to store a computer program. The processor is configured to run the computer program to enable the electronic device to execute the attitude planner-containing trajectory tracking control method for a quadrotor UAV in Embodiment 1.
Based on the descriptions in Embodiment 3, a storage medium is provided in Embodiment 4 of the present disclosure. The storage medium stores a computer program. The program can be executed by a processor to realize the attitude planner-containing trajectory tracking control method for a quadrotor UAV in Embodiment 1.
Each embodiment in the description is described in a progressive mode, each embodiment focuses on differences from other embodiments, and references can be made to each other for the same and similar parts between embodiments. Since the system disclosed in an embodiment corresponds to the method disclosed in an embodiment, the description is relatively simple, and for related contents, references can be made to the description of the method.
Particular examples are used herein for illustration of principles and implementation modes of the present disclosure. The descriptions of the above embodiments are merely used for assisting in understanding the method of the present disclosure and its core ideas. In addition, those of ordinary skill in the art can make various modifications in terms of particular implementation modes and the scope of application in accordance with the ideas of the present disclosure. In conclusion, the content of the description shall not be construed as limitations to the present disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202311771234.1 | Dec 2023 | CN | national |