TECHNOLOGY

ROS ExactTime: a duplicate stamp can replace a channel’s pending message

In this article
THE QUICK TAKE

Before a tuple completes, another event on the same channel and timestamp overwrites that channel’s slot in the reviewed ExactTime implementation.

A matched callback can conceal a replaced observation

A camera adapter emits distinguishable messages with the same header stamp while another input is delayed. The fusion callback eventually receives a matched tuple, and the application assumes every camera observation remained available for matching. That assumption is not guaranteed by a timestamp-keyed partial tuple. Inspect how repeated events occupy the same pending input slot before treating callback success as evidence of complete observation retention. This matters when a driver reuses stamps or an adapter rounds several acquisitions to the same value.

The pending map has a timestamp key and channel slots

In the reviewed C++ ExactTime source, add obtains a tuple from a map indexed by the extracted time. It then assigns the event to that input channel’s tuple slot. If another event has the same time and channel before completion, that assignment replaces the stored event. This is a code-path observation for the reviewed implementation, not a claim that every synchronizer, language binding or custom policy must behave identically.

Determine which timestamp extractor is actually used

The message traits show DefaultTimeGetter delegating to TimeStamp. Ordinary stamped messages use header.stamp, while specializations or a custom getter can change the selected time. Record that choice before analyzing collisions. A unique transport receipt event does not make repeated extracted timestamps unique. Conversely, changing to receipt time changes the association contract; it is not a neutral repair for defective acquisition stamps. Preserve the original source identity and timing when selecting a different matching key.

Use a deliberately incomplete tuple

Propose an isolated synchronizer fixture with distinguishable earlier and later messages on one channel sharing a stamp. Deliver both before the partner channel’s matching message, keeping queue capacity sufficient to avoid unrelated eviction. Inspect which payload reaches the completed callback. Compare with distinct-stamp and normal matching controls. No synchronizer or robot was run here. Acceptance requires explaining the selected payload and the missing earlier observation, rather than merely observing that a callback eventually fired with equal timestamps.

Do not infer replacement counts from tuple-drop events

The reviewed code exposes a drop callback for discarded tuples, but the same-slot assignment is a different operation. In the proposed incomplete-tuple case, that assignment does not itself report the overwritten event through the tuple-drop path. If complete observation accounting is required, compare identifiable input events with emitted tuples and explicit buffer outcomes. Increasing queue capacity does not create additional slots for the same channel within the same timestamp tuple. Resolve stamp generation or choose a qualified association policy instead of describing the replacement as ordinary queue overflow.

Retain timestamp identity with the association result

RH20T temporal alignment concerns another association rule. RDT observation availability addresses represented measurements. The ExactTime record should include extractor, stamp-generation assumptions, input identities and emitted payload identities. A completed tuple establishes the policy’s match, not lossless retention or physical simultaneity. Recheck the replacement fixture after changing the synchronizer revision or introducing an adapter that rounds, resets or synthesizes sensor timestamps.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles