Theoremadvanced
Differential flatness of the quadrotor
Also called quadrotor flat outputs.
The full state and inputs of a quadrotor follow from position, yaw and their derivatives, so trajectories can be planned in those four outputs.
Statement
Take the quadrotor model with the world axis up, and m/s²:
with mass , inertia positive definite, thrust and body moment . Write for the columns of . For an angle , let and . Say that is the yaw of when and . This is the yaw angle of the Z-X-Y Euler angles, the convention of Mellinger and Kumar.
Theorem. Let be of class and of class on an interval . Write , and , and let . Assume that for all times in :
- (C1) nonzero thrust: , that is, ;
- (C2) a defined heading: is not parallel to .
Then there is exactly one solution of the model on with whose position is and whose yaw is . It is given by:
So the position and the yaw are flat outputs of the quadrotor in the sense of differential flatness: they are functions of the state, and the state and the inputs are functions of them and of finitely many of their derivatives, up to the fourth derivative of and the second of . The four rotor thrusts follow from by the invertible mixer on the quadrotor dynamics page.
In plain words
A quadrotor has twelve numbers in its state and four controls, so it seems hard to plan its motion. But if you draw any smooth path through space and say which way the nose should point along the way, everything else is fixed. The push must point along the acceleration plus gravity, so the tilt follows from the path. The nose direction then fixes the full orientation. How fast the tilt changes follows from how fast the acceleration changes. And the turning effort follows from that. So a planner needs to draw only four smooth curves: three for the position and one for the heading.
This works only while the motors push. In free fall the push is zero and the tilt can be anything, so the path does not fix it.
Proof
Existence. Define , and by the formulas. By (C1), , so and is a unit vector. By (C2), , so is a unit vector orthogonal to and to , and completes a right-handed orthonormal frame. So , and it is in since is and is . Since is parallel to , , so is the yaw of .
Translation: , which is the second equation with .
Rotation: let be the body angular velocity of , that is , so the third equation holds by definition. It remains to show that has the stated components. Since , the columns satisfy
Differentiate : . Taking the dot product with , and gives , and . Differentiate the yaw condition , with : , which gives , since .
Differentiate once more for (here is and is ). From , and , the dot products with and give and . The second derivative of the yaw condition, , with and , gives . Finally, defining by the last formula makes the fourth equation hold.
Uniqueness. Let be any solution with , position and yaw . The translation equation forces , and with and this forces and ; in particular (C1) is necessary. The yaw condition says that is a unit vector orthogonal to and to , so , and picks the plus sign. Then is fixed, is fixed by , and by the fourth equation.
Check. A scratch script evaluated these formulas on a generic trajectory ( a sum of sines and a quadratic, a sine) at five times, and compared them with central differences of , and and with the translation equation. The largest difference was (measurement).
Consequences
- Planning in the flat outputs. Any position path and yaw path that keep (C1) and (C2) can be flown in the model. Minimum snap trajectories are polynomials in these outputs, chosen so that the snap, and so the moment through , is small.
- Feedforward for tracking. The formulas give , and along the plan. The geometric tracking controller on SE(3) uses them as its reference and adds feedback for the errors.
- Feasibility checks. The thrust is , and the body rates are bounded by . So limits on the thrust and on the rates become limits on the acceleration and the jerk of the plan, which a planner can check before it flies.
- Examples by hand. With a constant acceleration and : , and , a pitch of , with . On the circle m with and kg, at : N, and rad/s. The body yaw rate is not zero even though is constant, because is tilted.
Tightness
- (C1) cannot be dropped. If on an interval, as on a ballistic arc, then , and every attitude and every moment give the same position, so the state is not a function of the outputs. At an isolated time where , can jump, which needs an infinite angular velocity: a path that goes through free fall and then pushes in another direction cannot be flown smoothly in general.
- (C2) is a chart singularity. When is parallel to , the nose direction cannot be projected onto the rotor plane, and the yaw is not defined. Another yaw chart, such as Z-Y-X angles with the condition , is singular at a different place ( parallel to ), so switching charts covers both cases, at the cost of a jump in the yaw signal.
- Smoothness. If is only , the moment is not defined at the points where the snap jumps. Piecewise polynomial plans must keep the position at the joints, or accept a jump in the moment.
- Input limits are not part of the theorem. The formulas give the inputs a path needs, not whether the rotors can give them. Each rotor needs , which must be checked after the mixer.
- Model limits. The theorem is about the rigid body model. With rotor drag that grows with the speed, the position and the yaw are still flat outputs under extra conditions, but the formulas change.
History
Fliess, Lévine, Martin and Rouchon introduced differentially flat systems in the 1990s; see differential flatness. Mellinger and Kumar used the position and the yaw as flat outputs of a quadrotor in 2011, built minimum snap polynomial trajectories in these outputs, and flew them with a nonlinear controller on SO(3). Since then, flatness has been the standard way to plan quadrotor trajectories. Later work extended it to rotor drag and to quadrotors that carry a load on a cable.
References
- Daniel Mellinger and Vijay Kumar, Minimum snap trajectory generation and control for quadrotors, Proceedings of the 2011 IEEE International Conference on Robotics and Automation, the section on differential flatness (the flat outputs position and yaw, the body axes from the acceleration and the yaw, and the body rates from the jerk)
- Robert Mahony, Vijay Kumar and Peter Corke, Multirotor aerial vehicles, modeling, estimation, and control of quadrotor, IEEE Robotics and Automation Magazine 19(3), pp. 20-32 (the model, and trajectory planning with the flat outputs)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W0 stub |
|
Tag DJV70J Edit this page History Report an error Markdown