Contact, friction and solving: three different layers#

The contact model specifies possible forces and torques; the solver computes them; the integrator advances state. A different solver cannot supply a torque direction excluded by the model.

Why can two fingers fail to hold a sphere?#

Imagine two ideal point contacts. Each applies force but no intrinsic contact moment. Their forces cannot produce torque about the line joining the points. If gravity creates torque about that axis, increasing grip force may not stop rotation.

Think of an ideal axle passing through the sphere: rotation about that direction remains unconstrained by the point forces. This explains an instantaneous geometric direction. It does not imply fixed fingers or that every two-point grasp must fail.

Identify the layer you are changing#

  • Model: normals, friction directions, contact dimension and soft-constraint parameters define the problem. condim changes available contact components; sliding, twisting and rolling are different mechanisms.

  • Numerical solve: MuJoCo’s PGS, nonlinear CG and Newton solve the constraint problem. Iteration budgets, tolerances and warmstart affect the approximation and its cost.

  • Time evolution: the step and integrator affect the trajectory. A smaller solver residual does not establish a smaller trajectory error or better material fidelity.

Read condim as a model choice, not a quality level

condim=1 has the normal component; 3 adds two sliding components; 4 adds twisting about the normal; 6 adds two rolling components. More components do not make every task more accurate.

Torsional and rolling friction coefficients involve a length scale. Do not substitute a dimensionless sliding coefficient. Check the actual combined contact parameters and native readbacks, not only one geom's XML.

Self-check: model or iterations?#

A point-contact model has no twisting component and the object rotates about the contact line. What is the most informative next check?
Read the explanation

Inspect the model and torque demand first. If the model supplies the required components but measurements show a large numerical residual, then design a solver comparison. Dropping alone does not diagnose a solver defect.

Turn a symptom into evidence#

Record contact points, normal and tangential forces, intrinsic moments, object velocity, actuator saturation and other support. Follow contact formation, loading and failure in time. This chain determines whether the next useful change belongs to the model, control or solving.

DexLab has an existing Wuji point-versus-torsional-contact case. The final lesson returns to its measurements and limits.

Read more: Soft contact and friction cones · Solvers and integration · Force observations · Official contact dimensions