﻿# ROS deadline and liveliness: a missed sample does not identify a dead publisher

Keep sample-period violations and publisher-liveliness events separate in robot telemetry; either signal needs context before becoming a hardware diagnosis.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/robotics-qos-deadline-liveliness-distinct-monitor-events/
Language: en

## A single offline badge hides different failures

A robot dashboard turns a sensor red after a deadline event and reports that its publisher process died. The participant may still be alive while its acquisition loop has stopped producing data. Conversely, regular application activity elsewhere does not establish that this sensor is delivering useful measurements. A monitor needs to retain what was observed before assigning a cause. Otherwise restarting a healthy transport process can conceal the acquisition fault and erase useful evidence about the original silence.

## Deadline describes the expected data cadence

The [Kilted QoS guide](https://raw.githubusercontent.com/ros2/ros2_documentation/kilted/source/Concepts/Intermediate/About-Quality-of-Service-Settings.rst) distinguishes offered deadline missed at the publisher from requested deadline missed at the subscription. These refer to the expected interval for publishing or receiving samples. Keep the event side in telemetry: a subscriber observation alone does not isolate acquisition from transport or reception. Also preserve the configured duration. An event without its contract cannot explain whether the source violated the application’s intended periodic behavior.

## Liveliness has its own assertion mechanism

The reviewed [Fast DDS policies](https://fast-dds.docs.eprosima.com/en/latest/fastdds/dds_layer/core/policy/standardQosPolicies.html) describe liveliness in terms of assertions and a lease duration. Automatic and manual modes do not provide identical application evidence. In particular, maintaining liveliness need not mean a new sensor sample arrived within its deadline. Record the selected kind, relevant endpoint and lease alongside the event. Do not infer that automatic middleware activity validates the camera capture loop, or that an application assertion validates the physical contents of its messages.

## Suppress data while preserving the participant

Propose a passive source with explicit compatible policies and separate control over sample publication and liveliness assertions. Pause samples while retaining the selected liveliness behavior, then interrupt assertions in a separate case. Log deadline and liveliness events without collapsing their classes. Keep a normal periodic run as a control and declare which middleware exposes each event. No publisher or sensor was run for this article. The expected distinction is a protocol test proposal, not a reported timing result.

## Recovery needs fresh useful evidence

After a liveliness recovery, require the application’s own conditions for accepting sensor data again. A sample may have an old acquisition stamp, an invalid measurement or the wrong device identity. Likewise, a deadline event need not trigger the same response as lost liveliness. Define the downstream response according to the sensing dependency, while keeping any physical stop decision within its separately qualified control design. These telemetry events are not, by themselves, a certified emergency-stop mechanism or a diagnosis of a failed component.

## Retain the event rather than inventing the cause

[Sacred heartbeat interpretation](/journal/fg2-sacred-heartbeat-hard-failure-terminal-state/) explains another liveness-evidence boundary. [Remaining RPC deadlines](/journal/guide-grpc-deadline-hop/) concern a different use of the word deadline: request completion budgets. For robot topics, retain sample cadence, liveliness assertions and application measurement acceptance as separate observations. A useful incident report can then state which contract failed and which causes remain unresolved, without treating every silence as process death or every living participant as a healthy sensor.
