When fresh timestamps hide frozen sensor data (and how I fixed it)
The author identifies an inconsistency where Webots simulation advances telemetry timestamps while holding observation sequence IDs constant, allowing frozen sensor data to pass undetected by a ROS 2 HSR receiver.
I created this demonstration after finding an inconsistency in my own implementation.
The ROS 2 HSR receiver checked observation sequence IDs, but the asynchronous UDP path used by my Webots simulation only checked telemetry timestamps.
This meant that a frozen perception sequence could go unnoticed if timestamps continued advancing.
I wanted to correct that inconsistency and make sure Webots and ROS 2 used the same stream-integrity logic.
For Demo 10, I used a synthetic HSR producer that keeps sending timestamps while holding the observation ID constant. The shared receiver detects the repeated ID, latches the stream fault and makes the HSR status unavailable to the Supervisory Gate.
The Gate then responds as expected:
- 4.032 s: TRIP_HSR_INVALID; both wheel commands go to zero.
- 5.024 s: Reset attempt rejected while the fault persists.
- 7.200 s: Advancing CLEAR observations return and HSR stream recovery completes.
- 8.220 s: Gate reaches AWAITING_RESET.
- 8.320 s: Scripted reset accepted and movement resumes.
The Gate enforces five qualifying observations and at least 160 ms of observation-time progression for HSR recovery, followed by its separate one-second clear dwell and reset requirement.
The Webots run lasted 14.05 seconds, with 439 control cycles.
Recorded Gate computation latency was 1.07 ms p50, 2.77 ms p99 and 2.99 ms maximum. Host iteration intervals were 32.0 ms p50, 53.0 ms p99 and 148.3 ms maximum.
Offline replay reproduced all 439 Gate cycles bit-for-bit using gate_core.step().
A few limitations: HSR inputs were synthetic; I did not use a live camera or computer-vision model. The sequence check detects repeated or regressing observation IDs, not identical image content with newly generated IDs. This was tested in Webots on Windows 11, not on physical robot hardware. The resets were generated by the automated test harness, and the zero-velocity output is a software command, not a hardware emergency stop.
I made this demo because I wanted to close a gap between my two implementations and investigate a simple but important question: can a supervisory system distinguish fresh communication from progressing observations?
I’d be interested to hear how others approach observation freshness and sequence integrity at the boundary between perception pipelines and robot supervisory controllers.
Demo video:
AI collaboration note: I build this project closely alongside AI tools, which help with architecture, code, testing, and documentation. I drive the direction, test the builds, and take responsibility for the final project. I’m always mention this on my Discourse posts, still i’d rather have some kind of critique directly on the project and not on the fact that i’m using AI tools.