Robotic systems often publish the same logical state from more than one process. A primary controller may report the commanded mode while a standby controller is ready to take over. Two localization pipelines may publish a pose estimate for the same robot key. A simulator may run beside hardware during commissioning. Data Distribution Service (DDS) offers EXCLUSIVE OWNERSHIP to select one DataWriter for each keyed data instance, and OWNERSHIP_STRENGTH supplies the number used in that arbitration. This is useful redundancy machinery, but it is not a verdict about whether the selected value is physically correct.
What the standard actually selects
DDS OWNERSHIP has SHARED and EXCLUSIVE kinds. Under EXCLUSIVE ownership, the DataReader performs arbitration for each data instance identified by its key. The DataWriter with the highest ownership strength becomes the owner for that instance. A writer's strength is the value of its OWNERSHIP_STRENGTH QoS policy, and that policy matters only when ownership is EXCLUSIVE.
The per-instance rule deserves emphasis. If a topic carries states for robot-17 and robot-23 as separate keyed instances, one writer can own robot-17 while another owns robot-23. A high-strength writer does not automatically suppress every sample from weaker writers on the topic. The DDS 1.4 specification explicitly notes that a subscriber can receive values from a lower-strength writer for instances that the higher-strength writer has not set.
Ownership also depends on DDS lifecycle and liveliness behavior. The current owner can lose ownership after it unregisters an instance or loses liveliness. A higher-strength writer can take over when it writes the instance. Equal-strength cases are resolved by the service according to its rules. Disposing an instance is different from unregistering it: disposal says the instance no longer exists, while unregistering relinquishes the writer's relationship and can allow another writer to own the instance. Treat those operations as part of the state model rather than interchangeable failover switches.
What strength does not prove
OWNERSHIP_STRENGTH is an integer policy value, not a measurement of sensor confidence, clock freshness, calibration quality, command authority, or physical health. The middleware compares values and chooses a writer. It does not inspect a robot pose for kinematic plausibility, verify a controller's safety state, or determine whether a timestamp was produced by a synchronized clock.
Consider two localization writers for the keyed instance robot-17. Writer A has strength 100 and last calibrated three hours ago. Writer B has strength 50 and has a fresh, well-conditioned estimate. Exclusive ownership still favors A while A remains eligible. If A publishes NaNs, an impossible jump, or a stale source timestamp, the strength setting alone does not reject that data. The application must perform those checks.
The reverse problem appears during failover. A standby writer with lower strength may be healthy and publishing continuously, yet readers will not use its values while the stronger owner remains eligible. If the primary process is alive at the DDS level but its upstream sensor has frozen, liveliness may stay asserted. There may be no ownership transition even though the application data is unusable. Heartbeats inside the payload, deadlines, source timestamps, validity flags, and domain-specific plausibility tests provide evidence that ownership arbitration does not.
Design a clear authority contract
Start by defining the keyed instance. Decide whether ownership is per robot, per actuator, per trajectory, or per subsystem. The key determines the arbitration boundary. A topic-wide mental model will produce surprises when different writers own different instances.
Then document what strength means operationally. A simple convention might assign 100 to the designated primary and 50 to the warm standby. Avoid calculating strength directly from a noisy confidence score unless every participant implements the same bounded and stable policy. Rapid changes can cause ownership churn, and the number still does not validate content.
Define explicit eligibility conditions outside the strength comparison. For a localization sample, those conditions may include maximum source age, monotonic sequence behavior, finite numeric fields, covariance bounds, frame identity, and a mode flag showing that calibration is valid. For a command source, require authenticated authority, a command epoch, an operation identifier, and a current lease issued by the robot supervisor. Reject data that fails these checks even when it comes from the owner selected by DDS.
Plan failover transitions as observable events. Monitor liveliness changes, deadline misses, publication matches, and application health. Log the old owner, new owner, keyed instance, strengths, last accepted source timestamps, and reason for accepting the new stream. A short quarantine window may be appropriate while the standby establishes a fresh baseline, but that is an application decision, not a guarantee of the ownership policy.
Test the uncomfortable cases
A useful test matrix goes beyond stopping the primary process. Keep its DDS writer alive while freezing its sensor input. Send malformed or stale samples from the high-strength owner. Have two writers use equal strength. Unregister an instance in one test and dispose it in another. Let the stronger writer publish only some keys. Restart writers with persisted configuration and verify that their intended strengths return. Observe which values the reader sees and which application checks reject them.
Also verify QoS compatibility. The offered and requested OWNERSHIP kind must match. A reader requesting EXCLUSIVE ownership will not simply reinterpret a SHARED writer configuration as exclusive arbitration. Surface incompatible-QoS status rather than diagnosing the resulting silence as a network failure.
The practical rule is compact: DDS Exclusive Ownership answers “which eligible DataWriter supplies this keyed instance?” OWNERSHIP_STRENGTH influences that selection. Neither answers “is this robot data true, fresh, authorized, or safe to act on?” Build those judgments from explicit application evidence, and treat ownership as one layer in a wider authority and validation design.