Algorithm Search⌘K

Techniquecore

Polyhedral friction cone approximation

Also called linearized friction cone.

Replaces the circular Coulomb friction cone by a pyramid with k edges, so that contact force constraints become linear and fit in linear programs and LCPs.

The circular friction cone ∥ft∥≤μfn\lVert f_t \rVert \le \mu f_n is convex but not polyhedral, so a contact force constraint with it is not linear. The polyhedral approximation replaces the cone by a pyramid: the set of nonnegative combinations of kk edge vectors. Each contact force then becomes f=∑jajejf = \sum_j a_j e_j with aj≥0a_j \ge 0, a linear constraint, and grasp analysis, force optimization and contact simulation can use linear programs and linear complementarity problems. The price is an error that depends on kk and on the choice between an inner and an outer pyramid.

In plain words

A friction cone is like an ice cream cone standing on the contact point. Any push that stays inside the cone is safe; the finger does not slip. Round shapes are awkward for some solvers, which want flat sides. So we cut the round cone into a pyramid with a few flat sides. If the corners of the pyramid touch the round cone, the pyramid fits inside it, and anything the pyramid allows is safe, but a few safe pushes are lost. If the flat sides touch the round cone instead, the pyramid is larger, and it allows a few pushes that really slip. More sides make the error smaller and the problem bigger.

When it applies

  • The contact model is a point contact with Coulomb friction, or a soft finger whose torsion limit is also linearized (grasp contact models).
  • The problem around the contacts is linear: a feasibility test, a linear program, or a linear complementarity problem. A solver that handles second-order cones directly does not need the approximation.
  • The error of the pyramid is acceptable, or its direction is the safe one for the question: an inner pyramid for a test that must not accept a bad grasp, an outer pyramid for a bound that must not reject a feasible motion.
  • In the plane the method is exact: a planar cone has exactly the two edges n±μtn \pm \mu t.

The template

The input is the inward unit normal nn at the contact, the coefficient μ\mu, and the number of edges k≥3k \ge 3. The output is the list of edges; the pyramid is their conic hull.

  1. LINEARIZE-CONE(n, μ, k, outer)
  2. 1choose unit tangents t1, t2 with (t1, t2, n) orthonormal
  3. 2if outer then ν ← μ / cos(π/k) else ν ← μ
  4. 3for j = 0 to k - 1 do
  5. 4θ ← 2πj / k
  6. 5e_j ← n + ν (cos θ · t1 + sin θ · t2)
  7. 6return (e_0, ..., e_{k-1}) ▷ FC_k = { Σ a_j e_j : a_j ≥ 0 }

Then replace each constraint "ff is in the friction cone" by "f=∑jajejf = \sum_j a_j e_j with aj≥0a_j \ge 0". The normal force is fn=∑jajf_n = \sum_j a_j, because each edge has normal component 1. A wrench constraint follows by linearity: the contact can apply exactly the wrenches ∑jaj(p×ej,ej)\sum_j a_j (p \times e_j, e_j).

Why the error is cos⁡(π/k)\cos(\pi/k). Cut the cone at fn=1f_n = 1. The section of the true cone is a disc of radius μ\mu in the tangent plane. With ν=μ\nu = \mu (L2), the edges hit the circle at the vertices of a regular kk-gon inscribed in the disc. The inradius of that kk-gon is μcos⁡(π/k)\mu \cos(\pi/k), so in the worst tangential direction, halfway between two edges, the pyramid allows only μcos⁡(π/k)\mu \cos(\pi/k) where the true cone allows μ\mu. With ν=μ/cos⁡(π/k)\nu = \mu / \cos(\pi/k) the kk-gon is circumscribed about the disc: its inradius is μ\mu, and its vertices reach μ/cos⁡(π/k)\mu / \cos(\pi/k) in the directions of the edges.

kk inner: worst tangential reach cos⁡(π/k)\cos(\pi/k) outer: worst overreach 1/cos⁡(π/k)1/\cos(\pi/k) inner: area of the section
3 0.5000 2.0000 0.4135
4 0.7071 1.4142 0.6366
6 0.8660 1.1547 0.8270
8 0.9239 1.0824 0.9003
16 0.9808 1.0196 0.9745

The area column is the area of the inscribed kk-gon divided by the area of the disc, ksin⁡(2π/k)/(2π)k \sin(2\pi/k) / (2\pi). An inner pyramid within 5 percent of the true cone in every direction needs k≥10k \ge 10; within 1 percent it needs k≥23k \ge 23.

Classic examples

Force-closure test. The force-closure test turns each edge into a primitive wrench and asks for a strictly positive combination that sums to zero. With an inner pyramid, a CLOSED answer is also true for the circular cones. Two hard fingers in space with k=4k = 4 show the usual size: 8 primitive wrenches in R6\mathbb{R}^6.

The friction box of legged robots. Controllers for walking robots often write the friction constraint as ∣fx∣≤μfz\lvert f_x \rvert \le \mu f_z and ∣fy∣≤μfz\lvert f_y \rvert \le \mu f_z. This is a 4-edge pyramid with ν=μ2\nu = \mu \sqrt{2} along the diagonals, that is the outer pyramid of the template rotated by 45 degrees. Its corners reach 2μ≈1.414μ\sqrt{2} \mu \approx 1.414 \mu, so a force in a diagonal direction can pass the constraint and still slip. Replacing μ\mu by μ/2\mu / \sqrt{2} gives the inner pyramid. The contact wrench cone of a flat foot and the quadratic programs of whole-body control and convex MPC use such pyramids.

Time-stepping simulation. Stewart and Trinkle (1996) write each step of a rigid body simulation with Coulomb friction as a linear complementarity problem. The tangential force is a nonnegative combination of kk directions in the tangent plane, so the friction cone is a pyramid; see Stewart-Trinkle time-stepping. The direction of the sliding friction force is then one of the kk directions, which makes a sliding body turn slightly toward an edge of the pyramid.

Grasp force optimization. To hold an object with the least squeeze, minimize the sum of the normal forces ∑i∑jaij\sum_i \sum_j a_{ij} subject to the balance of wrenches and aij≥0a_{ij} \ge 0. With pyramids this is a linear program.

Variations

  • Inner, outer, or in between. The inner pyramid (ν=μ\nu = \mu) gives sufficient conditions for the true cone; the outer pyramid (ν=μ/cos⁡(π/k)\nu = \mu / \cos(\pi/k)) gives necessary conditions. Some codes use a pyramid of equal area, which has no guarantee in either direction.
  • Edges aligned with the load. A pyramid with one edge in the direction of the expected tangential load has no error in that direction. Only the directions between edges lose capacity.
  • Soft fingers. The soft finger contact adds a torsional moment about the normal with ∣mn∣≤γfn\lvert m_n \rvert \le \gamma f_n. Each edge eje_j is then used twice, with the moments +γn+\gamma n and −γn-\gamma n. The Handbook also describes models that couple the twist limit and the friction limit (Howe and Cutkosky 1996); they are not polyhedral.
  • Exact cones. A second-order cone program keeps the circular cone and avoids the error, at the price of an interior point solver.
  • Refinement. The pyramid with 2k2k edges contains the one with kk edges when the edges of the first are among those of the second. A test that answers CLOSED with kk edges then also answers CLOSED with 2k2k.

Pitfalls

  • Calling an outer pyramid conservative. The friction box ∣fx∣,∣fy∣≤μfz\lvert f_x \rvert, \lvert f_y \rvert \le \mu f_z is larger than the cone. A force that passes it can slip.
  • A wrong tangent basis. The tangents t1,t2t_1, t_2 must be orthogonal to nn and to each other, with unit length. A tangent that is not orthogonal to nn tilts the whole pyramid.
  • Unnormalized normals. If nn is not a unit vector, μ\mu is scaled by the wrong amount and the cone has the wrong angle.
  • Too many edges. The number of variables is ckck for cc contacts. A large kk makes the program bigger and more degenerate, while the error falls only like π2/(2k2)\pi^2 / (2k^2).
  • Anisotropic sliding. In a simulation, a pyramid with few edges makes a sliding body prefer the directions of the edges. This is an artifact of the approximation, not of Coulomb's law.
  • The plane needs no approximation. A planar contact has exactly two edges. Using more edges in the plane only adds redundant columns.

Exercises

  1. Show that a regular kk-gon inscribed in a circle of radius μ\mu has inradius μcos⁡(π/k)\mu \cos(\pi/k), and conclude the inner column of the table.
  2. Find the least kk for which the inner pyramid loses at most 1 percent of the tangential capacity in every direction. (Answer: k=23k = 23, since cos⁡(π/22)≈0.98982\cos(\pi/22) \approx 0.98982 and cos⁡(π/23)≈0.99068\cos(\pi/23) \approx 0.99068.)
  3. Show that the friction box ∣fx∣≤μfz\lvert f_x \rvert \le \mu f_z, ∣fy∣≤μfz\lvert f_y \rvert \le \mu f_z contains the circular cone, and that a force at 45 degrees can exceed the true limit by the factor 2\sqrt{2}.
  4. Show that a pyramid whose edges lie on the cone is contained in the cone, using the convexity of the cone.

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 12, Section 12.2.1 (Friction), the friction cone approximated by a polyhedral cone, and Section 12.2.3 (force closure with the edges of the cones)
  2. Domenico Prattichizzo and Jeffrey C. Trinkle, Grasping, Chapter 38 of the Springer Handbook of Robotics, second edition, Springer, 2016, Section 38.4.2 (Force Closure), the linearized friction cone of equation (38.59), inscribed, and the circumscribed cone with mu / cos(pi / n_g); the chapter is pages 955 to 988
  3. Richard M. Murray, Zexiang Li and S. Shankar Sastry, A Mathematical Introduction to Robotic Manipulation, CRC Press, 1994, Chapter 5 (friction cones and contact models)
  4. David E. Stewart and Jeffrey C. Trinkle, An implicit time-stepping scheme for rigid body dynamics with inelastic collisions and Coulomb friction, International Journal for Numerical Methods in Engineering 39(15), 2673-2691, 1996, the linear complementarity formulation, which uses a polyhedral approximation of the friction cone

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)
WritingW2 basic
  • three classic examples