Princeton Intro to Robotics (Fall 2026) | Lecture 5: Differential Flatness
Overview
Differential flatness provides a way to plan dynamically executable motion by choosing a robot’s flat-output trajectory and reconstructing the required state and control inputs from it. For the planar quadrotor, the flat outputs are center-of-mass coordinates x and y, and both state and thrusts can be recovered using derivatives through the fourth order; the lecture then connects this approach to RRT planning, 3D quadrotors, and trajectory demonstrations by Daniel Mellinger and Vijay Kumar.
Key takeaways
- For the planar quadrotor, center-of-mass position x and y are flat outputs: their trajectories determine orientation, the full state, and both thrust inputs.
- The planar quadrotor reconstruction uses derivatives through order four, so candidate trajectories and their connections must be sufficiently smooth.
- Differential flatness does not make every requested path physically feasible: smoothness is required, and real robots also face actuator limits and obstacles.
- Flat-output dimension equals control-input dimension in the stated theorem; the 3D quadrotor therefore uses four outputs, x, y, z, and yaw, for its four controls.
- RRT can plan in flat-output space and use flatness-based reconstruction to turn sampled paths into dynamically executable controls.
- Mellinger and Kumar’s minimum-snap quadrotor work demonstrates how flat-output trajectories can support waypoint tracking, aggressive motion, and real-time flight through moving obstacles.
Chapters
- Earlier motion-planning methods included graph search and RRT, which grows a tree by sampling configurations and extending toward them.
- A straight-line extension in configuration space can be physically impossible: a conventional car cannot translate sideways, and a quadrotor cannot move horizontally without tilting.
- The lecture focuses on replacing unconstrained RRT extensions with trajectories that the robot’s dynamics can execute.
- Differentially flat systems include planar and 3D quadrotors and cars.
- The method seeks outputs whose trajectories can be used to recover both the robot’s full state and its control inputs.
- The planar quadrotor serves as the worked example before the general definition.
- The planar quadrotor has three configuration variables, x, y, and orientation θ, with two thrust inputs, f₁ and f₂.
- Its second-order equations relate x and y acceleration to total thrust, mass m, gravity g, and θ; angular acceleration depends on the thrust difference, arm length l, and inertia I.
- The central claim is that specifying the center-of-mass trajectory allows recovery of a compatible control trajectory and the full state trajectory.
- The chosen flat outputs are x(t) and y(t); the planner does not independently specify θ(t).
- The initial x and y values define the assumed starting position, and controls are computed continuously over the requested time interval.
- The claim requires sufficient smoothness: discontinuous motion or teleportation cannot be realized by the quadrotor equations.
- A center of mass that remains stationary can still correspond to different orientations or control choices, so the claim does not establish uniqueness.
- Differentiating the supplied x(t) and y(t) trajectories gives velocities and accelerations needed to reconstruct the state.
- The translational equations give sin θ = −m ẍ/(f₁+f₂) and cos θ = m(ÿ+g)/(f₁+f₂).
- Combining these relationships yields θ = atan2(−ẍ, ÿ+g), with the quadrant-aware form resolving orientation from the acceleration direction.
- Differentiating θ(t) supplies angular velocity, completing the six-dimensional state made up of position, orientation, and their rates.
- The desired trajectory provides translational accelerations, while the reconstructed orientation and its derivatives provide the remaining known quantities.
- The angular equation determines the thrust difference f₂−f₁, and a translational equation determines the thrust sum f₁+f₂.
- These two linear equations can be solved at each time for f₁ and f₂, producing the control-input trajectory.
- For dynamics written as ẋ = f(x,u), a flat output z is defined from the state and, in the general definition, potentially the control and its time derivatives.
- Differential flatness requires functions that recover the full state and controls from z and a finite number of its derivatives.
- For the planar quadrotor, z = (x,y); its state and inputs can be recovered using derivatives up to order q = 4.
- A flat-output trajectory must be smooth enough to supply the required derivatives.
- Once a system’s flat outputs and reconstruction functions are known, a sufficiently smooth output trajectory determines both the state and the control signals.
- The lecture notes that finding flat outputs is generally not a mechanical procedure and often requires system-specific derivation or prior research.
- A stated theorem says the dimension of the flat-output vector equals the dimension of the control-input vector.
- In practical robotics examples discussed here, flat outputs are usually functions of the state rather than of the controls.
- The 3D quadrotor has four control inputs, so its flat-output vector has four components.
- The outputs are center-of-mass coordinates x, y, z plus yaw; roll and pitch can be reconstructed rather than independently prescribed.
- A sufficiently smooth position-and-yaw trajectory enables computation of the required controls and recovery of the remaining state variables.
- For a 3D quadrotor, RRT can sample and extend in the flat-output space (x,y,z,yaw) instead of the full configuration space.
- Differential flatness supplies controls for following each chosen trajectory, addressing the physical-executability problem of ordinary configuration-space extensions.
- RRT connection points must satisfy smoothness conditions; polynomial time trajectories can make derivative continuity constraints easier to enforce.
- Daniel Mellinger and Vijay Kumar’s work, “Minimum Snap Trajectory Generation and Control for Quadrotors,” demonstrated flatness-based trajectory generation and control.
- The approach specifies position and yaw trajectories, then computes the controls needed to track them through waypoints and high-acceleration maneuvers.
- For hoop obstacles, a spherical approximation of the drone simplifies collision checking because roll and pitch are reconstructed rather than directly controlled.
- Motion-capture tracking can locate both the drone and a moving hoop, enabling real-time trajectory planning through the obstacle.
- A University of Zurich drone-racing example combines differential flatness with model predictive control.
- A tail-sitter fixed-wing drone illustrates flatness beyond quadrotors, combining vertical takeoff and landing with fast forward flight.
- The examples show how proving a system flat can support trajectory tracking across different robotic platforms.
- The closing RRT demonstration plans in the quadrotor’s x, y, z, and yaw flat-output space.
- The planner’s output trajectories are converted into control inputs using differential flatness, then executed by the drone.
- This combination preserves the sampling-based planning idea while making tree extensions compatible with the robot’s dynamics.
Transcript excerpt
0:10 All right. Uh let's go ahead and get started. Um so I guess just as a reminder of some of the materials we're covering uh in this uh section of the the course, we're continuing our discussion of motion planning and specifically motion planning with dynamics. Uh so in the first two lectures on motion planning we first covered uh graph search algorithms for planning. So bet for search test for search dystra aar uh and then we looked at the RRT algorithm the rapidly exploring randomized tree algorithm that builds a tree in continuous configuration space uh and kind of operates directly in that configuration space for motion planning. So the last lecture we started to think about dynamics. How do we describe the
0:59 constraints uh that some robot has in terms of the the ways that it can move around? And we specifically looked at equations of motion for the planer quadrotor. So this is a uh three degree of freedom system, six dimensional state space, two control inputs. We wrote down the equations uh that came from Newton's laws. uh and then we sort of sketched uh what the equations might look like at least the general form of the equations for the full 3D uh quadrotor model. So the goal for today is to to continue our discussion of motion planning uh by taking into account the dynamics uh that your robot has and maybe just to to kind of set up the the scene here. So two lectures ago we discussed the RRT algorithm. So there's some obstacles in your
1:47 environment. You're given some starting configuration which we call QA and you want to get to some goal configuration QB. As a reminder, the the way that the RT algorithm operates is that it iteratively grows a tree. So the the
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Introduction to Robotics @ Princeton.