Exploiting the complementarity structure: stability analysis of contact dynamics via sums-of-squares Michael Posa Joint work with Mark Tobenkin and Russ Tedrake Massachusetts Institute of Technology BIRS Workshop on Computational Contact Mechanics 2/17/2014 Stability Analysis and Contact FastRunner [IHMC 2013] Atlas [Boston Dynamics, MIT 2014] Domo [Edsinger 2007] 2/17/2014 Lyapunov Functions Capture stability properties of dynamic systems Lyapunov Function 2/17/2014 Sums-of-Squares For polynomials, non-negativity is NP-hard Replace with sufficient condition Convex constraint in a Semidefinite Program [Parrilo 2000, Lasserre 2001] 2/17/2014 Regional Stability Rarely have global stability Instead, show 2/17/2014 S-Procedure Positivity over a basic semi-algebraic set: Sufficient condition: 2/17/2014 Hybrid Barrier Certificates For valid a hybrid jumps: . . . [Prajna, Jadbabaie, and Pappas 2007] 2/17/2014 Hybrid Systems Approach Number of hybrid modes exponential in number of contact points 2/17/2014 Objective Given a system of rigid bodies with: Inelastic impacts and Coulomb friction Automated numerical analysis of • Equilibrium stability in the sense of Lyapunov • Positive invariance • Unsafe region avoidance Algorithms polynomial in number of contacts [Posa, Tobenkin, and Tedrake. HSCC 2013] 2/17/2014 Measure Differential Inclusions Alternative framework for describing solutions [Moreau, Brogliato, Stewart, Leine, …] • Dynamics from set-valued functions • v(t) is of locally bounded variation and has no singular part Lyapunov Condition 2/17/2014 Lyapunov Conditions How to efficiently express Contact forces λ(q,v) are discontinuous Easy to write 2/17/2014 ? Leveraging Structure Contact model constrains λ Robot kinematics are algebraic… Semialgebraic conditions in states and forces 2/17/2014 Lyapunov Conditions over admissible states and forces In the air: Impacts: Admissible Set Non-penetration Normal force Dissipation Friction Cone Complementarity 2/17/2014 Convexity and Connected Components dV · 0; V · 10 v¡ v+ v 2/17/2014 A Sufficient Condition Verify that V decreases along a path from (q,v-) to (q,v+) Not Verified v¡ (t) Verified Not Verified 2/17/2014 Rimless Wheel • 5 state model with two contact points • Exhibits Zeno • Bilinear alternation searching over quartic Lyapunov functions • Verify stability and region of invariance about equilibrium 2/17/2014 2/17/2014 2/17/2014 [Desbiens, Asbeck, Cutkosky 2010] Perching Glider • 4 state model of glider after perching • Modifying a previous example from Glassman • Find largest set of safe initial conditions Feet attached to wall Tail can collide with wall [Desbiens et al.] 2/17/2014 2/17/2014 Scaling Contact conditions and constraints are separable By continuity, sufficient to write For n state variables and m contact points, size of SDP is 2/17/2014 Control Design (work in progress) Find u(x) that maximizes the verified region SOS problem is bilinear in u and V 2/17/2014 Conclusion Exploit algebraic structure of contact models Scalable framework for automated stability analysis Numerical conditioning still an issue 2/17/2014