원시데이터 수집 시스템
선정목록으로

A Transition-Aware Method for the Simulation of Compliant Contact With Regularized Friction

관련 산업용 섬유 · (10) 아라미드

기본 정보

저자
  1. Alejandro Castro — Toyota Research Institute, One Kendall Square, Cambridge, USA
  2. Ante Qu — Toyota Research Institute, One Kendall Square, Cambridge, USA|||Stanford University, Computer Science, Stanford, USA
  3. Naveen Kuppuswamy — Toyota Research Institute, One Kendall Square, Cambridge, USA
  4. Alex Alspach — Toyota Research Institute, One Kendall Square, Cambridge, USA
  5. Michael Sherman — Toyota Research Institute, One Kendall Square, Cambridge, USA
DOI
10.1109/lra.2020.2969933
저널
IEEE Robotics and Automation Letters
발행년도
2020
발행기관
Institute of Electrical and Electronics Engineers
피인용수
18
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/lra.2020.2969933
토픽
Mechanical stress and fatigue analysis
OpenAlex ID
W3100294633

평가 내용

관련도
관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 아라미드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Multibody simulation with frictional contact has been a challenging subject of research for the past thirty years. Rigidbody assumptions are commonly used to approximate the physics of contact, and together with Coulomb friction, lead to challengingto-solve nonlinear complementarity problems (NCP). On the other hand, robot grippers often introduce significant compliance. Compliant contact, combined with regularized friction, can be modeled entirely with ODEs, avoiding NCP solves. Unfortunately, regularized friction introduces high-frequency stiff dynamics and even implicit methods struggle with these systems, especially during slip-stick transitions. To improve the performance of implicit integration for these systems we introduce a Transition-Aware Line Search (TALS), which greatly improves the convergence of the Newton-Raphson iterations performed by implicit integrators. We find that TALS works best with semi-implicit integration, but that the explicit treatment of normal compliance can be problematic. To address this, we develop a Transition-Aware Modified SemiImplicit (TAMSI) integrator that has similar computational cost to semi-implicit methods but implicitly couples compliant contact forces, leading to a more robust method. We evaluate the robustness, accuracy and performance of TAMSI and demonstrate our approach alongside relevant sim-to-real manipulation tasks.

본문 54,314자

본문 펼치기
### A Transition-Aware Method for the Simulation of Compliant Contact with Regularized Friction Alejandro M. Castro <sup>1</sup> <sup>_∗_</sup>, Ante Qu <sup>1 2</sup> <sup>_∗_</sup>, Naveen Kuppuswamy <sup>1</sup>, Alex Alspach <sup>1</sup>, and Michael Sherman <sup>1</sup> _Abstract_ —Multibody simulation with frictional contact has been a challenging subject of research for the past thirty years. Rigid-body assumptions are commonly used to approximate the physics of contact, and together with Coulomb friction, lead to challenging-to-solve nonlinear complementarity problems (NCP). On the other hand, robot grippers often introduce significant compliance. Compliant contact, combined with regularized friction, can be modeled entirely with ODEs, avoiding NCP solves. Unfortunately, regularized friction introduces highfrequency stiff dynamics and even implicit methods struggle with these systems, especially during slip-stick transitions. To improve the performance of implicit integration for these systems we introduce a Transition-Aware Line Search (TALS), which greatly improves the convergence of the Newton-Raphson iterations performed by implicit integrators. We find that TALS works best with semi-implicit integration, but that the explicit treatment of normal compliance can be problematic. To address this, we develop a Transition-Aware Modified Semi-Implicit (TAMSI) integrator that has similar computational cost to semi-implicit methods but implicitly couples compliant contact forces, leading to a more robust method. We evaluate the robustness, accuracy and performance of TAMSI and demonstrate our approach alongside relevant sim-to-real manipulation tasks. _Index_ _Terms_ —contact modeling, simulation and animation, grasping, robotics manipulation, dynamics. I. INTRODUCTION ECENTLY robotics has experienced a dramatic boom due to the introduction of new sensor technologies, ac# R tuation, and innovative software algorithms that allow robots to reason about the world around them. These new technologies are allowing the next generation of robots to start moving from their highly structured environments in factories and research labs to less structured, richer environments such as those found in the home. There are still, however, a large variety of research problems to be solved. In particular, manipulation is one area of robotics that raises significant challenges including high-speed sensing, planning, and control. _⃝_ c 2020 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Manuscript received: September 10, 2019; Revised December 16, 2019; Accepted January 13, 2020. This paper was recommended for publication by Editor Hong Liu upon evaluation of the Associate Editor and Reviewers’ comments. _∗_ Authors have contributed equally, and names are in alphabetical order. 1Toyota Research Institute, One Kendall Square, Binney St Building 100, Suite 1-201, Cambridge, MA 02139, USA. 2Stanford University, Computer Science, 353 Jane Stanford Way, Stanford, CA 94305, USA. [alejandro.castro, naveen.kuppuswamy, alex.alspach, sherm]@tri.global, antequ@cs.stanford.edu Digital Object Identifier (DOI): see top of this page. Fig. 1: Sim-to-real comparison for the task of reorienting a mug by making contact with an external surface. See supplemental video. Simulation has proven indispensable in this new era of robotics, aiding at multiple stages during the mechanical and control design, testing, and training of robotic systems. For instance, [1] demonstrates the use of simulated data to train a robotic system to grasp new objects, while [2] studies how to transfer policies trained in simulation to the real world. Near real-time forward simulation has found applications in contact-aware state estimation wherein predicted contacts and physical consistency [3] are used to estimate the state of a robot, manipulands, or both [4], [5]. We would like to synthesize, train, and validate controllers in simulation with the expectation that they will work well in reality. Hence simulation should present a controller with a range of _physical_ models and disturbances, but must avoid significant _non-physical_ simulation artifacts that have no realworld counterparts. A central challenge in simulation for manipulation is the physical modeling and numerical solution of multibody dynamics with contact and friction. Such simulations often involve high mass ratios, stiff dynamics, complex geometries, and friction. Artifacts that are unimportant for other applications are highly amplified in the simulation of a manipulation task; simulations either become unstable or predict highly unstable grasps even if stable in the real system. These characteristics impose strict requirements on robustness, accuracy, and performance to the simulation engine when compared to other robotic scenarios with contact, such as walking. A popular approximation to the true compliant physics of contact is the mathematical limit in which bodies are rigid; however, it can lead to indeterminate systems with multiple solutions, or no solution [6]. Still, the rigid-body approximation is at the core of many simulation engines, enabling them to run at interactive rates. Generally, rigid-body assumptions and Coulomb friction lead to a complex formulation in terms of a nonlinear complementarity problem (NCP), which can be simplified to a linear complementarity problem (LCP) using a polygonization of the friction cone [7], [8]. LCPs are often solved using direct pivoting methods such as Lemke’s algorithm. Even though there are theoretical results for the solution of LCPs [9], the class of systems for which they apply are seldom found in practice, and robust LCP implementations are either slow or proprietary. The authors of [10] iteratively solve a quadratic program (QP) for the friction impulses and a second QP for the normal impulses. Although the results are promising, the coupled problem is non-convex and the solution is not guaranteed to exist. Another drawback of LCP formulations is that the linearization of the friction cone might lead to preferential directions and cause bias in the solution [11]—an example of a potentially-significant non-physical simulation artifact. The computational gain from approximating the friction cone is not clear given that the LCP introduces many auxiliary variables and constraints, and thus [12], [13] propose to solve the original NCP with a non-smooth Newton method. It is common practice to relax contact constraints by introducing _regularization_ [14] or _softening_ [15], [16], [17], allowing objects to interpenetrate due to _numerical_ _compliance_ . Given that the true physics of contact involves compliance and many of the approaches using rigid-body assumptions introduce numerical compliance to make the problem tractable, our work favors using compliant contact. Models in the literature include those for point contact based on Hertz theory [18], volumetric models [19] and more sophisticated approaches modeling contact patches [20], [21]. Coulomb friction can also be regularized by replacing the strict friction-cone constraint with a smooth function of the slip velocity and introducing a _regularization_ _parameter_, or _stiction_ _velocity_, _vs_ so that objects supposedly in stiction still slide with a velocity smaller than _vs_ ; for example see [22]. By incorporating compliant contact forces and regularized friction, we can write the system dynamics as a system of continuous ordinary differential equations (ODEs). However, we observe that in our simulations of manipulation tasks the stiffness of the model is dominated by the regularization of friction. In static equilibrium, the forces due to friction balance the pull of gravity which would otherwise accelerate the object downwards at _g_ _≈_ 9 _._ 8 m _/_ s <sup>2</sup> . Using a typical _vs_ value of 10 <sup>_−_</sup> <sup>4</sup> m _/_ s, the characteristic time scale introduced by regularized friction is about _τ_ _≈_ _vs/g_ _≈_ 10 <sup>_−_</sup> <sup>5</sup> s, and thus our error-controlled integrators must take steps as small as 0 _._ 1 _µ_ s to resolve these highly stiff dynamics. As a result, integrators spend most of the computational effort on resolving these artificially introduced dynamics even when common grasping tasks involve much larger time scales on the order of tenths of a second. With implicit integration, stability theory says we should be able to take large time steps once the system is in stiction, even with a very small _vs_ . This has proven difficult in practice, however. In this work, we analyze the cause and present methods that enable the realization of this theoretical promise in practice. We organize our work as follows. Section II introduces the mathematical framework and notation. Section III introduces our novel Transition-Aware Line Search (TALS) in the velocity _v_ _t,i_ = _P_ _n,i_ <sup>_⊥_</sup> <sup>_v_</sup> <sup>_c,i_</sup> <sup>where</sup> <sup>_P_</sup> <sup>_n,i_</sup> <sup>=</sup> <sup>_n_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>_⊗_</sup> <sup>_n_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>_⪰_</sup> <sup>0</sup> <sup>and</sup> _P_ _n,i_ <sup>_⊥_</sup> <sup>=</sup> <sup>_I_</sup> <sup>_−_</sup> <sup>_P_</sup> <sup>_n,i_</sup> <sup>_⪰_</sup> <sup>0</sup> <sup>are</sup> <sup>projection</sup> <sup>matrices</sup> <sup>in</sup> <sup>R3</sup> <sup>_×_</sup> <sup>3.</sup> For a state with _nc_ contact points we group the velocities _v_ _c,i_ of all contact points in a vector v _c_ _∈_ R <sup>3</sup> <sup>_nc_</sup> . In Eq. (2) the contact Jacobian J _c_ ( q ) _∈_ R <sup>3</sup> <sup>_nc×nv_</sup> maps generalized velocities to contact point velocities as v _c_ = J _c_ v . We group the _scalar_ separation velocities _vn,i_ = _n_ ˆ _i ·_ _v_ _c,i_ into a vector v _n_ _∈_ R <sup>_nc_</sup> so that v _n_ = J _n_ v, where J _n_ = N <sup>ˆ</sup> <sup>_T_</sup> J _c_ _∈_ R <sup>_nc×nv_</sup> context of implicit integration. We systematically assess the performance of a variety of integrators using work-precision plots on a series of proposed canonical test problems in Section IV and measure the improvement in robustness and performance introduced by TALS. We show TALS performs best when _freezing_ the configuration of the system and propose an original Transition-Aware Modified Semi Implicit (TAMSI) method in Section V. In section VI we show that TAMSI handles transitions robustly and outperforms our best implicit integrators for the simulation of relevant manipulation tasks. In VI-C we demonstrate our method in two sim-to-real comparisons using a Kuka arm manipulation station. Final remarks and future research directions are presented in Section VII. II. MULTIBODY DYNAMICS WITH CONTACT We start by stating the equations of motion and introducing our notation, q ˙ = N ( q ) v _,_ (1) M ( q ) ˙ v = _τ_ ( q _,_ v ) + J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_c_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> (2) where q _∈_ R <sup>_nq_</sup> and v _∈_ R <sup>_nv_</sup> are the vectors of generalized positions and velocities respectively, M ( q ) _∈_ R <sup>_nv×nv_</sup> is the system’s mass matrix, _τ_ ( q _,_ v ) is a vector of generalized forces containing Coriolis and gyroscopic terms, gravity, externally applied forces, and actuation, and J _c_ and f _c_ are contact Jacobians and forces, defined in Section II-A. We explicitly emphasize the functional dependence of f _c_ ( q _,_ v ) on the state vector x = ( q _,_ v ) given that we use a compliant contact model with regularized friction. Finally, N ( q ) _∈_ R <sup>_nq×nv_</sup> in Eq. (2) is the block diagonal mapping between generalized velocities v and time derivative of generalized positions q ˙ . Together, Eqs. (1) and (2) describe the system’s dynamics as x ˙ = f ( _t,_ x ) _._ (3) _A._ _Kinematics_ _of_ _Contact_ In point contact, contact between sufficiently smooth nonconforming surfaces can be simply characterized by a pair of witness points _Aw_ and _Bw_ on bodies _A_ and _B_, respectively such that _Aw_ is a point on the surface of _A_ that lies the farthest from the surface of _B_ and vice versa. At the _i_ th contact we define the contact point _Ci_ to be midway between the witness points. For a given configuration q of the system each contact point is characterized by a penetration distance _δi_ ( q ) and a contact normal _n_ ˆ _i_ ( q ) defined to point from body _B_ into body _A_ . We denote with _v_ _c,i_ the velocity of witness point _Aw_ relative to _Bw_, which can be uniquely split into normal velocity _v_ _n,i_ = _P_ _n,i_ _v_ _c,i_ and tangential velocity _v_ _t,i_ = _P_ _n,i_ <sup>_⊥_</sup> <sup>_v_</sup> <sup>_c,i_</sup> <sup>where</sup> <sup>_P_</sup> <sup>_n,i_</sup> <sup>=</sup> <sup>_n_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>_⊗_</sup> <sup>_n_</sup> <sup>ˆ</sup> <sup>_i_</sup> <sup>_⪰_</sup> <sup>0</sup> <sup>and</sup> _n,i_ <sup>_⊥_</sup> <sup>=</sup> <sup>_I_</sup> <sup>_−_</sup> <sup>_P_</sup> <sup>_n,i_</sup> <sup>_⪰_</sup> <sup>0</sup> <sup>are</sup> <sup>projection</sup> <sup>matrices</sup> <sup>in</sup> <sup>R3</sup> <sup>_×_</sup> <sup>3.</sup> is the normal velocities Jacobian and N <sup>ˆ</sup> = diag( _{_ _n_ ˆ _i}_ ) _∈_ R <sup>3</sup> <sup>_nc×nc_</sup> . For the tangential velocities we write v _t_ ( q _,_ v ) = J _t_ ( q ) v _,_ (4) with J _t_ ( q ) = P <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>J</sup> <sup>_c_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_∈_</sup> <sup>R3</sup> <sup>_nc×nv_</sup> <sup>the</sup> <sup>Jacobian</sup> <sup>of</sup> tangential velocities and P <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>) = diag(</sup> <sup>_{_</sup> <sup>_P_</sup> <sup>_⊥_</sup> _n,i_ <sup>_}_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>R3</sup> <sup>_nc×_</sup> <sup>3</sup> <sup>_nc_</sup> <sup>.</sup> with J _t_ ( q ) = P <sup>_⊥_</sup> _n_ tangential velocities and P <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>) = diag(</sup> <sup>_{_</sup> <sup>_P_</sup> <sup>_⊥_</sup> _n,i_ <sup>_}_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>R3</sup> <sup>_nc×_</sup> <sup>3</sup> <sup>_nc_</sup> <sup>.</sup> The reader should notice the difference in sizes for v _n_ _∈_ R <sup>_nc_</sup> grouping the scalar separation velocities, and for v _t_ _∈_ R <sup>3</sup> <sup>_nc_</sup> grouping 3D tangential velocities. This choice simplifies the exposition that follows. <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>) = diag(</sup> <sup>_{_</sup> <sup>_P_</sup> <sup>_⊥_</sup> _n,i_ _r(v)_ _<u>vs</u>_ _<u>vs</u>_ _<u>v1</u>_ _~~v~~_ _0_ _v_ <sup>_*_</sup> _v_ _~~v~~_ _2_ _B._ _Compliant_ _Contact_ _with_ _Regularized_ _Friction_ The normal component of the contact force is modeled following the functional form proposed in [23], which is continuous in both penetration distance _δi_ and rate _δ_ <sup>˙</sup> _i_ as _πi_ = _ki_ (1 + _di_ _δ_ <sup>˙</sup> _i_ )+ _δi_ + _,_ (5) where ( _·_ )+ = max( _·,_ 0) and _ki_ and _di_ are stiffness and damping parameters. Thus, the normal component of the contact force on body _A_ applied at _Ci_ is _f_ _n,i_ = _πi_ ˆ _n_ _i_ . These parameters can be treated as either physical parameters computed for instance according to the theory of Hertz contact as in [20] or as numerical penalty parameters as in [15], [24]. Since the penetration distance _δi_ is defined positive for overlapping geometries, its time derivative relates to the separation velocity _vn,i_ by _δ_ <sup>˙</sup> _i_ = _−vn,i_ . We approximate the Coulomb friction force on body _A_ at _Ci_ with a linear functional form of the tangential velocity _v_ _t,i_, though smoother functions can be used _f_ _t,i_ = _−µ_ ˜ _i_ ( _∥_ _v_ _t,i∥/vs_ ) _πi_ _v_ ˆ _t,i,_ (6) Fig. 2: Divergence of Newton-Raphson near stiction. Iterations cycle between _v_ 2 and _v_ 1 indefinitely. TALS can be used with other implicit integrators. Consider a discrete step of size _h_ from time _t_ <sup>_n−_</sup> <sup>1</sup> to time _t_ <sup>_n_</sup> = _t_ <sup>_n−_</sup> <sup>1</sup> + _h_ . Implicit Euler approximates the time derivative in Eq. (3) using a first order backward differentiation formula. The resulting system of equations is nonlinear in x <sup>_n_</sup> and can be solved using Newton’s method, ∆ x <sup>_k_</sup> = _−_ A <sup>_k_</sup> <sup>�</sup> <sup>_−_</sup> <sup>1</sup> r ( x <sup>_n,k_</sup> ); x <sup>_n,k_</sup> <sup>+1</sup> = x <sup>_n,k_</sup> + ∆ x <sup>_k_</sup> _,_ (9) where _k_ denotes the iteration number, the residual is defined as r ( x ) = x _−_ x <sup>_n−_</sup> <sup>1</sup> _−_ _h_ f ( x ), and A <sup>_k_</sup> = _∇_ xr ( x <sup>_k_</sup> ) is the Jacobian of the residual. We use the integrators implemented in Drake [24] which use the stopping criterion outlined in [25, _§_ IV.8] to assess the convergence of Newton iterations. _A._ _Transition-Aware_ _Line_ _Search_ We observed the Newton iteration in Eq. (9) most often fails during slip-stick transitions when using large time steps given that A <sup>_k_</sup> in the sliding region, _∥_ _v_ _t,i∥_ _>_ _vs_, is not a good approximation of A <sup>_k_</sup> in the stiction region, _∥_ _v_ _t,i∥_ _< vs_ . This problem is illustrated in Fig. 2 for a 1D system, showing the Newton residual as a function of sliding velocity. Notice the sharp gradient in the region _∥_ _v_ _t,i∥_ _<_ _vs_ due to the regularization of friction. An iterate with positive velocity _v_ 0 will follow the slope to point _v_ 1 on the negative side. Given the transition into the stiction region is missed, next iteration then follows the slope to _v_ 2 once again on the positive side. Subsequent iterations continue to switch back and forth between positive and negative velocities without achieving convergence. We found this can be remediated by _limiting_ an iteration crossing the stiction region to fall inside of it. As soon as A <sup>_k_</sup> is updated with the more accurate, and larger, value within the stiction region, Newton iterations proceed without difficulties. Similar to other system-specific line search approaches [12], [26], for three dimensional problems TALS limits the iteration update in Eq. (9) according to x <sup>_n,k_</sup> <sup>+1</sup> = x <sup>_n,k_</sup> + _α_ ∆ x <sup>_k_</sup> where _α_ _∈_ [0 _,_ 1]. If we _freeze_ the configuration q in Eq. (4), this is equivalent to limiting the tangential velocity of each contact point according to _v_ _t,i_ <sup>_n,k_</sup> <sup>+1</sup> = _v_ _t,i_ <sup>_n,k_</sup> <sup>+</sup> <sup>_α_</sup> <sup>∆</sup> <sup>_v_</sup> _t,i_ <sup>_k_</sup> <sup>, with</sup> ∆ _v_ _t,i_ <sup>_k_</sup> <sup>the change predicted by Eq. (9), see Fig. 3. We monitor</sup> transition to stiction by detecting the moment at which the line connecting two iterations intersects the stiction region, _µ_ ˜ _i_ ( _s_ ) = _µi s,_ 0 _≤_ _s ≤_ 1 _,_ (7) _µi,_ 1 _< s,_ where _µ_ ˜( _s_ ) _≥_ 0 is the regularized friction coefficient with _µi_ the coefficient of friction and _vs_, with units of velocity, is the regularization parameter. We show in Section V-A that regularized friction with positive slopes, i.e. _µ_ ˜ <sup>_′_</sup> ( _s_ ) _≥_ 0 leads to considerably more stable integration schemes. As with velocities, we group contact forces _f_ _c,i_ into a single vector f _c_ ( q _,_ v ) _∈_ R <sup>3</sup> <sup>_nc_</sup> . We split the contact forces in their normal and tangential components as f _c_ = f _n_ + f _t_ and define the generalized forces due to contact as _τ_ _n_ ( q _,_ v ) = J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_n_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> and _τ_ _t_ ( q _,_ v ) = J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>).</sup> <sup>We</sup> <sup>note</sup> <sup>that,</sup> <sup>since</sup> <sup>f</sup> <sup>_t_</sup> <sup>=</sup> <sup>P</sup> <sup>_⊥_</sup> _n_ <sup>f</sup> <sup>_t_</sup> we can write _τ_ _t_ ( q _,_ v ) = J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> - _,_ = J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>)</sup> - P <sup>_⊥_</sup> _n_ <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> - _T_ f _t_ ( q _,_ v ) _,_ = - P <sup>_⊥_</sup> _n_ <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>J</sup> <sup>_c_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> = J <sup>_T_</sup> _t_ <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_._</sup> (8) III. IMPLICIT INTEGRATION WITH TALS We introduce our Transition-Aware Line Search (TALS) method to improve the convergence and robustness of implicit integration methods when using large time steps. We first make a brief overview of the implicit Euler method, though _t,i_ <sup>_n,k_</sup> <sup>+1</sup> = _v_ _t,i_ <sup>_n,k_</sup> _t,i_ <sup>_n,k_</sup> <sup>+</sup> <sup>_α_</sup> <sup>∆</sup> <sup>_v_</sup> _t,i_ <sup>_k_</sup> Fig. 3: TALS limits the update of tangential velocities for the next Newton iteration when it detects transitions through the stiction region (left). We found that limiting updates to a maximum angle _θ_ Max improves robustness (right). inspired from the idea used in [27] to compute incremental impulses for impact problems. TALS proceeds as follows: given a pair of iterates x <sup>_n,k_</sup> and x <sup>_n,k_</sup> <sup>+1</sup> from Eq. (9), we update tangential velocities according to Eq. (4). At the _i_ th contact point, if the line connecting _v_ _t,i_ <sup>_n,k_</sup> and _v_ _t,i_ <sup>_n,k_</sup> <sup>+1</sup> crosses the stiction region, we compute _αi_ so that _v_ _t,i_ <sup>_n,k_</sup> <sup>+1</sup> _·_ ∆ _v_ _t,i_ <sup>_k_</sup> <sup>= 0.</sup> <sup>Even</sup> <sup>if</sup> <sup>transition</sup> <sup>is</sup> <sup>not</sup> <sup>detected,</sup> 0.2 0.1 0 -0.1 -0.2 10 <sup>0</sup> 10 <sup>-10</sup> 10 <sup>-20</sup> 0 5 10 15 20 Newton-Raphson Iteration Count Fig. 4: Newton’s method misses stiction, oscillates, and does not converge (top). TALS detects the transition to stiction, limits the iteration update, and guides Newton’s method to convergence (bottom). _t,i_ <sup>_n,k_</sup> and _v_ _t,i_ <sup>_n,k_</sup> <sup>+1</sup> so that _v_ _t,i_ <sup>_n,k_</sup> <sup>+1</sup> _·_ ∆ _v_ _t,i_ <sup>_k_</sup> <sup>= 0.</sup> <sup>Even</sup> <sup>if</sup> <sup>transition</sup> <sup>is</sup> <sup>not</sup> <sup>detected,</sup> we also limit large angular changes between _v_ _t,i_ <sup>_n,k_</sup> <sup>and</sup> <sup>_v_</sup> _t,i_ <sup>_n,k_</sup> <sup>+1</sup> to a maximum value _θ_ Max, see Fig. 3. In practice we found the angular limit to increase robustness and use _θ_ Max = _π/_ 3. We finally compute the global TALS limiting parameter as _α_ = min( _{αi}_ ). _t,i_ <sup>_n,k_</sup> <sup>and</sup> <sup>_v_</sup> _t,i_ <sup>_n,k_</sup> <sup>+1</sup> that measures global error while avoiding undesirable drifts observed over large periods, especially when using first order methods. Therefore we _localize_ our global error metric by quantifying it within a time window ∆ _w_ . To be more precise, - _τ_ we introduce the _flow_ _map_ y = Φ _τ_ ( x 0) such that y = 0 <sup>f</sup> <sup>d</sup> <sup>_t_</sup> _B._ _Implementation_ _Details_ We incorporate TALS in the implicit integrators implemented in Drake [24]. Drake offers _error-controlled_ integration to a user-specified accuracy _a_, which translates roughly to the desired number of significant digits in the results. We can also control whether to use a full- or quasi-Newton method with Jacobian update strategies as outlined in [25, _§_ IV.8]. We make the distinction between _error-controlled_ and _convergence-controlled_ integration, which retries smaller time steps when Newton iterations fail to converge, as described in [25, _§_ IV.8]. All of our fixed-step integrators use convergence control. IV. INTEGRATION PERFORMANCE We evaluate TALS with fixed-step and error-controlled implicit Euler (IE) integrators. The precision obtained with fixed-step integrators is controlled via the time step size _h_ . In contrast, error-controlled integrators adjust the time step size to meet a user-specified accuracy _a_, with additional overhead for local error estimation. Our objective is to evaluate the trade-off between performance and precision for a variety of integration methods and understand if it is worth paying the additional cost of errorcontrolled integration. We accomplish this by creating socalled _work-precision_ plots that measure cost vs. precision in the solution. We use the number of evaluations of the system’s dynamics f ( _t,_ x ) as a metric of _work_, including the evaluations used to approximate the Jacobian of f ( _t,_ x ) through forward differencing. For _precision_ we want a metric - _τ_ we introduce the _flow_ _map_ y = Φ _τ_ ( x 0) such that y = 0 <sup>f</sup> <sup>d</sup> <sup>_t_</sup> with initial condition y (0) = x 0. We compute a solution x <sup>_m_</sup> with the method under test at discrete times _t_ <sup>_m_</sup> spaced by intervals of duration ∆ _w_ . We then compute a _localized_ reference solution defined by x <sup>_m_</sup> _r_ = Φ∆ _w_ ( x <sup>_m−_</sup> <sup>1</sup> ), where _A._ _Performance_ _Results_ _with_ _a_ _Small_ _System_ We choose a simple 2D box system that exhibits periodic stick-slip transitions. The box of mass _m_ = 0 _._ 33 kg lies on top of a horizontal surface with friction _µ_ = 1 _._ 0 and is forced to move sideways by an external harmonic force _f_ ( _t_ ) of amplitude 4 N and a frequency of 1 Hz. The system’s dynamics for this case reduces to _mv_ ˙ = _f_ ( _t_ ) _−_ _µ_ ˜( _v_ ) _W_ sgn( _v_ ), with _W_ the weight of the box in Earth’s gravity of _g_ = 9 _._ 8 m _/_ s <sup>2</sup> and _µ_ ˜( _v_ ) as defined in Eq. (7) with _vs_ = 10 <sup>_−_</sup> <sup>4</sup> m _/_ s. Using a fixed time step _h_ = 10 ms, much larger than the time scale introduced by regularized friction, we observe Newton iterations not to converge as described in Section III-A. Figure 4 shows the Newton residual history the first time, at _t_ = 0 _._ 160 s, the box transitions from sliding into stiction. TALS is able to detect transition, properly limit the iteration update and even recover the second order convergence rate of Newton’s method. Figure 5 shows a work-precision plot with an error estimate _ev_ in the horizontal velocity _v_ defined as the _L_ <sup>2</sup> -norm of the difference between the solution _{v_ <sup>_m_</sup> _}_ and the reference solution _{vr_ <sup>_m}_</sup> <sup>. We use a localized global error estimate computed</sup> reference solution defined by x <sup>_m_</sup> _r_ = Φ∆ _w_ ( x <sup>_m−_</sup> <sup>1</sup> ), where notice we use the test solution x <sup>_m−_</sup> <sup>1</sup> as the initial condition of the reference solution x <sup>_m_</sup> _r_ <sup>for</sup> <sup>the</sup> <sup>next</sup> <sup>time</sup> <sup>window</sup> <sup>∆</sup> <sup>_w_</sup> <sup>.</sup> In practice we integrate x <sup>_m_</sup> _r_ <sup>numerically</sup> <sup>with</sup> <sup>a</sup> <sup>much</sup> <sup>higher</sup> precision than the errors in the solution we want to measure. Finally, we make an error estimate by comparing x with the reference x _r_, see below. 10 <sup>7</sup> 10 <sup>6</sup> 10 <sup>5</sup> 10 <sup>4</sup> 10 <sup>3</sup> FN FN+TALS EC+FN ~~EC+FN+TALS~~ QN QN+TALS EC+QN EC+QN+TALS 10 <sup>-1</sup> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> Slip Velocity Error ( _ev / vs_ ) [-] Fig. 5: We evaluate implicit Euler integration performance with full- (FN) and quasi- (QN) Newton updates, each with and without error control (EC), and with and without TALS. with ∆ _w_ = 25 ms and a reference solution computed by a 3 <sup>rd</sup> order Runge-Kutta with fixed step of _h_ = 10 <sup>_−_</sup> <sup>7</sup> s. Each point in this figure corresponds to a different accuracy _a_ when using error control, or a different time step _h_ when using fixed steps. The same error metric in the horizontal axis allows for a fair comparison. We observe the expected theoretical first order slope for errors near _vs_ or smaller. However, for errors larger than _vs_, integrators without TALS depart from the theoretical result as their performance degrades. Figure 5 shows that TALS improves performance by extending the range in which the first order behavior is valid, up to a factor of 10 (FN) or 3 (QN). _B._ _Performance_ _with_ _Larger_ _Systems_ When we applied TALS with implicit Euler to systems with more degrees of freedom, we found TALS to be highly sensitive to changes in the configuration q of the system. Specifically, we observed iterations during which tangential velocities fall outside the region _∥_ _v_ _t∥_ _<_ _vs_ even after TALS detects a transition and limits the Newton update. We traced this problem to changes in the tangential velocities Jacobian J _t_ ( q ) in Eq. (4) caused by small changes to the configuration q . These iterations during transition steps often result in the same convergence failure as experienced by integrators without TALS (Figure 4), leading to a performance deterioration. V. TRANSITION-AWARE SEMI-IMPLICIT METHOD We draw from the lessons learned in the previous section to design a scheme customized for the solution of multibody dynamics with compliant contact and regularized Coulomb friction. Based on the observation that TALS is sensitive to changes in the system configuration q, we decided to _freeze_ the configurations in Eq. 2 so that we could iterate on the generalized velocities without changes in the configuration affecting the stability of TALS. An important computational advantage of this approach is that the typically demanding geometric queries only need to be performed once at the beginning of the time step. This is the same idea behind the semi-implicit Euler scheme. This scheme, however, becomes unstable for stiff contact forces in the normal direction since the position dependent terms are treated explicitly as in the conditionally stable explicit Euler scheme. Our TAMSI scheme deals with this problem by introducing an implicit first order approximation of the penetration distances with generalized velocities. We introduce TAMSI in stages to analyze the properties of different contributions separately. We start with the traditional semi-implicit Euler and highlight the differences as we progressively introduce TAMSI. _A._ _Semi-Implicit_ _Euler:_ _One-Way_ _Coupled_ _TAMSI_ _Scheme_ The semi-implicit Euler scheme applied to Eqs. (1)-(2) effectively _freezes_ the normal contact forces to f _n,_ 0. In this regard the scheme is one-way coupled, meaning that normal forces couple in the computation of friction forces but not the other way around. Using a time step of length _h_, the semi-implicit Euler scheme applied to Eqs. (1)-(2) reads, q = q 0 + N 0 v _,_ (10) M 0 v = p <sup>_∗_</sup> + _h_ J <sup>_T_</sup> _c,_ 0 <sup>f</sup> <sup>_c_</sup> <sup>(</sup> <sup>q</sup> <sup>0</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> (11) where the naught subscript in q 0, v 0, M 0 = M ( q 0), J <sup>_T_</sup> _c,_ 0 <sup>=</sup> J <sup>_T_</sup> _c_ <sup>(</sup> <sup>q</sup> <sup>0),</sup> <sup>and</sup> <sup>N</sup> <sup>0</sup> <sup>=</sup> <sup>N</sup> <sup>(</sup> <sup>q</sup> <sup>0)</sup> <sup>denotes</sup> <sup>quantities</sup> <sup>evaluated</sup> <sup>at</sup> <sup>the</sup> previous time step. To simplify notation we use bare q and v to denote the state at the next time step. We defined p <sup>_∗_</sup> = M 0 v 0 + _h_ _τ_ ( q 0 _,_ v 0) as the momentum the system would have on the next time step if contact forces were zero. Since we are interested in low-speed applications to robotic manipulation, the gyroscopic terms in p <sup>_∗_</sup> are treated explicitly. It is known however that for highly dynamics simulations, more robust approaches should treat these terms implicitly [28]. A semi-implicit Euler scheme solves Eq. (11) for v at the next time step and uses it to advance the configuration vector q to the next time step with Eq. (10). However this approach often becomes unstable because the stiff compliant normal forces are explicit in the configuration q . To solve Eq. (11) we define the residual r ( v ) = M 0 v _−_ p <sup>_∗_</sup> _−_ _h_ _τ_ _n,_ 0 _−_ _h_ _τ_ _t_ ( q 0 _,_ v ) _,_ (12) and use its Jacobian in Newton iterations. The Jacobian is _∇_ vr ( v ) = M 0 _−_ _h∇_ v _τ_ _t_ ( q 0 _,_ v ) _._ (13) Substituting in Eq. (8), _∇_ v _τ_ _t_ ( q 0 _,_ v ) = J <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>vf</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>0</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> (14) = J <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>v</sup> _t_ <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>0</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>J</sup> <sup>_t,_</sup> <sup>0</sup> <sup>_,_</sup> (15) where we used Eq. (4) and _∇_ v _t_ f _t_ = diag( _{∇_ _v_ _t,i_ _f_ _t,i}_ ) _∈_ R <sup>3</sup> <sup>_nc×_</sup> <sup>3</sup> <sup>_nc_</sup>, with each block computed as the gradient with respect to _v_ _t,i_ in Eq. (6): _vs_ _∇_ _v_ _t,i_ _f_ _t,i_ = _−πi,_ 0 - _<u>µ</u>_ <u>˜(</u> _<u>si</u>_ <u>)</u> _n_ _∥_ _v_ _t,i∥_ <sup>P</sup> <sup>_⊥_</sup> _n_ <sup>(</sup> <sup>q</sup> <sup>) +</sup> <sup>_<u>µ</u>_</sup> <sup><u>˜</u></sup> <sup>_′_</sup> <sup><u>(</u></sup> <sup>_<u>si</u>_</sup> <sup><u>)</u></sup> <sup>_⊥_</sup> P _n_ ( q ) _,_ (16) where _µ_ ˜ <sup>_′_</sup> ( _s_ ) = d˜ _µ/_ d _s_ . We introduce the tangential direction Delassus operator as W _tt,_ 0 = _−_ J <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>v</sup> _t_ <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>q</sup> <sup>0</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>J</sup> <sup>_t,_</sup> <sup>0</sup> <sup>and</sup> write the Jacobian of the residual as _∇_ vr ( v ) = M 0 + _h_ W _tt,_ 0 _._ (17) We note that when _µ_ ˜ <sup>_′_</sup> ( _s_ ) _≥_ 0, _−∇_ _v_ _t,i_ _f_ _t,i_ is a linear combination of positive semi-definite matrices and thus W _tt,_ 0 _⪰_ 0. Therefore _∇_ vr ( v ) _≻_ 0, and its inverse always exists. _B._ _Implicit_ _Approximation_ _to_ _Normal_ _Forces_ We present an approximation to treat normal forces implicitly while still keeping the configurations _frozen_ . For simplicity, we consider frictionless contact first r ( v ) = M 0 v _−_ p <sup>_∗_</sup> _−_ _h_ J <sup>_T_</sup> _c,_ 0 <sup>f</sup> <sup>_n_</sup> <sup>(</sup> <sup>q</sup> <sup>_,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> (18) where notice we decided to _freeze_ the contact Jacobian but not the compliant contact forces. To treat the normal contact forces implicitly while still freezing the configuration at q 0, we propose the following first-order estimation of the penetration distance _δi_ at the _i_ th contact point, _δi_ _≈_ _δi,_ 0 _−_ _h vn,i,_ (19) where we used the fact that _δ_ <sup>˙</sup> _i_ = _−vn,i_ . We can then substitute Eq. (19) into Eq. (5) to express the compliant forces, _πi_ ( _vn,i_ ), as function of the normal velocities and group them into a vector, _π_ ( v _n_ ) _∈_ R <sup>_nc_</sup> . We then express the normal forces as f _n_ ( v _n_ ) = N <sup>ˆ</sup> 0 _π_ ( v _n_ ). This can then be used in Eq. (18) to compute the Jacobian of the residual, _∇_ vr ( v ) = M 0 _−_ _h_ J <sup>_T_</sup> _c,_ 0 <sup>_∇_</sup> <sup>vf</sup> <sup>_n_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>_,_</sup> = M 0 _−_ _h_ J <sup>_T_</sup> _c,_ 0 <sup>_∇_</sup> <sup>v</sup> _n_ <sup>f</sup> <sup>_n_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>J</sup> <sup>_n,_</sup> <sup>0</sup> <sup>_,_</sup> = M 0 _−_ _h_ J <sup>_T_</sup> _c,_ 0 <sup>N</sup> <sup>ˆ</sup> <sup>0</sup> <sup>_∇_</sup> <sup>v</sup> _n_ <sup>_π_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>J</sup> <sup>_n,_</sup> <sup>0</sup> <sup>_,_</sup> = M 0 + _h_ W _nn,_ 0 _,_ (20) where we introduced the normal direction Delassus operator W _nn,_ 0 = _−_ J <sup>_T_</sup> _n,_ 0 <sup>_∇_</sup> <sup>v</sup> _n_ <sup>_π_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>J</sup> <sup>_n,_</sup> <sup>0</sup> <sup>and</sup> <sup>_∇_</sup> <sup>v</sup> _n_ <sup>_π_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>=</sup> diag( _{_ d _πi/_ d _vn,i}_ ). Eq. (5) implies d _πi/_ d _vn,i_ _≤_ 0, and thus W _nn,_ 0 _⪰_ 0. Therefore in Eq. (20) _∇_ vr ( v ) _≻_ 0, and its inverse always exists, explaining the high stability of this scheme for contact problems without friction. _C._ _TAMSI:_ _Two-Way_ _Coupled_ _Scheme_ TAMSI is a semi-implicit Euler scheme in the friction forces as introduced in Section V-A modified to implicitly couple the compliant contact forces using the approximation in Eq. (19). It is a _two-way_ _coupled_ scheme in that, in addition to normal forces feeding into the computation of the friction forces through Eq. (6), friction forces feedback implicitly into the normal forces. Freezing the position kinematics to q 0 and using the approximation in Eq. (19), the full TAMSI residual becomes forces in Eq. (6) change due to changes in the normal forces. Instead of the result in Eq. (15), we now have _∇_ v _τ_ _t_ = J <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>vf</sup> <sup>_t,_</sup> <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>v</sup> _t_ <sup>f</sup> <sup>_t_</sup> <sup>J</sup> <sup>_t,_</sup> <sup>0</sup> <sup>+</sup> <sup>J</sup> _t,_ <sup>_T_</sup> = J <sup>_T_</sup> _t,_ _t,_ <sup>_T_</sup> 0 <sup>_∇_</sup> <sup>v</sup> _n_ <sup>f</sup> <sup>_t_</sup> <sup>J</sup> <sup>_n,_</sup> <sup>0</sup> <sup>_,_</sup> r ( v ) = M 0 v _−_ p <sup>_∗_</sup> _−_ _h_ J <sup>_T_</sup> _n,_ <sup>_T_</sup> _t,_ 0 <sup>f</sup> <sup>_t_</sup> <sup>(</sup> <sup>v</sup> <sup>_t_</sup> <sup>)</sup> <sup>_._</sup> (21) <sup>_T_</sup> _n,_ 0 <sup>_π_</sup> <sup>(</sup> <sup>v</sup> <sup>_n_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_h_</sup> <sup>J</sup> <sup>_T_</sup> _t,_ = _−_ W _tt −_ W _tn,_ (22) where _∇_ v _n_ f _t_ = _−_ diag( _{µ_ ˜ _i_ _v_ ˆ _t,i_ d _πi/_ d _vn,i}_ ) _∈_ R <sup>3</sup> <sup>_nc×nc_</sup> . We define the generally non-symmetric operator W _tn_ = _−_ J <sup>_T_</sup> _t,_ 0 <sup>_∇_</sup> <sup>v</sup> _n_ <sup>f</sup> <sup>_t_</sup> <sup>J</sup> <sup>_n,_</sup> <sup>0</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_nv×nv_</sup> <sup>which</sup> <sup>introduces</sup> <sup>the</sup> <sup>additional</sup> two-way coupling between compliance in the normal direction and friction in the tangential direction. Using these results we can write the Jacobian of the TAMSI scheme as _∇_ vr ( v ) = M 0 + _h_ ( W _nn,_ 0 + W _tt,_ 0 + W _tn,_ 0) _._ (23) Notice that, due to W _tn,_ 0, the Jacobian is not symmetric and in general not invertible; however, since M 0 _≻_ 0, the Jacobian is invertible for sufficiently small _h_ . After computing the next Newton iteration using this Jacobian, we use TALS to selectively backtrack the iteration. _D._ _Implementation_ _Details_ We implemented a single-threaded TAMSI in the opensource robotics toolbox Drake [24]. At this moment, our initial implementation did not focus on performance but rather on proving the stability and robustness of the method. Therefore our initial implementation forms the Newton-Raphson Jacobian in Eq. (23) explicitly. Forming M 0 is an _O_ ( _n_ <sup>2</sup> _v_ <sup>) operation,</sup> while computing the Delassus operators in Eq. (23) via explicitly multiplying the Jacobians is _O_ ( _n_ <sup>2</sup> _v_ <sup>_· nc_</sup> <sup>).</sup> <sup>The</sup> <sup>factorization</sup> of _∇_ vr is an _O_ ( _n_ <sup>3</sup> _v_ <sup>) operation and we expect it to dominate for</sup> large scenarios. However, even in our largest simulations with hundreds of DOFs and hundreds of contacts [29], forming this Jacobian is still the most expensive operation, followed by its factorization. Performance can be greatly improved by using matrix-free operators instead of explicitly forming the contact Jacobians, allowing the assembly of _∇_ vr in _O_ ( _n_ <sup>2</sup> _v_ <sup>).</sup> Further improvements include exploiting the sparsity pattern of _∇_ vr during both assembly and factorization as well as parallelization for large scenes with hundreds of objects. VI. RESULTS AND DISCUSSION We present a series of simulation test cases to assess robustness, accuracy and performance. For all cases we use a regularized friction parameter of _vs_ = 10 <sup>_−_</sup> <sup>4</sup> m _/_ s, which results in negligible sliding during stiction. _A._ _Parallel_ _Jaw_ _Gripper_ To assess the robustness of our method in a relevant manipulation task with large external disturbances, we simulate a parallel jaw gripper holding a mug and forced to oscillate vertically with a period of _T_ = 0 _._ 5 s and an amplitude of _A_ = 15 cm, see Fig. 6. To stress the solver in a situation with slip-stick transitions, we chose a low coefficient of friction of _µ_ = 0 _._ 1 and a grip force of 10 N. The mug is 10 cm tall with a radius of 4 cm and a mass of 100 g. There is no gravity. We can then use the results from the previous sections, except we also need to take into account how the friction Rotational Velocity Error Translational Velocity Error ~~Reference First-Order Line~~ Fig. 6: Parallel jaw gripper model. We shake the mug vertically to assess robustness. 5 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 4 3 2 1 TAMSI IE+FN+TALS IE+FN 0 0 1 2 3 4 5 6 CPU Wall Clock Time [s] Fig. 7: Simulated time vs. wall-clock time for the parallel jaw gripper case. All three runs use _h_ = 3 ms. TAMSI is the fastest, on the far left. The horizontal plateaus in the IE+FN run indicate that without TALS, the integrator slows down since it takes smaller step sizes for convergence control. With a step _h_ = 3 ms TAMSI completes 5 seconds of simulation time with a single thread on an Intel i7-6900K 3.2 GHz CPU in 123 ms of wall-clock time, or 40 _×_ real-time rate. In contrast, IE+FN with TALS is 25 _×_ slower than TAMSI and IE+FN without TALS is 55 _×_ slower than TAMSI. Simulated time vs wall-clock time for each is shown in Fig. 7. Next, we perform a convergence study of TAMSI running with different time steps and estimate errors against a reference solution using _h_ = 10 <sup>_−_</sup> <sup>7</sup> s, Fig. 8. As expected, TAMSI exhibits firstorder convergence with step size. _B._ _Allegro_ _Hand_ We simulate a 16 DOF Allegro hand controlled in openloop to perform a periodic reorientation of a mug, see Fig. 9 and the supplemental video accompanying this manuscript. This interesting system includes multiple points of contact, complex geometry and a large number of DOFs. We observe that TALS does not improve the performance of implicit Euler - as the system configuration q changes, the tangent space reorients, and TALS is unable to properly control iterations with transitions into stiction. TAMSI however, with a time step _h_ = 0 _._ 7 ms, runs 7 _._ 8 _×_ faster than our fastest integrator setup, the error-controlled implicit Euler using quasiNewton when solving to a (loose) accuracy of _a_ = 0 _._ 01 m _/_ s. Our single-threaded TAMSI completes 15 seconds simulated time on an Intel i7-6900K 3.2 GHz CPU in 7.0 s of wall-clock time, or 2 _._ 14 _×_ real-time rate. 10 <sup>-6</sup> 10 <sup>-4</sup> 10 <sup>-2</sup> Normalized Step Size ( _h/T_ ) [-] Fig. 8: _L_ <sup>2</sup> -norm of the generalized velocity errors against time step, nondimensionalized with the problem’s period _T_ and amplitude _A_ . Both translational and rotational DOFs exhibit first-order convergence as expected. Fig. 9: Model of a 16 DOF Allegro hand holding a mug. As the hand reorients the mug, multiple simultaneous points of contact securing the grasp are made. _C._ _Sim-to-Real_ _Experiments_ We demonstrate our simulation capability in two manipulation tasks with closed-loop control involving force-feedback and manipuland-world contact. A Kuka IIWA arm (7 DOF) is outfitted with a Schunk WSG 50 gripper. We use an inverse dynamics controller with gains in the simulation set to best match reality, even though the specifics of Kuka’s proprietary joint-level controller are unavailable. The controller process tracks a prescribed sequence of Cartesian end-effector keyframe poses and computes desired joint-space trajectories using Jacobian IK. We use force feedback to regulate the grasp force and judge for placement success. The gripper surfaces are slightly compliant. We identify the stiffness parameters of the point contact model by matching the level of compliance observed in the real hardware. In the first task the robot is commanded to grab a water bottle, perform a vigorous shaking motion, and place the bottle at a new location, demonstrating the robustness of the method to strong disturbances; see the supplemental video. In the second task a Kuka arm in a kitchen scenario grabs a mug and uses external contact with the sink to help reorient the mug, relying on slip within the fingers of the gripper; see Fig. 1 and the accompanying supplemental video. TAMSI robustly handles multiple points of contact, changes in the contact configuration, and stick-slip transitions. TAMSI enabled us to prototype this task entirely in simulation with controllers that transitioned seamlessly to reality. VII. CONCLUSIONS In this work we systematically analyzed implicit integration for multibody problems with compliant contact and regularized friction. Error-controlled implicit Euler with quasiNewton iterations performs best, though it spends a significant amount of time resolving the high-frequency transition dynamics introduced by regularized friction. Our new TALS method helps to address this problem, though its performance degrades as the configuration of the system changes and contact surfaces reorient. This observation led us to develop our novel TAMSI method. TAMSI approximates penetration distances to firstorder to couple contact forces implicitly while performing only a single geometric query at the beginning of a time step, resulting in improved performance. We demonstrate the added robustness and performance of TAMSI with simulations of relevant manipulation tasks. Sim-to-real comparisons show the usage of TAMSI to prototype controllers in simulation that transfer effectively to reality. Additional examples can be found in the “examples” source directory of the open-source robotics toolbox Drake [24] and in the “Drake Gallery” section of the documentation. Ongoing work conducted at the Toyota Research Institute is leveraging the proposed method for prototyping and validating controllers for robot manipulation in dense cluttered environments [29] and extending TAMSI to work with more sophisticated contact models [21]. ACKNOWLEDGMENT We thank the reviewers for their feedback, Allison Henry and Siyuan Feng for technical support, and Evan Drumwright and Russ Tedrake for helpful discussions. The work of Ante Qu was supported in part by the National Science Foundation under grant DGE-1656518. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation. REFERENCES [1] K. Bousmalis, A. Irpan, P. Wohlhart, Y. Bai, M. Kelcey, M. Kalakrish nan, L. Downs, J. Ibarz, P. Pastor, K. Konolige, _et al._, “Using simulation and domain adaptation to improve efficiency of deep robotic grasping,” in _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_, 2018, pp. 4243–4250. [2] Y. Chebotar, A. Handa, V. Makoviychuk, M. Macklin, J. Issac, N. Ratliff, and D. Fox, “Closing the sim-to-real loop: Adapting simulation randomization with real world experience,” in _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_, 2019, pp. 8973–8979. [3] S. Kolev and E. Todorov, “Physically consistent state estimation and system identification for contacts,” in _IEEE-RAS_ _15th_ _International_ _Conference_ _on_ _Humanoid_ _Robots_ _(Humanoids)_, 2015, pp. 1036–1043. [4] D. J. Duff, T. M¨orwald, R. Stolkin, and J. Wyatt, “Physical simulation for monocular 3d model based tracking,” in _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_, 2011, pp. 5218–5225. [5] S. Li, S. Lyu, J. Trinkle, and W. Burgard, “A comparative study of contact models for contact-aware state estimation,” in _IEEE/RSJ_ _International_ _Conference_ _on_ _Intelligent_ _Robots_ _and_ _Systems_, 2015, pp. 5059–5064. [6] S. Hogan and K. U. Kristiansen, “On the regularization of impact without collision: the painlev´e paradox and compliance,” _Proceedings of_ _the_ _Royal_ _Society_ _A:_ _Mathematical,_ _Physical_ _and_ _Engineering_ _Sciences_, vol. 473, no. 2202, p. 20160773, 2017. [7] D. E. Stewart and J. C. Trinkle, “An implicit time-stepping scheme for rigid body dynamics with inelastic collisions and coulomb friction,” _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Engineering_, vol. 39, no. 15, pp. 2673–2691, 1996. [8] M. Anitescu and F. A. Potra, “Formulating dynamic multi-rigid-body contact problems with friction as solvable linear complementarity problems,” _Nonlinear_ _Dynamics_, vol. 14, no. 3, pp. 231–247, 1997. [9] R. Cottle, J. Pang, and R. Stone, _The_ _Linear_ _Complementarity_ _Problem_, ser. Computer science and scientific computing. Academic Press, 1992. [10] D. M. Kaufman, S. Sueda, D. L. James, and D. K. Pai, “Staggered pro jections for frictional contact in multibody systems,” _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_, vol. 27, no. 5, p. 164, 2008. [11] J. Li, G. Daviet, R. Narain, F. Bertails-Descoubes, M. Overby, G. E. Brown, and L. Boissieux, “An implicit frictional contact solver for adaptive cloth simulation,” _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_, vol. 37, no. 4, p. 52, 2018. [12] E. Todorov, “Implicit nonlinear complementarity: A new approach to contact dynamics,” in _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_, 2010, pp. 2322–2329. [13] M. Macklin, K. Erleben, M. M¨uller, N. Chentanez, S. Jeschke, and V. Makoviychuk, “Non-smooth newton methods for deformable multibody dynamics,” _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_, vol. 38, no. 5, p. 140, 2019. [14] C. Lacoursiere and M. Linde, “Spook: a variational time-stepping scheme for rigid multibody systems subject to dry frictional contacts,” Ume˚a University, UMINF report 11.09, 2011. [15] E. Catto, “Soft constraints: Reinventing the spring,” in _Game_ _Developer_ _Conference_, 2011. [16] E. Coumans, “Bullet physics library,” 2015. [Online]. Available: [http://bulletphysics.org](http://bulletphysics.org) [17] R. Smith, “Open dynamics engine.” [Online]. Available: [http:](http://www.ode.org) [//www.ode.org](http://www.ode.org) [18] L. Luo and M. Nahon, “A compliant contact model including interfer ence geometry for polyhedral objects,” _Journal_ _of_ _Computational_ _and_ _Nonlinear_ _Dynamics_, vol. 1, no. 2, pp. 150–159, 2006. [19] Y. Gonthier, “Contact dynamics modelling for robotic task simulation,” Ph.D. dissertation, University of Waterloo, 2007. [20] M. A. Sherman, A. Seth, and S. L. Delp, “Simbody: multibody dynamics for biomedical research,” _Procedia_ _Iutam_, vol. 2, pp. 241–261, 2011. [21] R. Elandt, E. Drumwright, M. Sherman, and A. Ruina, “A pressure field model for fast, robust approximation of net contact force and moment between nominally rigid objects,” in _IEEE/RSJ International Conference_ _on_ _Intelligent_ _Robots_ _and_ _Systems_, 2019, pp. 8238–8245. [22] D. Baraff, “Coping with friction for non-penetrating rigid body simu lation,” _ACM_ _Computer_ _Graphics_ _(SIGGRAPH_ _91)_, vol. 25, no. 4, pp. 31–41, 1991. [23] K. H. Hunt and F. R. E. Crossley, “Coefficient of restitution interpreted as damping in vibroimpact,” _Journal_ _of_ _Applied_ _Mechanics_, vol. 42, no. 2, pp. 440–445, 1975. [24] R. Tedrake and the Drake Development Team, “Drake: Model-based design and verification for robotics,” 2019. [Online]. Available: [https://drake.mit.edu](https://drake.mit.edu) [25] E. Hairer, S. Nørsett, and G. Wanner, _Solving_ _Ordinary_ _Differen-_ _tial_ _Equations_ _II._ _Stiff_ _and_ _Differential-Algebraic_ _Problems_, 2nd ed. Springer, 01 1996, vol. 14. [26] Y. Zhu, R. Bridson, and D. M. Kaufman, “Blended cured quasi-newton for distortion optimization,” _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_, vol. 37, no. 4, p. 40, 2018. [27] T. K. Uchida, M. A. Sherman, and S. L. Delp, “Making a meaningful impact: modelling simultaneous frictional collisions in spatial multibody systems,” _Proceedings_ _of_ _the_ _Royal_ _Society_ _A:_ _Mathematical,_ _Physical_ _and_ _Engineering_ _Sciences_, vol. 471, no. 2177, p. 20140859, 2015. [28] C. Lacoursi`ere, “Stabilizing gyroscopic forces in rigid multibody simu lations,” Ume˚a University, UMINF report 06.05, 2006. [29] R. Tedrake, “TRI taking on the hard problems in manipulation research toward making human-assist robots reliable and robust,” June 2019. [Online]. Available: [https://www.tri.global/news/](https://www.tri.global/news/tri-taking-on-the-hard-problems-in-manipulation-re-2019-6-27) [tri-taking-on-the-hard-problems-in-manipulation-re-2019-6-27](https://www.tri.global/news/tri-taking-on-the-hard-problems-in-manipulation-re-2019-6-27)

섹션 본문 77문단 · 33,247자

(제목 없음)

1Multibody simulation with frictional contact has been a challenging subject of research for the past thirty years.Rigid-body assumptions are commonly used to approximate the physics of contact, and together with Coulomb friction, lead to challenging-to-solve nonlinear complementarity problems (NCP).On the other hand, robot grippers often introduce significant compliance.Compliant contact, combined with regularized friction, can be modeled entirely with ODEs, avoiding NCP solves.Unfortunately, regularized friction introduces highfrequency stiff dynamics and even implicit methods struggle with these systems, especially during slip-stick transitions.To improve the performance of implicit integration for these systems we introduce a Transition-Aware Line Search (TALS), which greatly improves the convergence of the Newton-Raphson iterations performed by implicit integrators.We find that TALS works best with semi-implicit integration, but that the explicit treatment of normal compliance can be problematic.To address this, we develop a Transition-Aware Modified Semi-Implicit (TAMSI) integrator that has similar computational cost to semiimplicit methods but implicitly couples compliant contact forces, leading to a more robust method.We evaluate the robustness, accuracy and performance of TAMSI and demonstrate our approach alongside a sim-to-real manipulation task.

I. INTRODUCTION

2Recently robotics has experienced a dramatic boom due to the introduction of new sensor technologies, actuation, and innovative software algorithms that allow robots to reason about the world around them.These new technologies are allowing the next generation of robots to start moving from their highly structured environments in factories and research labs to less structured, richer environments such as those found in the home.There are still, however, a large variety of research problems to be solved.In particular, manipulation is one area of robotics that raises significant challenges including high-speed sensing, planning, and control.

3Simulation has proven indispensable in this new era of robotics, aiding at multiple stages during the mechanical and Fig. 1: Our method enables robust and efficient simulations of grasping tasks.control design, testing, and training of robotic systems.For instance, [1] demonstrates the use of simulated data to train a robotic system to grasp new objects, while [2] studies how to transfer policies trained in simulation to the real world.

4Near real-time forward simulation has found applications in contact-aware state estimation wherein predicted contacts and physical consistency [3] are used to estimate the state of a robot, manipulands, or both [4], [5].

5We would like to synthesize, train, and validate controllers in simulation with the expectation that they will work well in reality.Hence simulation should present a controller with a range of physical models and disturbances, but must avoid significant non-physical simulation artifacts that have no real-world counterparts.A central challenge in simulation for manipulation is the physical modeling and numerical solution of multibody dynamics with contact and friction.Such simulations often involve high mass ratios, stiff dynamics, complex geometries, and friction.Artifacts that are unimportant for other applications are highly amplified in the simulation of a manipulation task; simulations either become unstable or predict highly unstable grasps even if stable in the real system.These characteristics impose strict requirements on robustness, accuracy, and performance to the simulation engine when compared to other robotic scenarios with contact, such as walking.

6When two solids come into contact, they must undergo deformation to avoid the physical impossibility of interpenetration.Deformations induce a state of stresses that when integrated over the contact surface, explain the macroscopic contact forces we observe.The amount of an object's deformation under loading depends on its geometry and material stiffness.A popular approximation to the true compliant physics of contact is the mathematical limit in which bodies are rigid; however, it can lead to indeterminate systems with multiple solutions, or no solution [6].Still, the rigid-body approximation is at the core of many simulation engines, enabling them to run at interactive rates.

7Generally, rigid-body assumptions and Coulomb friction lead to a complex formulation in terms of a nonlinear complementarity problem (NCP), which can be simplified to a linear complementarity problem (LCP) using a polygonization of the friction cone [7], [8].LCPs are often solved using direct pivoting methods such as Lemke's algorithm.Even though there are theoretical results for the solution of LCPs [9], the class of systems for which they apply are seldom found in practice, and robust LCP implementations are either slow or proprietary.The authors of [10] iteratively solve a quadratic program (QP) for the friction impulses and a second QP for the normal impulses.Although the results are promising, the coupled problem is non-convex and the solution is not guaranteed to exist.

8Another drawback of LCP formulations is that the linearization of the friction cone might lead to preferential directions and cause bias in the solution [11]-an example of a potentially-significant non-physical simulation artifact.The computational gain from approximating the friction cone is not clear given that the LCP introduces many auxiliary variables and constraints, and thus [12] propose to solve the original NCP with a non-smooth Newton method.

9Methods using rigid-body assumptions with Coulomb friction face the challenging task of solving oftentimes indeterminate, non-convex, and highly nonlinear systems of equations.Therefore it is common practice to relax the contact constraints by introducing regularization [13] or softening [14], [15], [16].This approach allows objects to interpenetrate by essentially adding numerical compliance.

10Given that the true physics of contact involves compliance and many of the approaches using rigid-body assumptions introduce numerical compliance to make the problem tractable, in this work we instead favor modeling compliant contact directly.Models in the literature include those for point contact based on Hertz theory [17], volumetric models [18] and more sophisticated approaches modeling the contact patch [19], [20].

11By incorporating compliant contact forces with regularized friction, we can write the system dynamics as a system of continuous ordinary differential equations (ODEs).Regularization of Coulomb friction replaces the strict friction-cone constraint with a smooth function of the slip velocity and introduces a regularization parameter, or stiction velocity, v s such that true stiction is not possible-objects still slide with a velocity smaller than v s .To simulate manipulation tasks, this sliding must be made negligible by choosing small values of the regularization parameter, typically v s ≤ 10 −4 m/s.The resultant ODE system is stiff and stable integration requires either very small time steps or implicit integration.

12Robotic grippers and hands often have soft surfaces to increase the efficiency of the grasping system.Therefore the numerical stiffness of the model is not dominated by elastic forces but by the regularization of friction.Consider a typical grasping scenario with a parallel gripper such as the one shown in Fig. 6 and a model with a regularization parameter of v s ≈ 10 −4 m/s.In static equilibrium, the forces due to friction balance the pull of gravity which would otherwise accelerate the object downwards at g ≈ 9.8 m/s 2 .Therefore the characteristic time scale introduced by regularized friction is about τ ≈ v s /g ≈ 10 −5 s.We observed in our simulations that error-controlled integrators must take steps as small as 0.1 µs to resolve these highly stiff dynamics.As a result, integrators spend most of the computational effort on resolving these unimportant, artificially introduced dynamics even when common grasping tasks involve much larger time scales on the order of tenths of a second.With implicit integration, stability theory says we should be able to take large time steps once in stiction, even with a very small v s .That has proven difficult in practice, however.In this work, we analyze the cause and present methods that enable the realization of this theoretical promise in practice.

13We organize our work as follows.Section II introduces the mathematical framework and notation.Section III introduces our novel Transition-Aware Line Search (TALS) in the context of implicit integration.We systematically assess the performance of a variety of integrators using work-precision plots on a series of proposed canonical test problems in Section IV and measure the improvement in robustness and performance introduced by TALS.We show TALS performs best when freezing the configuration of the system and propose an original Transition-Aware Modified Semi Implicit (TAMSI) method in Section V.In section VI we show that TAMSI handles transitions robustly and outperforms our best implicit integrators for the simulation of relevant manipulation tasks.In VI-C we demonstrate our method in a sim-to-real comparison using a Kuka arm manipulation station.Final remarks and possible research directions are presented in Section VII.

II. MULTIBODY DYNAMICS WITH CONTACT

14We start by stating the equations of motion and introducing our notation,

15where q ∈ R nq and v ∈ R nv are the vectors of generalized positions and velocities respectively, M(q) ∈ R nv×nv is the system's mass matrix, τ (q, v) is a vector of generalized forces containing Coriolis and gyroscopic terms, gravity, externally applied forces, and actuation, and J c and f c are contact Jacobians and forces, defined in Section II-A.We explicitly emphasize the functional dependence of f c (q, v) on the state vector x = (q, v) given that we use a compliant contact model with regularized friction.Finally, N(q) ∈ R nq×nv in Eq. ( 2) is a block diagonal matrix describing the kinematic mapping between generalized velocities v and time derivative of generalized positions q.Together, Eqs. ( 1) and (2) describe the system's dynamics as

A. Kinematics of Contact

16In point contact, contact between sufficiently smooth nonconforming surfaces can be simply characterized by a pair of witness points A w and B w on bodies A and B, respectively such that A w is a point on the surface of A that lies the farthest from the surface of B and vice versa.At the ith contact we define the contact point C i to be midway between the witness points.For a given configuration q of the system each contact point is characterized by a penetration distance δ i (q) and a contact normal ni (q) defined to point from body B into body A. We denote with v c,i the velocity of witness point A w relative to B w , which can be uniquely split into normal velocity v n,i = P n,i v c,i and tangential velocity v t,i = P ⊥ n,i v c,i where P n,i = ni ⊗ ni and P ⊥ n,i = I −P n,i are symmetric positive semi-definite (SPSD) projection matrices in R 3×3 .

17For a state with n c contact points we group the velocities v c,i of all contact points in a vector v c ∈ R 3nc .In Eq. ( 2) the contact Jacobian J c (q) ∈ R 3nc×nv maps generalized velocities to contact point velocities as v c = J c v. We group the scalar separation velocities

18For the tangential velocities we write

19with J t (q) = P ⊥ n (q)J c (q) ∈ R 3nc×nv the Jacobian of tangential velocities and P ⊥ n (q) = diag({P ⊥ n,i }) a block diagonal matrix in R 3nc×3nc .The reader should notice the difference in sizes for v n ∈ R nc grouping the scalar separation velocities, and for v t ∈ R 3nc grouping 3D tangential velocities.This choice simplifies the exposition that follows.

B. Compliant Contact with Regularized Friction

20The normal component of the contact force is modeled following the functional form proposed in [21], which is continuous in both penetration distance δ i and rate δi as

21where (•) + = max(•, 0) and k i and d i are stiffness and damping parameters.Thus, the normal component of the contact force on body A applied at point

22These parameters can be treated as either physical parameters computed for instance according to the theory of Hertz contact as in [19] or as numerical penalty parameters as in [14], [22].Since the penetration distance δ i is defined positive for overlapping geometries, its time derivative relates to the separation velocity v n,i by δi = −v n,i .We approximate the Coulomb friction force on body A at C i with a linear functional form of the tangential velocity v t,i , though smoother functions can be used

23where μ(s) ≥ 0 is the regularized friction coefficient with µ i the coefficient of friction and v s , with units of velocity, is the regularization parameter.We show in Section V-A that regularized friction with positive slopes, i.e. μ (s) ≥ 0 leads to considerably more stable integration schemes.

24As with velocities, we group contact forces f c,i into a single vector f c (q, v) ∈ R 3nc .We split the contact forces in their normal and tangential components as f c = f n + f t and define the generalized forces due to contact as τ n (q, v) = J T c (q)f n (q, v) and τ t (q, v) = J T c (q)f t (q, v).We note that, since

III. IMPLICIT INTEGRATION WITH TALS

25We introduce our Transition-Aware Line Search (TALS) method to improve the convergence and robustness of implicit integration methods when using large time steps in multibody models with compliant contact and regularized friction.To describe our method, we make a brief overview of the implicit Euler method, though TALS can be used with other implicit integrators.Consider a discrete step of size h from time t n−1 to time t n = t n−1 + h.Implicit Euler approximates the time derivative in Eq. ( 3) using a first order backward differentiation formula.The resulting system of equations is nonlinear in x n and can be solved using Newton's method,

26where k denotes the iteration number, the residual is defined as r(x) = x − x n−1 − h f (x), and A k = ∇ x r(x k ) is the Jacobian of the residual.We use the integrators implemented in Drake [22] which use the stopping criterion outlined in [23,§IV.8] to assess convergence of Newton iterations.

A. Transition-Aware Line Search

27We observed the Newton iteration in Eq. ( 9) most often fails during slip-stick transitions when using large time steps given that A k in the sliding region, v t,i > v s , is not a good approximation of A k in the stiction region, v t,i < v s .This problem is illustrated in Fig. 2 for a 1D system, showing the Newton residual as a function of sliding velocity.Notice the sharp gradient in the region v t,i < v s due to the regularization of friction.An iterate with positive velocity v 0 will follow the slope to point v 1 on the negative side.Given the transition into the stiction region is missed, next iteration then follows the slope to v 2 once again on the positive side.Subsequent iterations continue to switch back and forth between positive and negative velocities without achieving convergence.We found this can be remediated by limiting an iteration crossing the stiction region to fall inside of it.As soon as A k is updated with the more accurate, and larger, value within the stiction region, Newton iterations proceed without difficulties.Similar to other system-specific line search approaches [12], [24], for three dimensional problems TALS limits the iteration update in Eq. ( 9) according to x n,k+1 = x n,k +α∆x k where α ∈ [0, 1].If we freeze the configuration q in Eq. ( 4), this is equivalent to limiting the tangential velocity of each contact point according to v n,k+1 t,i = v n,k t,i + α∆v k t,i , with ∆v k t,i the change predicted by Eq. ( 9), see Fig. 3.We monitor transition to stiction by detecting the moment at which the line connecting two iterations intersects the stiction region, inspired from the idea used in [25] to compute incremental impulses for impact problems.

28TALS proceeds as follows: given a pair of iterates x n,k and x n,k+1 from Eq. ( 9), we update tangential velocities according to Eq. ( 4).At the ith contact point, if the line connecting v n,k t,i and v n,k+1 t,i crosses the stiction region, we compute α i so that v n,k+1 t,i • ∆v k t,i = 0.Even if transition is not detected, we also limit large angular changes between v n,k t,i and v n,k+1 t,i to a maximum value θ Max , see Fig. 3.In practice we found the angular limit to increase robustness and use θ Max = We finally compute the global TALS limiting parameter as α = min({α i }).

B. Implementation Details

29We incorporate TALS in the implicit integrators implemented in Drake [22].Drake offers error-controlled integration to a user-specified accuracy a, which translates roughly to the desired number of significant digits in the results.We can also control whether to use a full-or quasi-Newton method with Jacobian update strategies as outlined in [23,§IV.8].

30We make the distinction between error-controlled and convergence-controlled integration, which retries smaller time steps when Newton iterations fail to converge, as described in [23,§IV.8].All of our fixed-step integrators use convergence control.We refer interested readers to the accompanying documentation in Drake [22] for details.

IV. INTEGRATION PERFORMANCE

31In this section, we evaluate TALS with fixed-step and error-controlled implicit Euler (IE) integrators.The precision obtained with fixed-step integrators is controlled via the time step size h.In contrast, error-controlled integrators adjust Fig. 3: TALS limits the update of tangential velocities for the next Newton iteration when it detects transitions through the stiction region (left).We found that limiting updates to a maximum angle θ Max increases robustness (right).the time step size to meet a user-specified accuracy a, with additional overhead for local error estimation.

32Our objective is to evaluate the trade-off between performance and precision for a variety of integration methods and understand if it is worth paying the additional cost of errorcontrolled integration.We accomplish this by creating socalled work-precision plots that measure cost vs.precision in the solution.We use the number of evaluations of the system's dynamics f (t, x) as a metric of work, including the evaluations used to approximate the Jacobian of f (t, x) through forward differencing.For precision we want a metric that measures global error while avoiding undesirable drifts observed over large periods, especially when using first order methods.Therefore we localize our global error metric by quantifying it within a time window ∆ w .To be more precise, we introduce the flow map y = Φ τ (x 0 ) such that y = τ 0 f dt with initial condition y(0) = x 0 .We compute a solution x m with the method under test at discrete times t m spaced by intervals of duration ∆ w .We then compute a localized reference solution defined by x m r = Φ ∆w (x m−1 ), where notice we use the test solution x m−1 as the initial condition of the reference solution x m r for the next time window ∆ w .In practice we integrate x m r numerically with a much higher precision than the errors in the solution we want to measure.Finally, we make an error estimate by comparing x with the reference x r , see below.

A. Performance Results with a Small System

33We choose a simple 2D box system that exhibits periodic stick-slip transitions.The box of mass m = 0.33 kg lies on top of a horizontal surface with friction µ = 1.0 and is forced to move sideways by an external harmonic force f (t) of amplitude 4 N and a frequency of 1 Hz.The system's dynamics for this case reduces to m v = f (t)−μ(v)W sgn(v), with W the weight of the box in Earth's gravity of g = 9.8 m/s 2 and μ(v) as defined in Eq. (7) with v s = 10 −4 m/s.

34Using a fixed time step h = 10 ms, much larger than the time scale introduced by regularized friction, we observe Newton iterations not to converge as described in Section III-A. Figure 4 shows the Newton residual history the first time, at t = 0.160 s, the box transitions from sliding into stiction.TALS is able to detect transition, properly limit the iteration update and even recover the second order convergence rate of Newton's method.

35Figure 5 shows a work-precision plot with an error estimate e v in the horizontal velocity v defined as the L 2 -norm of the difference between the solution {v m } and the reference solution {v m r }.We use a localized global error estimate computed with ∆ w = 25 ms and a reference solution computed by a 3 rd order Runge-Kutta with fixed step of h = 10 −7 s.Each point in this figure corresponds to a different accuracy a when using error control, or a different time step h when using fixed steps.The same error metric in the horizontal axis allows for a fair comparison.

36We observe the expected theoretical first order slope for errors near v s or smaller.However, for errors larger than v s , integrators without TALS depart from the theoretical result as their performance degrades.Figure 5 shows that TALS improves performance by extending the range in which the first order behavior is valid, up to a factor of 10 (FN) or 3 (QN).

B. Performance with Larger Systems

37When we applied TALS with implicit Euler to systems with more degrees of freedom, we found TALS to be highly sensitive to changes in the configuration q of the system.Specifically, we observed iterations during which tangential velocities fall outside the region v t < v s even after TALS detects a transition and limits the Newton update.We traced this problem to changes in the tangential velocities Jacobian J t (q) in Eq. ( 4) caused by small changes to the configuration q.These iterations during transition steps often result in the same convergence failure as experienced by integrators without TALS (Figure 4), leading to a performance deterioration.

V. TRANSITION-AWARE SEMI-IMPLICIT METHOD

38We draw from the lessons learned in the previous section to design a scheme customized for the solution of multibody dynamics with compliant contact and regularized Coulomb friction.Based on the observation that TALS is sensitive to changes in the system configuration q, we decided to freeze the configurations in Eq. 2 so that we could iterate on the generalized velocities without changes in the configuration affecting the stability of TALS.An important computational advantage of this approach is that the typically demanding geometric queries only need to be performed once at the beginning of the time step.This is the same idea behind the semi-implicit Euler scheme.This scheme however becomes unstable for stiff contact forces in the normal direction since the position dependent terms are treated explicitly as in the conditionally stable explicit Euler scheme.Our TAMSI scheme deals with this problem by introducing an implicit first order approximation of the penetration distances with generalized velocities.

39We will introduce TAMSI in stages so that we can analyze the properties of different contributions separately.We start with the traditional semi-implicit Euler and highlight the differences as we progressively introduce TAMSI.

A. Semi-Implicit Euler: One-Way Coupled TAMSI Scheme

40The semi-implicit Euler scheme applied to Eqs. ( 1)-( 2) effectively freezes the normal contact forces to f n,0 .In this regard the scheme is one-way coupled, meaning that normal forces couple in the computation of friction forces but not the other way around.

41Using a time step of length h, the semi-implicit Euler scheme applied to Eqs. ( 1)-(2) reads,

42where the naught subscript in q 0 , v 0 , M 0 = M(q 0 ), J T c,0 = J T c (q 0 ), and N 0 = N(q 0 ) denotes quantities evaluated at the previous time step.To simplify notation we use bare q and v to denote the state at the next time step.We defined p * = M 0 v 0 +hτ (q 0 , v 0 ) as the momentum the system would have on the next time step if contact forces were zero.Since we are interested in low-speed applications to robotic manipulation, the gyroscopic terms in p * are treated explicitly.It is known however that for highly dynamics simulations, more robust approaches should treat these terms implicitly [26].

43A semi-implicit Euler scheme solves Eq. ( 11) for v at the next time step and uses it to advance the configuration vector q to the next time step with Eq. ( 10).One disadvantage is that this approach often becomes unstable because the stiff compliant normal forces are explicit in the configuration q.

44To solve Eq. ( 11) we define the residual

45and use its Jacobian in Newton iterations.The Jacobian is

46Substituting in Eq. ( 8),

47where we used Eq. ( 4) and

48, with each block computed as the gradient with respect to v t,i in Eq. ( 6):

49where μ (s) = dμ/ds.We introduce the tangential direction Delassus operator as W tt,0 = −J T t,0 ∇ vt f t (q 0 , v)J t,0 and write the Jacobian of the residual as

50We note that with the choice of regularization function such that μ (s) ≥ 0, −∇ vt,i f t,i is a linear combination of SPSD matrices and therefore the Delassus operator W tt,0 is SPSD.Thus ∇ v r(v) in Eq. ( 17) is symmetric positive definite (SPD) and thus its inverse always exists.

B. Implicit Approximation to Normal Forces

51We present an approximation to treat normal forces implicitly while still keeping the configurations frozen.For simplicity, we consider frictionless contact first

52where notice we decided to freeze the contact Jacobian but not the compliant contact forces.

53To treat the normal contact forces implicitly while still freezing the configuration at q 0 , we propose the following first-order estimation of the penetration distance δ i at the ith contact point,

54where we used the fact that δi = −v n,i .We can then substitute Eq. ( 19) into Eq.( 5) to express the compliant forces, π i (v n,i ), as function of the normal velocities and group them into a vector, π(v n ) ∈ R nc .We then express the normal forces as f n (v n ) = N0 π(v n ).This can then be used in Eq. ( 18) to compute the Jacobian of the residual,

55where we introduced the normal direction Delassus operator W nn,0 = −J T n,0 ∇ vn π(v n ) J n,0 and ∇ vn π(v n ) = diag({dπ i /dv n,i }).With the compliant contact model in Eq. ( 5) we have dπ i /dv n,i ≤ 0 and therefore the Delassus operator W nn,0 is SPSD.This implies that the Jacobian in Eq. ( 20) is SPD and its inverse always exists, explaining the high stability of this scheme for contact problems without friction.

C. TAMSI: Two-Way Coupled Scheme

56Using the results from previous sections we are now ready to derive our TAMSI scheme.TAMSI is a semi-implicit Euler scheme in the friction forces as introduced in Section V-A modified to implicitly couple the compliant contact forces using the approximation in Eq. (19).It is a two-way coupled scheme in that, in addition to normal forces feeding into the computation of the friction forces through Eq. ( 6), friction forces feedback implicitly into the normal forces.

57Freezing the position kinematics to q 0 and using the approximation in Eq. ( 19), the full TAMSI residual becomes

58We can then use the results from the previous sections, except we also need to take into account how the friction forces in Eq. ( 6) change due to changes in the normal forces.Instead of the result in Eq. ( 15), we now have

59where ∇ vn f t = −diag({μ i vt,i dπ i /dv n,i }) ∈ R 3nc×nc .We define the generally non-symmetric operator W tn = −J T t,0 ∇ vn f t J n,0 ∈ R nv×nv which introduces the additional two-way coupling between compliance in the normal direction and friction in the tangential direction.

60Using these results we can write the Jacobian of the TAMSI scheme as

61Notice that, due to W tn,0 , the Jacobian is not symmetric and in general not invertible.However, since M 0 is SPD, the Jacobian is invertible for sufficiently small h.

62After computing the next Newton iteration using this Jacobian, we use TALS to selectively backtrack the iteration.

VI. RESULTS AND DISCUSSION

63We present a series of simulation test cases to assess robustness, accuracy and performance.For all cases we use a regularized friction parameter of v s = 10 −4 m/s, which results in negligible sliding during stiction.

A. Parallel Jaw Gripper

64To assess the robustness of our method in a relevant manipulation task with large external disturbances, we simulate a parallel jaw gripper holding a mug and forced to oscillate vertically with a period of T = 0.5 s and an amplitude of A = 15 cm, see Fig. 6.To stress the solver in a situation with slip-stick transitions, we chose a low coefficient of friction of µ = 0.1 and a grip force of 10 N. The mug is 10 cm tall with a radius of 4 cm and a mass of 100 g.There is no gravity.

65With a step h = 3 ms TAMSI completes 5 seconds of simulation time with a single thread on an Intel i7-6900K 3.2 GHz CPU in 123 ms of wall-clock time, or 40× real-time rate.In contrast, IE+FN with TALS is 25× slower than TAMSI and IE+FN without TALS is 55× slower than TAMSI.Simulated time vs wall-clock time for each is shown in Fig. 7. Next, we perform a convergence study for TAMSI running with different time steps and estimate an error against a reference TAMSI solution using h = 10 −7 s, Fig. 8.As expected, TAMSI exhibits first order convergence with step size.

B. Allegro Hand

66We simulate a 16 DOF allegro hand controlled in openloop to perform a periodic reorientation of a mug, see Fig. 9 and the supplemental video accompanying this manuscript.This interesting system includes multiple points of contact, complex geometry and a large number of DOFs.We observe that TALS does not improve the performance of implicit Euler -as the system configuration q changes, the tangent space reorients, and TALS is unable to properly control iterations with transitions into stiction.TAMSI however, with a time step h = 0.7 ms, runs 7.8× faster than our fastest integrator setup, the error-controlled implicit Euler using quasi-Newton when solving to a (loose) accuracy of a = 0.01 m/s.Our single-threaded TAMSI completes 15 seconds simulated time on an Intel i7-6900K 3.2 GHz CPU in 7.0 s of wall-clock time, or 2.14× real-time rate.

C. Sim-to-Real Experiments

67We demonstrate our simulation capability with TAMSI in a manipulation task with closed-loop control involving forcefeedback and manipuland-world contact.We use a Kuka IIWA arm (7 DOF) outfitted with a Schunk WSG 50 gripper.The robot was commanded to move towards a cylindrical manipuland (water bottle), execute a grasp and then perform a vigorous shake motion before placing the manipuland down at a new location, see Fig. 1 and the accompanying supplemental video.

68We use an inverse dynamics controller with gains in the simulation set to best match reality, even though the specifics of Kuka's proprietary joint-level controller are unavailable.The controller process tracks a prescribed sequence of Cartesian end-effector keyframe poses and computes desired joint-space trajectories using Jacobian IK.We use force feedback to regulate the grasp force and judge for placement success.

69TAMSI proves to be a robust scheme for this case and performs well even during the vigorous shaking motions performed by the robot while grasping the bottle.Contact results and forces used to emulate force feedback in the real robot prove to be of sufficient accuracy to calibrate the controller in simulation and transfer to reality without any additional parameter tuning.

VII. CONCLUSIONS

70In this work we systematically analyzed implicit integration for multibody problems with compliant contact and regularized friction.Error-controlled implicit Euler with quasi-Newton iterations performs best, though it spends a significant amount of time resolving the high-frequency transition dynamics introduced by regularized friction.Our new TALS method helps to address this problem, though its performance degrades as the configuration of the system changes and contact surfaces reorient.This observation led us to develop our novel TAMSI method.TAMSI approximates penetration distances to first-order to couple contact forces implicitly while performing only a single geometric query at the beginning of a time step, resulting in improved performance.We demonstrate the added robustness and performance of TAMSI with simulations of relevant manipulation tasks.A sim-to-real comparison shows a usage of TAMSI to prototype a controller in simulation that transfers effectively to reality.

71Additional examples are available in the open-source robotics toolbox Drake [22].Ongoing work conducted at the Toyota Research Institute is leveraging the proposed method for prototyping and validating controllers for robot manipulation in dense cluttered environments [27] and extending TAMSI to work with more sophisticated contact models [20].

Fig. 2 :

72Fig. 2: Divergence of Newton-Raphson near stiction.Iterations cycle between v 2 and v 1 indefinitely.

Fig. 4 :

73Fig.4: Newton's method misses stiction, oscillates, and does not converge (top).TALS detects the transition to stiction, limits the iteration update, and guides Newton's method to convergence (bottom).

Fig. 5 :

74Fig. 5: We evaluate implicit Euler integration performance with full-(FN) and quasi-(QN) Newton updates, each with and without error control (EC), and with and without TALS.

Fig. 6 :

75Fig. 6: Parallel jaw gripper model.We shake the mug vertically to assess robustness.

Fig. 7 :

76Fig. 7: Simulated time vs. wall-clock time for the parallel jaw gripper case.All three runs use h = 3 ms.TAMSI is the fastest, on the far left.The horizontal plateaus in the IE+FN run indicate that without TALS, the integrator slows down since it takes smaller step sizes for convergence control.

Fig. 8 :Fig. 9 :

77Fig. 8: L 2 -norm of the generalized velocity errors against time step, nondimensionalized with the problem's period T and amplitude A. Both translational and rotational DOFs exhibit first order convergence as expected.

참고문헌 28건

  1. Solving Ordinary Differential Equations II: Stiff and Differential - Algebraic Problems 1991
  2. (제목 없음) Nonlinear Dynamics · Springer Science+Business Media · 1997 10.1023/a:1008292328909
  3. Making a meaningful impact: modelling simultaneous frictional collisions in spatial multibody systems Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2015 10.1098/rspa.2014.0859
  4. Staggered projections for frictional contact in multibody systems ACM Transactions on Graphics · Association for Computing Machinery · 2008 10.1145/1409060.1409117
  5. Implicit nonlinear complementarity: A new approach to contact dynamics 2010 10.1109/robot.2010.5509739
  6. Solving Ordinary Differential Equations II Springer series in computational mathematics · Springer Nature · 1996 10.1007/978-3-642-05221-7
  7. A Compliant Contact Model Including Interference Geometry for Polyhedral Objects Journal of Computational and Nonlinear Dynamics · ASM International · 2005 10.1115/1.2162870
  8. Coefficient of Restitution Interpreted as Damping in Vibroimpact Journal of Applied Mechanics · ASM International · 1975 10.1115/1.3423596
  9. AN IMPLICIT TIME-STEPPING SCHEME FOR RIGID BODY DYNAMICS WITH INELASTIC COLLISIONS AND COULOMB FRICTION International Journal for Numerical Methods in Engineering · Wiley · 1996 10.1002/(sici)1097-0207(19960815)39:15<2673::aid-nme972>3.0.co;2-i
  10. Physical simulation for monocular 3D model based tracking 2011 10.1109/icra.2011.5980535
  11. Simbody: multibody dynamics for biomedical research Procedia IUTAM · Elsevier BV · 2011 10.1016/j.piutam.2011.04.023
  12. Coping with friction for non-penetrating rigid body simulation 1991 10.1145/122718.122722
  13. Physically consistent state estimation and system identification for contacts 2015 10.1109/humanoids.2015.7363481
  14. A comparative study of contact models for contact-aware state estimation 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) · 2015 10.1109/iros.2015.7354089
  15. Computer Science and Scientific Computing Elsevier eBooks · Elsevier BV · 1989 10.1016/b978-0-12-762535-5.50018-0
  16. On the regularization of impact without collision: the Painlevé paradox and compliance Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2017 10.1098/rspa.2016.0773
  17. Blended cured quasi-newton for distortion optimization ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3197517.3201359
  18. An implicit frictional contact solver for adaptive cloth simulation ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3197517.3201308
  19. Contact dynamics modelling for robotic task simulation 2008
  20. A pressure field model for fast, robust approximation of net contact force and moment between nominally rigid objects arXiv (Cornell University) · Cornell University · 2019
  21. Non-smooth Newton Methods for Deformable Multi-body Dynamics ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3338695
  22. Using Simulation and Domain Adaptation to Improve Efficiency of Deep Robotic Grasping 2018 10.1109/icra.2018.8460875
  23. Closing the Sim-to-Real Loop: Adapting Simulation Randomization with Real World Experience 2022 International Conference on Robotics and Automation (ICRA) · 2019 10.1109/icra.2019.8793789
  24. Coping with friction for non-penetrating rigid body simulation ACM SIGGRAPH Computer Graphics · ACM SIGGRAPH · 1991 10.1145/127719.122722
  25. A pressure field model for fast, robust approximation of net contact force and moment between nominally rigid objects 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) · 2019 10.1109/iros40897.2019.8968548
  26. Staggered projections for frictional contact in multibody systems 2008 10.1145/1457515.1409117
  27. Deleted Work 1955
  28. Solving Ordinary Differential Equations II Springer series in computational mathematics · Springer Nature · 1991 10.1007/978-3-662-09947-6