## 01 · A grasp that only works at one timestep

Let's look at a grasp that only works at one timestep using a real-to-sim experiment. Suppose a simulated gripper picks up a box reliably at two milliseconds, but drops it at eight. We have learned something about numerical behavior, not necessarily about the real friction coefficient.

Discrete integration does not trace continuous motion exactly. Contact is especially sensitive because forces can change sharply as constraint sets switch between separation, sticking and slipping.

The important thing here is to separate an observation from an explanation. Replay one grasp with the same initial pose, controller and model, changing only the physics timestep. Overlay fingertip penetration, box height and normal impulse on synchronized plots.

Reducing the timestep is not itself proof of physical validity. A stable yet systematically incorrect contact model will simply converge to an incorrect continuous-time model.

For each timestep, estimate the resolution of impact duration in number of steps. If the effective contact event spans only one step, a small change in initial conditions may change the active constraint sequence. Compare not just final pose but impulse and transient penetration.

Choose a timestep by convergence evidence on task outputs and failure events, then report solver tolerance and hardware assumptions.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

Notice that the image is evidence of a hypothesis, not a substitute for measurement.

## 02 · Clocks and aliasing

Our next diagnostic is clocks and aliasing. Robotics simulation involves multiple clocks: physics integration, controller updates, sensor sampling, logging and rendering. Treating them as interchangeable produces misleading demonstrations.

A zero-order-held controller at fifty hertz sees a very different signal from a one-kilohertz integrator. A visual frame at sixty hertz can skip a short contact event entirely, even though the physics did calculate it.

Here is how I would turn this into a reproducible experiment. Drive a periodic finger command and show separately the continuous target, sampled controller input, physics substeps and rendered frames. Change only the sampling interval and observe aliasing.

A screen recording is not a measurement. Rendered contact timing can differ from state recorded every substep, and wall-clock speed is not simulation time.

Mark sample-and-hold boundaries on the control signal. When a finger collides halfway between control updates, the actuator may continue pushing with the previous command until the next tick. That delay has a physical effect in the numerical model.

Timestamp all signals using a defined clock, preserve interpolation rules, and compare trajectories at identical simulation times.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

Keep the original trial and the counterexample in the record; both teach us something.

## 03 · Contact stiffness and damping

In this scene, contact stiffness and damping is our focus. Contact compliance determines how penetration relates to normal force and how quickly constraint errors decay. Stiff is not automatically realistic, and infinite stiffness is not numerically free.

For an idealized mass and spring, the natural frequency rises with the square root of stiffness divided by mass. Explicit stepping becomes harder as the fastest modes outrun the integration timestep.

Before fitting anything, verify the definitions of the quantities on screen. Compress a spring-like contact model with the same incoming impact velocity while changing stiffness and damping. Plot peak compression, oscillation and impulse duration.

One contact parameter set that prevents sinking on a large box can create unrealistic rebound or jitter on a light fingertip, so tune at relevant scales.

The nondimensional ratio between timestep and contact oscillation period is often more useful than either number alone. A contact tuned on a heavy workpiece may behave very differently on a lightweight payload at the same stiffness and timestep.

Record load-deflection curves where measurable and perform timestep convergence after each major change in contact stiffness.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

If those checks disagree, stop and fix the assumption before continuing.

## 04 · Integrator behavior and energy

Let's look at integrator behavior and energy using a real-to-sim experiment. An integrator is a mathematical rule for advancing state. Different rules can produce different long-term energy behavior even without contact.

Compare explicit Euler, semi-implicit Euler and a smaller-step reference on an undamped mass-spring oscillator. The first can gain energy systematically; the second often has bounded oscillatory energy behavior in stable regimes.

We're going to test this rather than treat it as a cosmetic adjustment. Overlay position, velocity and normalized energy drift over many cycles. Hold the physical model fixed while stepping from coarse to fine resolutions.

Small local position errors can accumulate into major qualitative changes, so inspecting only the first second may miss numerical instability.

An energy-drift plot reveals integration errors that may be subtle in position. For a force-free conservative oscillator, energy should not climb without bound. A contact model can dissipate energy legitimately, so identify every energy source and sink first.

Select an integration method appropriate to stiffness, constraints and computational budget. Document the tested stability envelope.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

That is how a visually convincing demonstration becomes an experimentally defensible claim.

## 05 · How solvers close the loop

Our next diagnostic is how solvers close the loop. A contact solver balances constraints and dynamics to find feasible velocities or forces. Its iterations, tolerances and algorithm affect how well constraints are satisfied within a finite time budget.

Projected Gauss-Seidel, conjugate gradient and Newton-style methods have different cost and convergence patterns. In MuJoCo the available solver settings and contact formulation should be read from the versioned engine documentation.

Watch the animation carefully as we change only one part of the setup. Build a stack of objects that is deliberately difficult to solve. Record penetration, residual, constraint count, solve time and object motion as the iteration budget changes.

More iterations do not repair mismatched meshes, bad inertia or a physically unrealistic friction law. They only solve the currently specified numerical problem more accurately.

Record solver residuals together with iteration counts. A residual that stops improving with additional iterations may indicate an ill-conditioned model or a reached tolerance limit. It is not productive to assign more computation blindly.

Choose settings using both computational performance and convergence in task-level metrics, not by seeking a visually motionless stack.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

The goal is an engineering test that can fail for an understandable reason.

## 06 · Friction cones and slip

In this scene, friction cones and slip is our focus. A grasp is stable only when contact forces can oppose the applied load without violating friction constraints. The static picture of two fingers touching a cube is not sufficient.

For idealized Coulomb friction, tangent force magnitude is bounded by a coefficient multiplied by normal force. In multiple-contact rigid-body simulation, the available combinations of wrenches depend on normals, lever arms and the friction approximation.

The important thing here is to separate an observation from an explanation. Gradually increase lateral load while holding normal squeeze fixed. Show tangent force reaching the friction boundary, the onset of slip and the redistribution of contact forces.

If friction is artificially increased until every grasp succeeds, simulated success can conceal a poor geometry model, unrealistic squeeze force or missing compliance.

For a two-sided pinch, each finger has its own normal force limit. The frictional support capacity is not simply the coefficient from one contact times the total robot weight. Calculate each contact’s allowable tangent force in its local frame.

Verify slip onset at several normal loads and approach directions, distinguishing static threshold behavior from post-slip dynamics.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

Notice that the image is evidence of a hypothesis, not a substitute for measurement.

## 07 · Grasp wrench and torque balance

Let's look at grasp wrench and torque balance using a real-to-sim experiment. Even if individual contacts can support a force, the entire object can rotate out of the fingers when their combined wrench cannot balance gravity and disturbance torques.

A fingertip force acting a distance from the center of mass generates torque. Contact placement, local normals and force limits determine whether the set of achievable wrenches contains the required external wrench.

Here is how I would turn this into a reproducible experiment. Pick a block with offset center of mass. Move the contact pads and trace each force vector and moment arm. Compare symmetric squeeze to a top-heavy load.

Two contacts with high normal force may be worse than properly placed contacts with moderate force, particularly for resisting pitch or yaw.

If gravity acts off-center relative to the contact pair, the resulting moment must be countered as well as the vertical force. Sliding, rolling and spinning out of grasp are distinct failure modes, and each can have a different parameter sensitivity.

Log object pose drift, finger normal forces, tangential load and grasp failure time; define a falsifiable stability margin.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

Keep the original trial and the counterexample in the record; both teach us something.

## 08 · Controller and solver interaction

Our next diagnostic is controller and solver interaction. A controller can inject oscillation into a physically sound mechanism if its bandwidth, delay and saturation interact badly with discrete contact.

A high-gain position servo pushing into a rigid wall may command large forces every control tick. Delayed velocity estimates and clipped actuator forces can disguise the source of chatter.

Before fitting anything, verify the definitions of the quantities on screen. Test low and high proportional gains with the same contact scene, then add derivative damping and actuator saturation. Plot joint error, commanded torque and contact impulse.

Do not call chatter a friction issue until you have checked closed-loop timing, gains, force limits and whether the object itself has enough mass and inertia.

Saturation is an important physical constraint. Plot what torque the controller requested and what was actually delivered, because a beautifully tracked trajectory under unlimited simulated effort is not a test the hardware can repeat.

Tune in a safe hierarchy: mechanical model, stable time stepping, bounded controller, then manipulation performance.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

If those checks disagree, stop and fix the assumption before continuing.

## 09 · Stress test the manipulation

In this scene, stress test the manipulation is our focus. A convincing grasp should survive modest perturbations, not only a single perfectly placed initial object. Real robots see uncertainty in position, mass, surface condition and timing.

Construct systematic sweeps of initial pose, load, approach speed and contact friction. Keep the nominal run and the entire distribution of failures; avoid cherry-picking a long successful replay.

We're going to test this rather than treat it as a cosmetic adjustment. Apply a small lateral disturbance at the worst moment of lift, then repeat the same test at multiple integration timesteps and sensor rates.

Robustness in the simulator is not a guarantee of real-world transfer, but brittle numerical success is an immediate reason to distrust a claimed calibration.

Random trials are useful after controlled sweeps. First vary one perturbation systematically to find a failure boundary; then vary multiple parameters jointly to estimate operational reliability near that boundary.

Report survival rate, slip distance, drop time, penetration and solver residual across independent stress cases.

Our aim is not maximal apparent stability. It is convergence toward a physically defensible model whose failures and energy changes have sensible causes. Computational cost is part of the result: report how much accuracy is bought with each extra substep or iteration.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

That is how a visually convincing demonstration becomes an experimentally defensible claim.

## 10 · A stability acceptance protocol

Let's look at a stability acceptance protocol using a real-to-sim experiment. By the end of solver calibration, we need a protocol that states exactly what settings earned our confidence and where they stop being reliable.

Capture engine version, timestep, integrator, solver iterations or tolerance, controller rates, contact settings and initial states, with deterministic seeds where applicable.

Watch the animation carefully as we change only one part of the setup. Produce side-by-side grasp traces for baseline and higher-resolution reference runs. Record the runtime cost and error in tip penetration, pose, impulses and failure classification.

A visually smooth simulation can still be numerically invalid. Conversely, a visible but physically plausible small vibration may be acceptable if measurements support it.

A practical convergence report should state whether the pass-fail classification itself stabilizes. Average pose error can shrink even while the number of dropped objects fluctuates, and that is unacceptable for a grasp safety claim.

Approve a configuration only after the observable outcomes converge within declared tolerances and independent physical tests support the model.

The stage highlights the difference between continuous equations and their time-discrete numerical approximation. Follow both the state trajectory and the contact event, because two integrations can end at nearly the same location while accumulating very different peak forces.

Change exactly one numerical setting, reset all initial conditions, and observe the result over an interval long enough for any error to grow. If the comparison is not repeatable, establish deterministic inputs and correct logging before changing another solver option.

The goal is an engineering test that can fail for an understandable reason.