Skip to main content
$$ % Define your custom commands here \newcommand{\bmat}[1]{\begin{bmatrix}#1\end{bmatrix}} \newcommand{\E}{\mathbb{E}} \newcommand{\P}{\mathbb{P}} \newcommand{\S}{\mathbb{S}} \newcommand{\R}{\mathbb{R}} \newcommand{\S}{\mathbb{S}} \newcommand{\norm}[2]{\|{#1}\|_{{}_{#2}}} \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\pdd}[2]{\frac{\partial^2 #1}{\partial #2^2}} \newcommand{\vectornorm}[1]{\left|\left|#1\right|\right|} \newcommand{\abs}[1]{\left|{#1}\right|} \newcommand{\mbf}[1]{\mathbf{#1}} \newcommand{\mc}[1]{\mathcal{#1}} \newcommand{\bm}[1]{\boldsymbol{#1}} \newcommand{\nicefrac}[2]{{}^{#1}\!/_{\!#2}} \newcommand{\argmin}{\operatorname*{arg\,min}} \newcommand{\argmax}{\operatorname*{arg\,max}} \newcommand{\dd}{\operatorname{d}\!} $$

Background: certified funnels and composition

What a funnel certificate promises, the law that runs inside it, how to read its utilization, how one is chosen, and how funnels chain: on certified sets only, checked automatically, with measured sets as validation and never as logic.

Before this page: interval arithmetic, zonotopes and how the two work together. The funnels themselves, edge by edge, are on certified funnels.

1. What a funnel is

Intuition. A feedback law steers the block along one piece of the plan (one edge: a single contact formation with fixed stick or slip modes). A funnel is a certified tube around the planned motion: every state that starts in its entry set stays in the tube and leaves through its exit set, for every disk friction in \([0.3,0.5]\) and every disturbance in a measured set [1], [2], [3].

Check it by hand (a toy). A rate error \(\eta\) obeys \(\eta_{k+1}=0.5\,\eta_k+w_k\) with \(|w_k|\le0.1\). Entry set \(|\eta_0|\le0.2\). Then \(|\eta_1|\le0.5\cdot0.2+0.1=0.2\): the interval \([-0.2,0.2]\) maps into itself, so it is a tube for every step, and any condition that holds on it holds along the whole motion.

Where the funnel lives: positions and velocities. A funnel’s states are not poses alone. Each is a pair \((q,\dot q)\), a point of the tangent bundle \(TQ\) of the configuration space \(Q\): the toy’s \(\eta\) is already a velocity (a rate error). Each certified step integrates the rigid model with inertia, \(M\ddot q=f+J^\top\lambda\) (mass matrix \(M\), applied forces \(f\), contact Jacobian \(J\), contact forces \(\lambda\)), so the next state depends on how fast the block was moving, not only on where it was. That is why a funnel can certify motion, such as a landing at nonzero speed, where a set of quasi-static poses cannot.

The general statement. The certificate checks, by interval or zonotope arithmetic on the rigid model, that one step of the planned mode carries every state of each band of the tube into a later band or the exit set, and that at every such state:

  • every closed contact carries a normal force of at least the derived force floor \(N_{\min}=2\times10^{-4}\) N, the simulator’s measured one-step contact-force residual at its joint 95/95 bound;
  • every force lies in its friction cone (sliding contacts on the edge opposite the slip, sticking ones strictly inside an inner cone);
  • the motor forces lie in their box;
  • the recognizer reads the planned formation with margin.

The executed motion is then checked in MJX on held-out rollouts.

2. The funnel law: what the disk does inside a funnel

Intuition. Along one edge the motion is one-dimensional at heart: a progress variable \(\theta\) must increase (on the pivot, the block’s tilt), and everything else should stay as planned. So the law has no clock. At every step it reads where the block is (\(\theta\)), compares how fast it moves with the planned rate at that place, and compares the quantities the plan holds constant with their planned values. This is maneuver regulation [4], with gains from a transverse linearization [5].

The coordinates.

  • the target rate \(\omega(\theta)>0\), from the slip bound: each sliding contact uses a share \(\beta\) of its slip bound;
  • the rate error \(\eta=\dot\theta-\omega(\theta)\);
  • the constants \(k\) of the rigid motion while the contacts stick, and their planned values \(k^*\). On the pivot the disk sticks to the block’s face. As the block turns under the round disk (radius \(R\)), the contact point’s offset \(h\) along the face changes by \(-R\,d\theta\), so the disk’s place on the face, \(k=h+R\theta\), stays fixed.

\((\eta,\ k-k^*)\) are the transverse coordinates: both are zero on the plan, whatever the time.

The law. The disk pushes along a fixed force ray (on the pivot straight into the face) with the magnitude \[ c=c^*(\theta)+K_\eta(\theta)\,\eta+K_k(\theta)\,(k-k^*), \] plus a term that carries its own weight. \(c^*(\theta)\) is the push that keeps the block exactly on the planned orbit \(\dot\theta=\omega(\theta)\). The gains come from linearizing the transverse dynamics about that orbit and choosing how fast the rate error dies out: \(\dot\eta=-\lambda\eta\) to first order.

Check it by hand (a toy). Let the tilt obey \(\ddot\theta=b\,c-g(\theta)\) with \(b>0\) (pushing harder tips faster).

  • On the orbit, \(\ddot\theta=\frac{d}{dt}\omega(\theta)=\omega'(\theta)\,\omega(\theta)\), so \(c^*=(\omega'\omega+g)/b\).
  • With \(c=c^*+K_\eta\eta\): \(\dot\eta=\ddot\theta-\omega'\dot\theta=bK_\eta\eta-\omega'\eta\).
  • For \(\dot\eta=-\lambda\eta\) take \(K_\eta=(\omega'-\lambda)/b\).

With \(b=2\), \(\lambda=40\) 1/s and \(\omega'=-0.5\) 1/s (the planned rate falls as the block tilts), \(K_\eta=-20.25\): a block \(0.1\) rad/s too fast gets a push \(2.0\) smaller than \(c^*\), and one too slow a push \(2.0\) larger.

The pivot (worked example). The block tilts on its floor corner from \(23^\circ\) to \(41^\circ\) in the formation \(\{m_x,g_v,s_v\}\): the floor corner and the step corner slide, the disk sticks. With \(\beta=1\) the target rate falls from \(5.95^\circ\)/s at \(23^\circ\) to \(2.56^\circ\)/s at \(41^\circ\). The push is straight into the face, \(\lambda=40\) 1/s (the realizer’s block damping over the block’s mass), and \(k^*=50.46\) mm, the disk’s place in the planned call. The four functions \(\omega\), \(c^*\), \(K_\eta\) and \(K_k\) are Chebyshev series of degree 12 in \(\theta\) on \([15^\circ,50^\circ]\).

Why the series is the law. The controller evaluates exactly these series, and the certificate is computed for them. The series approximate the transverse design closely (on the pivot to about \(10^{-6}\) in the gains’ units, far less for \(\omega\)), but that approximation never enters the certificate: a poorer fit would be a slightly different law, certified or refused on its own merits. Nothing has to be bounded about the fit.

In our chain. ccg.certify.certifier builds the law for any edge (build_law; the degree is its constant DEG), ccg.certify.transverse for the pivot; the derivation is in the technical report’s chapter on Theorem T.

3. Utilization: how much room is left

Intuition. Each condition has a margin: how far the worst state in the set is from violating it. Utilization is the certificate’s smallest remaining margin as a fraction of its capacity. 1 means untouched, 0 means at the limit: higher is safer.

Check it by hand. A friction cone allows \(|f_t|\le\mu f_n\). If over the whole tube \(|f_t|\le0.6\,\mu f_n\), that condition’s utilization is \(1-0.6=0.4\). If another condition’s is \(0.25\), the certificate’s utilization is \(0.25\), set by the tighter one, its binding condition.

In our chain. The roll from \(62^\circ\) is certified at 0.376, bound by the step corner’s cone edge; the platform transport at about 0.21, bound by a force floor.

4. Choosing a law: coverage first, then utilization

Intuition. First make sure the law handles every state it must (coverage); among those that do, take the one with the most room (largest utilization). Coverage is judged for the chain, not the edge alone.

Check it by hand. Three push magnitudes after the roll, each certified on \(2\times8\) sub-boxes of the roll’s certified exit set (a single tube over the whole exit set is refused at every magnitude):

push sub-boxes certified utilization
0.0538 N 16 of 16 0.488
0.1116 N 16 of 16 0.686
0.2316 N 16 of 16 0.316

All three cover the roll’s exit; 0.1116 N has the largest utilization and is chosen, provided its landing also passes (next paragraph).

Why coverage is the chain’s. A push counts only if the landing after it also comes to rest in the planned formation, because a stronger push lands harder. The landings after the 0.1116 N push hit the platform at 34.5–35.5°/s; with the ray-0 roll’s 0.02531 N push they hit at 13.7–17.9°/s. Both came to rest in every MJX rollout (1536 of 1536), so both pass the chain’s coverage test.

5. Composition: on certified sets only

Intuition. Two funnels chain when everything the first can deliver is something the second has been proved to accept. Both sides must be proved sets.

Check it by hand. Funnel A’s certified exit is \(\eta\in[-0.05,0.04]\). Funnel B’s certified entry is \(\eta\in[-0.06,0.06]\). Since \([-0.05,0.04]\subseteq[-0.06,0.06]\), the junction composes. If B’s entry were only measured, say the 95/95 region of the speeds MJX happened to produce, it would not count: a measured set describes what was executed, not what is guaranteed.

The general statement. A junction composes [1] when the exit set certified for one edge lies in the entry set certified for the next (the next funnel’s bands re-verified from it). Measured entry sets are subsets of the executed states and are used only to validate coverage; composition is established on certified sets. The end-to-end claim is the per-certificate claims combined by a union bound: with \(m\) certificates each holding except with probability \(\alpha_i\), the chain holds except with probability at most \(\sum_i\alpha_i\), with the measured end-to-end coverage reported alongside.

The automatic check, and a cascade

A script, chain_check, reads each junction’s exported set records and passes it only if the certified exit lies inside the certified entry, compared exactly. A measured set fails as FAIL (measured), a missing record as FAIL (missing), and a NaN never passes.

A cascade. Re-certifying the tip from its departure’s certified hand-off widened the tip’s exit by about \(10^{-5}\) rad/s: \(|\eta'|\le0.036055\) against the pivot’s certified entry \(0.036045\) rad/s, and \(0.200\) mm against \(0.182\) mm in the disk’s place. That is outside, so the pivot was re-verified from the new exit (it holds, utilization 0.228), and the stop after it was re-certified from the pivot’s new exit. A one-line change at the start of the chain forces every downstream junction to be re-checked, which is exactly what an automatic check is for.

“Inside the band” is not “a certified entry”

Landing inside a funnel’s certified bands does not by itself make a certified entry: the bands are proved invariant only for states that enter through the funnel’s entry set. A departure that ends in the bands but outside the entry set needs the funnel re-verified from that departure’s exit. Until then, chain_check fails the junction.

Asymmetric entry sets

Intuition. A box entry set is symmetric about its centre. If the motion only goes forward, a symmetric box admits states that go backwards, which no real departure produces, and the certificate refuses them.

In our chain. The floor-corner lift’s departure hands off at a tilt rate within \([-0.0039,+0.0286]\) rad/s of its target of 1°/s (0.0175 rad/s). A symmetric entry of \(\pm0.0286\) rad/s includes rates below \(-0.0175\) rad/s about the target, i.e. tilting backwards, and the funnel refused it (no progress). Re-verified from the asymmetric entry, it holds (utilization 0.267).

6. Measured quantities: joint 95/95 bounds

Intuition. A certificate needs bounds on what the simulator does that the rigid model does not (residual accelerations, creep, settling). Bounding each quantity separately at 95/95 does not give 95% coverage of the whole certificate, because a rollout must lie inside all bounds at once.

Check it by hand. Five independent quantities, each inside its own bound 95% of the time: all five at once only about \(0.95^5=77\%\) of the time.

The general statement. One joint region, built from order statistics [6], [7]: each quantity is centred at its median and scaled by its own order statistic on half the calibration rollouts; one common inflation is the order statistic of the largest scaled deviation on the other half. It covers at least 95% of rollouts in all quantities at once, with 97.5% confidence per end of the friction band (so both ends hold at 95%). On the tip, per-quantity bounds covered 882 of 1000 held-out rollouts jointly; the joint region covered 963.

Bound each quantity where it lives. Charging the largest creep measured anywhere to every contact point over-bounds the contacts that barely move. On the roll from \(62^\circ\), the disk’s place on the bottom face creeps up to 2.39 mm in MJX, the largest creep of any contact. Charging 2.39 mm to the step-corner contact as well made the first band’s lower bound on progress per step \(-2.9\times10^{-5}\), a refusal; with each contact’s own creep it is at least \(1.37\times10^{-4}\), above the \(3.49\times10^{-5}\) one band needs, and the roll certifies. Each contact carries its own bound inside the joint region.

The rigid-versus-simulator gap is a measured disturbance. After the make under the bottom face, MJX’s block settles \(+0.473\) to \(+0.489^\circ\) in tilt (and \(+0.885\) to \(+0.907\) mm in the step corner’s place) relative to the rigid model’s rest. That settle enters the next departure’s start set as a measured joint 95/95 region.

7. Execute end to end, not just segment by segment

Intuition. Checking each segment in its own simulation, from states saved by the previous one, can miss what happens between segments and whether the whole chain reaches the task’s goal.

In our chain. One continuous MJX simulation per rollout, 1536 rollouts from the block at rest to the platform transport’s exit: every segment survived in all 1536, and the chain’s own goal was reached in all 1536 (Clopper–Pearson [8] 95%: \([0.9976,1]\)). But the executor also evaluates goal tests that no segment check looks at, and the stricter one, lift_to, was met in none of the 1536 runs: the platform transport’s certified exit lies at 42.07 mm along the platform, short of where that test passes. A transport certified on to 62.4 mm, the first section passing the lift goal test (utilization 0.2083, 757 of 757 held-out rollouts inside), is the edge that addresses it. In the chain as certified end to end, with the wide transport, a goal stop and a release, the block reaches the lift goal, released and at rest, in 1536 of 1536 rollouts (Certified funnels).

What to remember

  • A funnel: entry set, law and tube, a certificate (force floor, cones, motor box, reading condition) on the rigid model, checked in MJX.
  • The law has no clock: \(c=c^*(\theta)+K_\eta\eta+K_k(k-k^*)\) on the rate error \(\eta=\dot\theta-\omega(\theta)\) and the constants \(k-k^*\); the law is its Chebyshev series, so no fit error enters the certificate.
  • Utilization: the smallest remaining margin as a fraction of capacity; 1 untouched, 0 at the limit, higher is safer.
  • Choose by coverage of the whole chain first, then the largest utilization.
  • Compose on certified sets only; measured sets validate coverage; the end-to-end claim is a union bound over certificates.
  • chain_check makes the containment automatic; a change upstream cascades downstream.
  • Inside the band is not a certified entry; prefer asymmetric entry sets for one-directional motion.
  • Measured quantities as joint 95/95 regions, per contact, including the rigid-versus-simulator settle.
  • Execute end to end: it finds gaps that segment checks miss.

Next: the techniques that made the chain certify.

Further reading

  • Burridge, Rizzi and Koditschek [1]: the classic on sequential composition of funnels, where “exit inside the next entry” comes from.
  • Tedrake et al. [2]: LQR-trees, funnels verified by sums of squares and composed into a tree.
  • Majumdar and Tedrake [3]: funnel libraries composed online, with robustness to disturbances.
  • Hauser and Hindman [4]: maneuver regulation, a law indexed by the path instead of time.
  • Shiriaev, Freidovich and Gusev [5]: transverse linearization, where the gains come from.
  • Sadraddini and Tedrake [9]: linear encodings for the containment checks a junction needs.
  • Wilks [6]: distribution-free tolerance limits from order statistics, the basis of a 95/95 bound.
  • Krishnamoorthy and Mathew [7]: tolerance regions in depth, including multivariate and nonparametric ones.
  • Clopper and Pearson [8] and Wilson [10]: exact and score confidence intervals for a success rate such as 1536 of 1536.
  • McNemar [11]: the paired test used to compare two configurations on the same starts.

References

[1]
R. R. Burridge, A. A. Rizzi, and D. E. Koditschek, “Sequential composition of dynamically dexterous robot behaviors,” The International Journal of Robotics Research, vol. 18, no. 6, pp. 534–555, 1999, doi: 10.1177/02783649922066385.
[2]
R. Tedrake, I. R. Manchester, M. Tobenkin, and J. W. Roberts, “LQR-trees: Feedback motion planning via sums-of-squares verification,” The International Journal of Robotics Research, vol. 29, no. 8, pp. 1038–1052, 2010, doi: 10.1177/0278364910369189.
[3]
A. Majumdar and R. Tedrake, “Funnel libraries for real-time robust feedback motion planning,” The International Journal of Robotics Research, vol. 36, no. 8, pp. 947–982, 2017, doi: 10.1177/0278364917712421.
[4]
J. Hauser and R. Hindman, “Maneuver regulation from trajectory tracking: Feedback linearizable systems,” in IFAC symposium on nonlinear control systems design, 1995, pp. 595–600.
[5]
A. S. Shiriaev, L. B. Freidovich, and S. V. Gusev, “Transverse linearization for controlled mechanical systems with several passive degrees of freedom,” IEEE Transactions on Automatic Control, vol. 55, no. 4, pp. 893–906, 2010.
[6]
S. S. Wilks, “Determination of sample sizes for setting tolerance limits,” The Annals of Mathematical Statistics, vol. 12, no. 1, pp. 91–96, 1941, doi: 10.1214/aoms/1177731788.
[7]
K. Krishnamoorthy and T. Mathew, Statistical tolerance regions: Theory, applications, and computation. in Wiley series in probability and statistics. Wiley, 2008. doi: 10.1002/9780470473900.
[8]
C. J. Clopper and E. S. Pearson, “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika, vol. 26, no. 4, pp. 404–413, 1934, doi: 10.1093/biomet/26.4.404.
[9]
S. Sadraddini and R. Tedrake, “Linear encodings for polytope containment problems,” in IEEE conference on decision and control (CDC), 2019, pp. 4367–4372. doi: 10.1109/CDC40024.2019.9029363.
[10]
E. B. Wilson, “Probable inference, the law of succession, and statistical inference,” Journal of the American Statistical Association, vol. 22, no. 158, pp. 209–212, 1927, doi: 10.1080/01621459.1927.10502953.
[11]
Q. McNemar, “Note on the sampling error of the difference between correlated proportions or percentages,” Psychometrika, vol. 12, no. 2, pp. 153–157, 1947, doi: 10.1007/BF02295996.