FIELD NOTES / ZAPPD
What simulation can tell you before the robot touches anything
Contact models and domain randomization are useful because their assumptions can be examined, not because simulation certifies reality.
A simulated gripper closes around a block. The block rises, stays level and lands in the tray. The animation makes the result look settled. In fact, it is the beginning of a question about assumptions.
Which contact parameters kept the block in place? How closely does the modeled mass match the physical object? What delays lie between the policy and the actuator? A simulation can help answer useful questions while still being wrong about the interaction that determines success.
The value of simulation is that we can change conditions deliberately and inspect consequences. Its usefulness grows when we specify what we expect it to explain.
Contact is a model choice
The MuJoCo 3.3.0 computation documentation explains its soft contact formulation and discusses differences from hard contact approaches. It presents alternative contact formulations as approximations to physical reality with different strengths and weaknesses.
That is a useful corrective to the idea that a simulator simply applies physics. Simulation requires a mathematical representation and a numerical procedure. Choosing a contact formulation determines which behaviors the calculation can represent and how it handles them.
A builder does not need to implement a solver to ask a relevant question. If success depends on friction, investigate sensitivity to friction. If it depends on a small clearance, investigate whether the geometry and contact representation are adequate for that question.
The documented model gives the investigation a basis. A smooth rendered movement alone does not. Rendering is useful for seeing a trajectory, but the visual appearance cannot establish that the forces or contacts are representative.
Match the model to a decision
Suppose an imagined arm must move between two trays without hitting a fixture. A geometry based simulation can help explore whether a planned route intersects the modeled fixture. It does not, by that fact, establish how reliably the gripper retains a deformable object along the route.
Those questions demand different evidence. We can often learn more by narrowing a simulation's job than by claiming it represents the entire robot. The fixture geometry might be well measured while the contact material remains poorly characterized.
System identification addresses part of this problem by estimating model parameters from physical behavior. The term can sound abstract, but its purpose is concrete. Compare what the robot does with what the model predicts, then improve the parameters relevant to the decision.
This still leaves a choice about what to include. A model that reproduces one movement can remain inaccurate under another load or contact condition. Matching an observed trajectory is evidence about that comparison, rather than a general certificate of accuracy.
Randomization changes the training problem
In their 2017 domain randomization paper, Tobin and colleagues varied simulated rendering conditions to train object localization that transferred to real images. Their work focused on visual variation and included robotic grasping experiments using the detector.
The underlying idea is to train across a distribution of conditions instead of relying on a single visual match. This can make the real observation less exceptional to the learned system. The study provides evidence for a specific transfer approach, not proof that arbitrary randomization removes every reality gap.
In particular, varying textures is different from varying actuator response. A perception model that tolerates different backgrounds might still participate in a control system with unmodeled delay. A policy trained across physical parameter variation answers another question again.
For an illustrative sorting experiment, randomizing lighting would test a different hypothesis from randomizing object mass. The first concerns how images change. The second concerns how the interaction changes. Combining them without separate measurements can make a failed transfer harder to diagnose.
More variation needs a reason
It is tempting to respond to every mismatch by expanding the randomization range. But a range expresses a belief about which conditions matter and what values are plausible. An extremely broad range can spend training effort on conditions irrelevant to the intended application.
A useful process would begin with a measured discrepancy. If the physical object slips while the simulated object remains secure, investigate the interaction and the assumptions behind it. If the detector fails only under a changed light source, investigate the visual input. These are proposed diagnostic steps, not a guaranteed transfer recipe.
The distinction also improves reporting. "Trained in simulation" describes where data came from. It says little about the physical evaluation. Readers still need to know which robot, which tasks, what adaptation occurred and how failures were counted.
A useful simulation produces a testable claim
Before running a large simulated experiment, write down the decision its result will influence. Perhaps it will compare two placements of a fixture. Perhaps it will identify a policy's sensitivity to a measured parameter. That decision determines which assumptions deserve the most attention.
Then preserve the model version, parameter choices and conditions used for comparison. When hardware disagrees, the record makes the disagreement useful. You can identify which assumption failed instead of treating the physical trial as an inexplicable disappointment.
A good next physical experiment targets the remaining uncertainty. If the model is insensitive to appearance but highly sensitive to contact conditions, another photorealistic render is unlikely to resolve the important question. Measure the contact behavior under the intended conditions. Simulation becomes a way to choose that experiment with more purpose.