TECHNOLOGY

MuJoCo material tuning: inspect the resolved contact, not just one geom

In this article
THE QUICK TAKE

Effective contact parameters are resolved from the pair definition or participating geoms; a single edited material field may not control the contact being tested.

An unchanged result can be a resolution-rule result

A twin engineer lowers the friction of a gripper geom, reruns a planned grasp comparison and sees no intended change. Before concluding that friction is numerically ineffective, inspect how the contact’s parameters are obtained. The solver consumes a resolved contact between specific geometries, not an isolated material label. A different geom or an explicit pair can supply the effective value. Identifying that source is a prerequisite to any meaningful material sensitivity study.

Check whether a pair bypasses geom combination

The modeling guide states that an explicitly defined contact pair supplies its contact parameters directly, ignoring individual geom parameters for that pair. The XML reference provides the separate pair and geom attributes. Thus a local geom edit can be valid, compiled and visible in model inspection while leaving the named pair unchanged. Retain pair identity and determine whether contact generation used the explicit or dynamic mechanism before comparing parameter values.

Do not use one averaging rule for every field

For dynamically generated contacts, higher geom priority can select one geom’s friction. At equal priority, friction coefficients use element-wise maxima rather than an arithmetic average. Solver-reference and impedance parameters follow separate combination rules involving solmix and format-specific exceptions. Do not apply a generic material averaging function to all fields. A friction decrease on the noncontrolling side can consequently leave the resolved value unchanged without any simulation or configuration failure.

Propose a parameter-resolution fixture

A proposed fixture should contain a known touching pair with deliberately distinct geom friction and priority settings. Inspect the resolved contact while changing equal-priority friction, higher-priority selection and explicit-pair definition in separate cases. Keep state, geometry and solver configuration fixed. This isolates the combination mechanism from motion-dependent changes in which geoms touch. Do not report a task success difference until the expected contact-parameter change has first been observed in the fixture.

Keep a resolved-contact record

Acceptance evidence should include participating geom names, explicit-pair status, priority, authored friction values and the effective contact vector. Add solver overrides if enabled because a global override can change another part of the contact configuration. Preserve the model revision and the computation boundary where the record was inspected. A material-name-only export loses the evidence needed to explain why two contacts involving the same object used different effective values.

Separate resolution correctness from physical calibration

This article proposes configuration checks and does not report a grasp experiment. The GraspNet label guide explains a neighboring interpretation boundary; software reproducibility supports preserving effective settings. Correct parameter resolution establishes what the simulator used, not which coefficients match a real surface. Physical calibration still needs an independently defined contact experiment, geometry assumptions and uncertainty analysis rather than agreement with one convenient simulated outcome.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles