Sim-to-real work starts with a model that makes testable predictions. Maintain a common record of geometry and inertial properties, document each simulator's actuator and contact behavior, and compare the simulation against hardware signals before training. Use measured uncertainty to define randomization ranges and reserve separate hardware trials for validation.
- Use URDF, MJCF and OpenUSD for the parts of the model each format represents well. Record solver-specific choices alongside the asset.
- Identify transmission and current-loop dynamics on a joint fixture before fitting a whole-body model.
- Calibrate contact with normal loading and tangential slip tests. Recheck the model at a finer integration step.
- Sample correlated, physically plausible parameters and hold back hardware trials for transfer validation.
1. Decide which behavior the simulator must predict
Start with a transfer decision. For a biped touchdown, the state estimator needs contact timing and the controller needs a plausible joint load. For a gripper closing on an object, the main quantities may be slip onset and the time between the first force rise and a settled grip. Build the smallest hardware experiment that measures those quantities. Record its input commands, sensor timestamps, hardware revision and environmental conditions before fitting parameters.
Keep a release manifest for each run. It should name the CAD and asset revisions, the link frames and joint coordinate conventions, the actual firmware and actuator command mode, and the simulator engine, integration step, solver settings and policy clock. A visual model can load successfully while using an inverted axis or the wrong link scale. Check known poses and single-axis positive motion against hardware before relying on an imported robot description.
2. Establish a canonical model before translating assets
Choose one authoritative source for each link's mass, center of mass and inertia. Keep inertias in kg·m² about the listed center of mass and identify the coordinate basis. Use hardware measurements for assembled mass and center of mass where available. Compare collision hulls separately from meshes used for rendering. A sole collision hull is especially consequential because it changes the location of the first contact.
After conversion, compare the mass properties, joint states and collision geometry in both environments. A cross-engine comparison should preserve the robot's physical test, with documented differences in how each runtime resolves its constraints.
Iₒ = R I꜀ Rᵀ + m[(dᵀd)𝟙 − d dᵀ]
- I꜀ is the inertia about the center of mass in kg·m².
- R rotates the inertia into the link axes.
- d is the offset from the reference point to the center of mass in m.
- m is link mass in kg.
| Format | Useful role | Verify after import |
|---|---|---|
| URDF | Portable robot link tree, joint axes and limits, collision shapes and link inertias. | Verify mesh scale, inertial frame, joint signs, and where simulator or control extensions define actuation and friction. |
| MJCF | MuJoCo-specific model with actuator transmission, joint dynamics, sensors, solver configuration and contact properties. | Verify gear conventions, force and command limits, and inherited default classes. Compare effective contact settings after the model compiles. |
| OpenUSD with UsdPhysics | Composable scenes that carry rigid bodies, collision meshes, mass properties, joints, drives and materials. | Check stage length and mass units, up axis, joint drive mode and engine extensions. Inspect the prims after layers resolve. |
3. Measure the joint before fitting the robot
Use a guarded single-joint fixture with synchronized position, command, current and output torque logs. Start with drive limits suitable for the fixture and the manufacturer configuration. Record steady-state sweeps at representative loads and both directions of travel. Reversal trials reveal lost motion and stiction that a positive-speed sweep misses. Separate transport delay from the drive's rate limit and estimate both from the timestamps of command and response.
Start with reflected inertia, viscous losses and Coulomb friction. Add deadband, elastic compliance or history dependence only when held-out traces show a repeatable error. A torque command clipped at a fixed peak is an incomplete motor model when the drive changes available torque with shaft speed, temperature or bus state. Fit direction-dependent behavior and review the residuals at the reversals. Where an actuator reports filtered current, measure its lag before comparing torque and current peaks.
Jᵣ = N² Jₘ
- Jᵣ and Jₘ are inertias in kg·m².
- N = ωₘ / ωⱼ for a rigid, ideal reduction.
- Add load inertia in joint coordinates and model compliance separately.
4. Calibrate contact and separate it from integration error
Use representative material pairs and normal loads. Estimate static friction from several controlled pulls at first slip and characterize sliding friction from later samples at representative velocities. Compare touchdown impulse, penetration or deflection, and the duration of the force transient. Report the fixture compliance and sensor filtering. A compliant pad, an unmodeled flexing fixture and a soft numerical contact can all broaden the force trace.
Run the same mechanical event at the chosen step and at a finer step with the control sampling schedule fixed. If the outcome changes enough to affect the transfer decision, investigate the integration scheme, solver convergence and contact geometry before training. In MuJoCo, contact impedance and reference dynamics can change contact behavior even with friction held fixed.
∥fₜ∥₂ ≤ μ fₙ, fₙ ≥ 0
- fₜ and fₙ are tangential and normal components of the contact force in N.
- μ is dimensionless and represents the material pair and test regime.
- This bound alone does not specify compliance or impact dynamics.
| Fixture test | Compare | Failure to investigate |
|---|---|---|
| Known static poses | Axis signs, center-of-mass load and gravitational torque. | Frame transform, mass error or zero offset. |
| Current-limited joint reversal | Zero crossing, torque lag and displacement before output motion. | Stiction, backlash or firmware filtering. |
| Loaded sliding coupon | First slip and sustained tangential force across several normal loads. | Wrong friction regime, material mismatch or changing load path. |
| Low-energy contact, repeated at a finer step | Touchdown timing, integrated normal impulse and residual motion. | Collision hull, solver convergence, fixture compliance or sensor delay. |
5. Randomize uncertainty with a hardware test in reserve
Maintain a nominal parameter set and separate sampled uncertainty by timescale. Keep a manufactured link property fixed within an episode. Introduce realistic slowly changing drive and temperature states over a run, and use measured time sequences or a defensible model for timestamp jitter. Preserve correlations. A heavier distal link changes both total leg mass and inertia. A scheduler delay can change simultaneously across sensor and actuation channels.
Peng and colleagues demonstrated transfer with dynamics randomization for a particular robotic task. Berkeley Humanoid illustrates a complementary strategy in which hardware design reduces simulation error and lighter randomization becomes practical. Neither result provides universal bounds. Hold out surface materials, payload conditions and whole test sessions. Compare success and intervention counts, plus the joint and contact traces, across held-out hardware runs. Freeze the test protocol before comparing policy revisions so that an easy set of runs cannot hide a regression.