Skip to content

When fresh timestamps hide frozen sensor data (and how I fixed it)

ROS Discourse — Community updates1marunigno-ship-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.

Repository: GitHub - marunigno-ship-it/QERRA-v2-classical: Deterministic supervisory velocity gate & reflex companion for autonomous mobile robots in ROS 2 Jazzy. Enforces dynamic stopping envelopes, fail-closed recovery, and hash-chained flight logging, with layered ethical deliberation research. · GitHub

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. :blush:

Source notes

  1. When fresh timestamps hide frozen sensor data (and how I fixed it)↩
Source evidence

Reported by the source; not independently verified.

Environment
Simulation[2]
Gate cycles
439[4]
Webots run duration
14.05 seconds[4]
HSR status unavailable duration
4.032[5]
Reset attempt rejection duration
5.024[5]
HSR stream recovery completion time
7.2[4]
Gate reaching AWAITING_RESET time
8.22[4]
Scripted reset acceptance time
8.32[4]
Gate computation latency p50
1.07[3]
  1. 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
    Exact source↩
  2. l 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,
    Exact source↩
  3. sists. 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 contro
    Exact source↩
  4. 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 per
    Exact source↩
  5. 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. Repository: GitHub - marunigno-ship-it/QERRA-v2-classical: Deterministic supervisory velocity gate & reflex companion for autonomous mobile robots in ROS 2 Jazzy. Enforces dynamic stopp
    Exact source

Automatically extracted; no manual editorial approval recorded.

Article details
Signal

The author demonstrates a software fix for a specific inconsistency between Webots simulation telemetry timestamps and ROS 2 HSR sequence IDs, showing how a supervisory gate detects frozen perception streams using synthetic data in a deterministic test environment.

Timezone · UTC

Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).