Learn / Practice
MuJoCo braking after observation loss: when has the slider stopped?
EMBODIED-AI / EXPLORE · Engineering cases
405 paired simulations test braking from local velocity feedback and track whether the slider stays below the speed threshold.
What was published after this article?
The original conclusions and next-step proposals are retained. These published follow-ups do not imply that every limitation has been resolved.
Related content
- Engineering cases
MuJoCo braking and sustained low speed after observation loss
Three rounds compare filtering, staged braking, and a guard on position force. The guard fixes the retained counterexample, and both policies pass the same 60 new trials.
- Engineering cases
MuJoCo mass transfer: can the same gains still work?
Compare fixed and mass-scaled gains in 36 episodes, including lower mean error without a velocity-contract pass.
On this page 4
Download the study bundle · Run the study and redraw the figures
In the previous experiment, a frictionless slider coasted after its position observations stopped and the controller set the force to zero. This follow-up gives the controller a separate local velocity channel. Ideal feedback braked the slider in all three permanent-loss trials. In a second round with noisy feedback, the slider met the stopping criterion in all 12 high-noise permanent-loss trials and later exceeded the speed threshold in every one. Lab record
Three follow-up rounds track post-stop threshold crossings and low-speed travel, with seed 2017 comparing position-force caps and near-threshold tapering. Sustained stopping follow-up
How the study was set up
Both rounds use the same 1 kg planar slider, 2 ms physics step and 20 ms control period. Position observations arrive 40 ms after capture and carry Gaussian noise with a standard deviation of 3 mm per axis. The controller switches modes when the last position observation is more than 100 ms old. In the two dropout conditions, captures stop at 0.40 s and the controller detects loss at 0.50 s. Under temporary loss, sampling resumes at 1.00 s and the controller receives the first new position observation at 1.04 s. In the no-dropout control, position delivery continues throughout the trial.
During detected loss, each axis applies -8 × measured velocity, limited to ±5 N. The simulated local sensor samples the physical velocity immediately before a control step. The controller uses the newest arrived sample if its age is within the configured limit. Without an eligible sample, it commands zero force. The original position controller takes over when fresh position data returns.
The audit uses the slider's actual planar speed. A stop is confirmed once the speed stays at or below 0.04 m/s for 0.30 s, with the window ending by the time position control resumes. Confirmation time is measured from loss detection to the end of the window. Stopping distance is the path length from loss detection to the start of the window. When confirmation is absent, both values are recorded as null. The audit separately checks the original goal criterion, which requires both a speed below 0.04 m/s and a target error below 1.5 cm throughout the final 0.30 s.
All three plots measure elapsed time from loss detection at 0.500 s. The text identifies individual events by their absolute simulation times.
What ideal local velocity feedback changed
The first round pairs three position delivery conditions, five fallback policies and three seeds for 45 trials. When observations became stale, the policies continued computing from the last position observation, commanded zero force, faded the force to zero, braked with ideal local velocity, or fell back to zero when local velocity was unavailable.
| Policy during loss | Confirmed stops under permanent loss | Distance in the first 0.50 s after detection |
|---|---|---|
| Continue with the last position observation | 0/3 | 19.80–39.25 cm |
| Zero force | 0/3 | 42.70–46.04 cm |
| Fade force to zero | 0/3 | 36.77–41.96 cm |
| Brake with ideal local velocity | 3/3 | 10.37–11.44 cm |
| Local velocity unavailable, fall back to zero force | 0/3 | 42.70–46.04 cm |

Under permanent loss, the ideal-feedback trials confirmed a stop 0.662–0.674 s after detection, with stopping distances of 10.05–11.14 cm. Under temporary loss, the slider had slowed to 0.0084–0.0094 m/s when position control resumed, but the low-speed window was only 0.166–0.178 s across the three trials. All nine traces with unavailable local feedback matched their zero-force controls. All 45 trials fell short of the original goal criterion.
What happened with delay, noise and missing samples
The second round kept the same position controller and dropout schedule. It paired ten local velocity conditions with all three position delivery conditions and 12 seeds, making 360 four-second trials. Jitter cycled through 0, 60, 20 and 20 ms delays, so newer captures could arrive first. The gap condition dropped 160 ms of local sends starting at loss detection. The combined condition applied jitter, the gap and 0.02 m/s noise. Noise values below are standard deviations per axis.
| Local velocity condition | Permanent loss | Temporary loss, before recovery |
|---|---|---|
| Ideal feedback | 12/12 | 0/12 |
| 20 ms delay, 40 ms age limit | 12/12 | 0/12 |
| 40 ms delay, 40 ms age limit | 12/12 | 11/12 |
| 200 ms delay, 40 ms age limit | 0/12 | 0/12 |
| 200 ms delay, 200 ms age limit | 0/12 | 0/12 |
| Jitter, 40 ms age limit | 12/12 | 0/12 |
| 0.02 m/s noise | 12/12 | 0/12 |
| 0.08 m/s noise | 12/12 | 0/12 |
| 160 ms sample gap | 12/12 | 0/12 |
| Jitter, noise and gap, 40 ms age limit | 12/12 | 0/12 |
Counts show whether each trial confirmed a stop at least once during detected loss.
The 40 ms group reached the threshold sooner in this setup. The older samples captured higher speeds early in deceleration, so the controller held a stronger opposing force. Each permanent-loss trial also had two control updates with F·v above 1e-12 W, using the actual velocity immediately before the command. At 200 ms of delay, the 40 ms age limit rejected every arriving local sample during loss. Accepting samples as old as 200 ms gave 79–80 positive-power updates per permanent-loss trial. None confirmed a stop, and final speeds ranged from 0.112 to 0.282 m/s.

With a 40 ms delay, seed 73 spent 0.318 s below the threshold before position control resumed and confirmed a stop at simulation time 1.022 s. Seed 107 accumulated only 0.296 s below the threshold, just short of confirmation. After a gap in local sampling, permanent-loss stopping distances grew to 20.99–27.43 cm, compared with 8.67–12.03 cm for ideal feedback with the same seeds.
High noise made confirmed stops temporary. All 12 permanent-loss trials with 0.08 m/s noise confirmed a stop, then crossed the threshold again while the position channel was still offline. For seed 97, confirmation came at 1.110 s and the slider exceeded 0.04 m/s again at 1.436 s. A first confirmation is therefore useful alongside a check for later motion.

Reproduce both rounds
From an empty working directory, download and unpack the study bundle and prepare Python 3.12. The output directory must be new. The script saves both rounds' compressed traces, manifests and independent audit JSON. Study bundle · Pinned scene and controller
curl -fL https://huhohoo.com/research/mujoco-dropout-braking/study.zip -o study.zip
unzip study.zip -d study
git clone https://github.com/VirtualSelect/hohoo-embodied-agent.git hohoo-embodied-agent-study
git -C hohoo-embodied-agent-study checkout --detach 335e756bb7e86ded9128b7c9b978636a4069fa61
python3.12 -m venv .venv
.venv/bin/python -m pip install 'mujoco==3.3.7' 'numpy==2.2.6'
PYTHON="$PWD/.venv/bin/python" sh study/reproduce.sh hohoo-embodied-agent-study braking-replayTo redraw the figures from both sets of traces, install Matplotlib in the same environment.
.venv/bin/python -m pip install 'matplotlib==3.10.8'
.venv/bin/python -B study/plot.py --baseline braking-replay/dropout \
--robustness braking-replay/robustness --out braking-figuresThe local replays used macOS arm64, Python 3.12.14, MuJoCo 3.3.7 and NumPy 2.2.6. Each round produced byte-identical compressed traces and audit results on a repeat run. The two published audits include per-trial results and file hashes. Strategy comparison audit · Perturbed-feedback audit
Codex ran the simulations and independent audits and assisted with the write-up. The measurements apply to this frictionless slider, the fixed controller and the simulated sensor profiles. Hardware braking and sensor reliability require separate tests.
A note to your future selfBefore you move on, keep one thought of your own.
Your private reading note stays in this browser; it is never uploaded or published. Clearing browser data removes it, so export a copy to keep. This article’s translations share the same note.
Recommended next reading:MuJoCo braking and sustained low speed after observation loss →
Related study material
EXPLORE / Getting started with embodied AI
Focused reading. Use the prerequisites and published follow-ups above to choose what to read next.
Related content
- LAB / 044
Planar control tuning, observation loss and transfer
153 episodes and 306000 physics steps. The selected controller passes 7/18 holdouts; zero force coasts, and mass scaling lowers mean error without passing the velocity contract.
- PROJECT / 003
Hohoo Embodied Experiments
Two MuJoCo teaching scenes—pick-and-place and planar force control—record contracts, tuning, clearance and delayed-feedback outcomes, including failures.
View count unavailable