Robot telemetry often arrives faster than every consumer needs. A joint-state writer may publish at 500 Hz while a dashboard needs 10 Hz. A temperature reader may want one update per second even though the controller produces samples every 20 milliseconds. DDS TIME_BASED_FILTER lets a DataReader declare a minimum separation between samples of interest for each keyed instance. It can reduce what that reader receives, but it does not reconfigure the DataWriter's publication loop.

The reader-side contract

The DDS 1.4 specification defines TIME_BASED_FILTER as a DataReader QoS policy. A reader sets minimum_separation to say that it wants to see at most one change for each instance during that interval. The rule applies separately to every keyed instance. If one topic carries 100 robot joints as distinct keys, each joint gets its own separation window; the policy is not necessarily one global topic-wide timer.

The policy identifies samples of interest to the reader. HISTORY and RELIABILITY then operate on the samples that remain after the filter. DDS explicitly allows a positive minimum separation with any HISTORY or RELIABILITY setting. For a reliable reader in steady state, when the writer stops producing samples for a period long compared with the separation interval, the service should guarantee delivery of the last sample.

TIME_BASED_FILTER also has a consistency relationship with DEADLINE. DDS requires the deadline period to be greater than or equal to minimum_separation. An inconsistent configuration fails when the entity is created or its QoS is set. This prevents a reader from demanding updates more frequently through DEADLINE than it has declared interest in through the filter.

What the filter does not control

The DataWriter still executes its configured application loop and calls write at its original cadence. A 500 Hz joint-state writer does not become a 10 Hz writer because one reader chooses a 100-millisecond minimum separation. Other readers can request different filters or no filter at all. The writer's CPU work, sensor acquisition, serialization, and local update behavior therefore cannot be assumed to fall in proportion to one reader's filtered delivery rate.

Network savings are implementation- and topology-dependent. Middleware can often use the reader's QoS information to avoid sending samples that reader has declared uninteresting, but an application should measure actual traffic rather than promise a fixed reduction. Multicast, shared transports, multiple readers, writer-side batching, and implementation architecture can change where filtering work occurs. The portable semantic promise is about the reader's interest and observed delivery, not a universal wire-rate formula.

Filtering is not resampling

A minimum-separation filter suppresses closely spaced changes; it does not compute an average, preserve extrema, interpolate a regular series, or apply an anti-aliasing filter. If a motor current spikes for two milliseconds between accepted samples, a slow reader may never see that peak. If the application needs a maximum, RMS value, variance, or energy over a window, calculate and publish that statistic explicitly.

The accepted samples may also be irregular in time. "At most one change every 100 ms" is an upper bound on frequency, not a promise of exactly 10 evenly spaced updates per second. The writer may publish irregularly, samples may be delayed, and the implementation may select among eligible changes according to its behavior. Always retain source timestamps and sequence information if the consumer must reason about age or gaps.

Design telemetry tiers intentionally

Use separate data products when consumers need different semantics. A high-rate joint-state topic can serve control and recording. A lower-rate state summary can publish a deliberately sampled snapshot for operator interfaces. A statistics topic can carry min, max, mean, and count over a defined window. TIME_BASED_FILTER remains useful for readers that only need fewer state changes, but it should not stand in for those transformations.

Size downstream queues for the filtered flow and the worst startup case. HISTORY depth and RESOURCE_LIMITS still determine how many samples can be retained. RELIABILITY can create backpressure or delivery work for samples of interest. A slow callback can fall behind even when the minimum separation looks generous if processing occasionally blocks for longer than the interval.

Monitor both sides of the boundary. At the writer, record actual write frequency, serialization time, and deadline or liveliness status. At the reader, record accepted sample rate per key, source age, inter-arrival distribution, sample rejection or loss status, and callback execution time. These measurements reveal whether a performance problem is publication, transport, filtering, queuing, or application processing.

A robot example

Imagine a topic keyed by joint_id. The controller writes positions at 500 Hz. A visualization reader configures minimum_separation to 100 ms, while a recorder uses zero separation and reliable history. The visualization should receive no more than one change per joint per 100 ms. The recorder can still receive the high-rate stream. The controller continues publishing at 500 Hz because its loop and the recorder's needs have not changed.

If the visualization needs to display the latest sample exactly every 100 ms, it can maintain the most recent accepted state and render on its own periodic timer. If it needs every peak torque, it requires a different published statistic or the unfiltered stream. If it uses DEADLINE, set that period consistently with its minimum separation and define how missing deadlines affect the UI.

Test observable semantics

Publish multiple keyed instances at known rates, then verify the maximum delivery frequency for each instance independently. Change one reader's minimum separation without touching another reader and confirm their streams differ. Stop the writer after a burst and verify the reliable steady-state last-sample behavior. Introduce source bursts around the filter boundary and observe which values arrive. Test an inconsistent DEADLINE and TIME_BASED_FILTER pair and ensure configuration fails visibly.

Finally, measure writer calls and wire traffic. The writer call rate should remain unchanged unless the application explicitly changes it. Traffic may decline, but record the implementation, transport, and reader population before drawing capacity conclusions.

TIME_BASED_FILTER is a reader interest policy: it limits how often a reader wants changes for each instance. It is not a writer throttle, a deterministic resampler, or a signal-processing operator. Treat those as separate design choices, and robot telemetry becomes easier to size and interpret.