Algorithm Search⌘K

Definitionadvanced

Differential flatness

Also called flat system, flatness.

A system is flat if m outputs and their derivatives give all states and inputs with no integration. Trajectories can then be planned in those outputs; no general test exists for m >= 2.

A system is differentially flat if there is a set of outputs, as many as the inputs, such that all states and all inputs are functions of these outputs and a finite number of their derivatives, with no integration. These outputs are called flat outputs. They can be chosen freely as functions of time, and then the states and inputs follow by algebra and differentiation. So planning a motion becomes the choice of a smooth curve for the flat outputs that meets the boundary conditions, a task that needs no differential equation to be solved. Flatness was introduced by Fliess, Lévine, Martin and Rouchon in the 1990s. It is close to feedback linearization: a flat system is linearizable by a dynamic feedback of a special kind, and for one input flatness is the same as static feedback linearizability. Its main use is trajectory generation, for vehicles such as the unicycle and the quadrotor.

Definition

Setting. The system is x˙=f(x,u)\dot x = f(x, u) with x∈Rnx \in \mathbb{R}^n, u∈Rmu \in \mathbb{R}^m, ff smooth, and rank⁡∂f∂u=m\operatorname{rank} \frac{\partial f}{\partial u} = m. Smoothness makes ff locally Lipschitz, so solutions are unique for each input by the Picard-Lindelöf theorem.

The system is (differentially) flat if there are an integer qq, a smooth map

y=h(x,u,u˙,…,u(p))∈Rm,y = h(x, u, \dot u, \dots, u^{(p)}) \in \mathbb{R}^m,

and smooth maps φ\varphi and ψ\psi such that, along every trajectory of the system,

x=φ(y,y˙,…,y(q)),u=ψ(y,y˙,…,y(q+1)).x = \varphi(y, \dot y, \dots, y^{(q)}), \qquad u = \psi(y, \dot y, \dots, y^{(q+1)}).

Then yy is a flat output. Its components are differentially independent: they satisfy no differential equation R(y,y˙,…,y(k))=0R(y, \dot y, \dots, y^{(k)}) = 0. So every smooth curve t↦y(t)t \mapsto y(t) is the flat output of exactly one trajectory, given by φ\varphi and ψ\psi. In most applications the definition is local: the maps exist on an open set of the variables, and singular points are excluded.

Properties.

  • The number of flat outputs equals the number of inputs, mm.
  • A flat output is not unique. Any invertible smooth map of yy and its derivatives with the same properties gives another one.
  • A flat system can be transformed by an endogenous dynamic feedback (a feedback with extra states that are themselves functions of xx, uu and derivatives of uu) and a change of coordinates into mm chains of integrators yi(ki)=viy_i^{(k_i)} = v_i (Fliess et al. 1995). Conversely, every system that can be linearized this way is flat.
  • For one input, m=1m = 1, a system is flat if and only if it is static feedback linearizable (Charlet, Lévine and Marino 1989). Then the flat output is an output of relative degree nn, and the conditions for feedback linearizability are a complete test.
  • For m≥2m \ge 2 there is no general test that decides flatness from ff. Flat outputs are found by physical insight, or by tests for special classes.
  • A flat system is controllable in the sense that its trajectories can join any two points where the maps φ\varphi, ψ\psi are defined: choose a curve y(t)y(t) that matches the values of y,y˙,…,y(q)y, \dot y, \dots, y^{(q)} given by the two points.

Examples and non-examples

Linear systems. A linear system x˙=Ax+Bu\dot x = A x + B u is flat if and only if it is controllable. For one input, the flat output is y=wTxy = w^T x, with wTw^T the last row of the inverse of C=[B,AB,…,An−1B]\mathcal{C} = [B, A B, \dots, A^{n-1} B]. For A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix} and B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, C=[011−3]\mathcal{C} = \begin{bmatrix} 0 & 1 \\ 1 & -3 \end{bmatrix} and C−1=[3110]\mathcal{C}^{-1} = \begin{bmatrix} 3 & 1 \\ 1 & 0 \end{bmatrix}, so y=x1y = x_1. Then x2=y˙x_2 = \dot y and u=y¨+3y˙+2yu = \ddot y + 3 \dot y + 2 y.

The unicycle. For p˙1=vcos⁡θ\dot p_1 = v \cos\theta, p˙2=vsin⁡θ\dot p_2 = v \sin\theta, θ˙=ω\dot\theta = \omega with inputs vv and ω\omega, the position y=(p1,p2)y = (p_1, p_2) is a flat output. Where v>0v > 0,

θ=atan2⁡(p˙2,p˙1),v=p˙12+p˙22,ω=p˙1p¨2−p˙2p¨1p˙12+p˙22.\theta = \operatorname{atan2}(\dot p_2, \dot p_1), \qquad v = \sqrt{\dot p_1^2 + \dot p_2^2}, \qquad \omega = \frac{\dot p_1 \ddot p_2 - \dot p_2 \ddot p_1}{\dot p_1^2 + \dot p_2^2}.

For the planned path p1=tp_1 = t, p2=t2p_2 = t^2, at t=1t = 1: p˙=(1,2)\dot p = (1, 2) and p¨=(0,2)\ddot p = (0, 2), so θ=atan2⁡(2,1)=1.10715\theta = \operatorname{atan2}(2, 1) = 1.10715, v=5=2.23607v = \sqrt 5 = 2.23607 and ω=2/5=0.4\omega = 2/5 = 0.4. At v=0v = 0 the heading is not defined by the path, so a stop inside a plan is a singular point. The differential drive moves like the unicycle, with the midpoint of its wheel axle as the flat output. For the kinematic bicycle model, the center of the rear axle is a flat output.

Feedback linearizable systems. For the pendulum x˙1=x2\dot x_1 = x_2, x˙2=−asin⁡x1−bx2+cu\dot x_2 = -a \sin x_1 - b x_2 + c u, the angle y=x1y = x_1 is a flat output: x2=y˙x_2 = \dot y and u=(y¨+asin⁡y+by˙)/cu = (\ddot y + a \sin y + b \dot y)/c.

The quadrotor. The position of the center of mass and the yaw angle form a flat output of the standard rigid body model, with four inputs. The quadrotor flatness page gives the maps, and minimum snap trajectories plan the position as polynomials because of it.

Non-example: a system that is not feedback linearizable. The single-input system x˙1=x2+x32\dot x_1 = x_2 + x_3^2, x˙2=x3\dot x_2 = x_3, x˙3=u\dot x_3 = u fails the involutivity condition, so it is not static feedback linearizable. By Charlet, Lévine and Marino (1989) it is not flat, although its Jacobian linearization is controllable and so is flat.

Non-example: an uncontrollable part. For x˙1=−x1\dot x_1 = -x_1, x˙2=u\dot x_2 = u, every trajectory has x1(t)=x1(0)e−tx_1(t) = x_1(0) e^{-t}. If x1x_1 were a function of a flat output and its derivatives, these would satisfy the differential equation x˙1=−x1\dot x_1 = -x_1, which flatness forbids. So the system is not flat.

Non-example: an output with internal states. For a single-input system and an output with relative degree r<nr < n, xx is not a function of yy and its derivatives alone: the n−rn - r internal states follow the zero dynamics, a differential equation driven by yy. Such an output is not flat.

References

  1. M. Fliess, J. Lévine, P. Martin and P. Rouchon, Flatness and defect of non-linear systems: introductory theory and examples, International Journal of Control 61(6), 1327-1361, 1995, the definition of a flat system and a flat output, the link with linearization by endogenous dynamic feedback, and the examples
  2. B. Charlet, J. Lévine and R. Marino, On dynamic feedback linearization, Systems and Control Letters 13(2), 143-151, 1989, a single-input system is linearizable by dynamic feedback only if it is linearizable by static feedback
  3. Jean Lévine, Analysis and Control of Nonlinear Systems: A Flatness-based Approach, Springer, 2009, the definition of flatness, the characterization of flat outputs and the trajectory planning examples

Where this leads

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/Y45QJA/text.yaml