Midas: A Multi-Joint Robotics Simulator with Intersection-Free Frictional Contact

Yunuo Chen, Minchen Li, Wenlong Lu, Chuyuan Fu, Chenfanfu JiangarXiv 2022

Abstract

We introduce Midas, a robotics simulation framework based on the Incremental Potential Contact (IPC) model. Our simulator guarantees intersection-free, stable, and accurate resolution of frictional contact. We demonstrate the efficacy of our framework with experimental validations on high-precision tasks and through comparisons with Bullet physics. A reinforcement learning pipeline using Midas is also developed and tested to perform intersection-free peg-in-hole tasks.

Introduction

In robotics simulation, "ghosting" or interpenetration—where objects overlap or pass through one another—is a persistent challenge. Traditional physics engines like Bullet, PhysX, or MuJoCo often prioritize computational efficiency by allowing slight overlaps. However, this creates a significant "sim-to-real gap." Control policies trained in environments where grippers can clip through thin objects or pegs can cheat by penetrating hole boundaries often fail in real-world applications where physics are unforgiving. High-precision tasks, such as assembling tight-fitting parts or handling concave geometries, are particularly susceptible to artifacts like artificial locking or jittery instabilities.

Methodology

Midas addresses these challenges by adapting the Incremental Potential Contact (IPC) framework for multi-jointed robots. The simulator treats each step as an optimization problem, minimizing an energy function that integrates inertia, elasticity, friction, and articulation constraints.

Key technical innovations include:

  • Barrier Functions: Midas utilizes smoothly clamped barrier functions. As objects approach one another, the potential energy rises to infinity, creating an impenetrable physical boundary.
  • Continuous Collision Detection (CCD): CCD is performed at every optimization step, ensuring that fast-moving objects never skip through one another between frames.
  • Affine Body Dynamics (ABD): To maintain efficiency, Midas represents rigid bodies using 12 degrees of freedom (translation and affine deformation). This keeps optimization trajectories linear, significantly accelerating CCD calculations compared to standard rigid body rotations.
  • Articulation Constraints: The framework supports standard URDF files by translating joints (hinge, sliding, fixed) into linear and nonlinear constraints within the optimization loop.

Experimental Results

Midas was evaluated against Bullet physics across several challenging robotic benchmarks, focusing on precision and contact integrity.

High-Precision Insertion

In the beam assembly task, Midas successfully simulated insertions with a clearance of only 0.0001m. In contrast, Bullet failed when the margin dropped below 0.001m due to its reliance on fixed collision margins, which caused the objects to overlap or lock prematurely.

Midas vs. Bullet: Beam insertion precision comparison.

Thin-Shell Manipulation

When grasping a thin-shell cup (0.002m thickness), Bullet’s gripper often penetrated the cup wall, leading to unrealistic "sticking" artifacts. Midas resolved these contacts perfectly, enabling clean pick-and-place operations without interpenetration.

Midas vs. Bullet: Thin-shell cup grasping comparison.

Reinforcement Learning Performance

In a peg-in-hole RL task, the Midas-trained agent achieved a 90% success rate, outperforming the Bullet-trained agent (75%). Crucially, while 95% of Bullet's "successful" insertions involved some level of clipping, 100% of Midas's results were physically valid and intersection-free. This demonstrates that Midas prevents agents from learning policies that exploit simulator inaccuracies.

Conclusion

Midas provides a robust foundation for high-precision robotics simulation by guaranteeing intersection-free frictional contact. While optimization-based solvers introduce higher computational overhead than traditional LCP solvers, the resulting physical integrity significantly narrows the sim-to-real gap. Future work will extend Midas to support deformable objects like cloth and cables, further expanding its utility in complex manipulation tasks.

Summary updated

BibTeX
@misc{chen2022midas,
  author = {Yunuo Chen and Minchen Li and Wenlong Lu and Chuyuan Fu and Chenfanfu Jiang},
  title = {{Midas: A Multi-Joint Robotics Simulator with Intersection-Free Frictional Contact}},
  year = {2022},
  eprint = {2210.00130},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00130},
}
Figure