Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dds Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-dds-knowledge-patch)
---
name: dds-knowledge-patch
description: Data Distribution Service (DDS)
version: "DDSI-RTPS 2.5"
license: MIT
metadata:
author: Nevaberry
---
# Data Distribution Service (DDS)
Load this skill when working on DDS endpoint matching, status handling,
RTPS discovery and repair, implementation configuration, or ROS 2 RMW support.
Use the quick references below and the topic files for detailed guidance.
## Reference index
| Reference | Topics |
| --- | --- |
| [Core data access and QoS](references/core-data-and-qos.md) | Status counts, latency budget, destination order, liveliness, partitions, group metadata |
| [Implementation configuration](references/implementation-configuration.md) | Cyclone DDS configuration and discovery, Fast DDS discovery and profiles, Connext DDS peer acceptance |
| [ROS 2 RMW](references/ros2-rmw.md) | Discovery-dependent QoS, optional capabilities, loaned messages, shared-memory delivery |
| [RTPS discovery and reliability](references/rtps-discovery-and-reliability.md) | Submessage context, byte order, locators, participant removal, sequence and fragment repair |
## Endpoint matching and QoS
### Latency budget
`LATENCY_BUDGET` is a scheduling hint and participates in
requested-versus-offered compatibility. If discovered endpoints stay
unmatched, check the last incompatible policy in the requested or offered
incompatible QoS status.
### Destination order
`DESTINATION_ORDER` participates in requested-versus-offered compatibility.
When relying on `BY_SOURCE_TIMESTAMP` across writers, use comparable writer
clocks: DDS orders by timestamps supplied by or assigned at the writers.
### Liveliness
DDS checks both the assertion kind and lease duration when matching
`LIVELINESS`. Kinds are ordered from automatic to manual by participant to
manual by topic.
The Cyclone DDS discovery guide documents `AUTOMATIC` liveliness. Verify
support in the deployed release before configuring either manual kind.
### Partition matching and updates
For wildcard matching, use a literal on one side, such as publisher partition
`plant/east` with subscriber partition `plant/*`.
Changing `PARTITION` on an enabled publisher or subscriber can add or remove
matches for its endpoints.
### Publisher and subscriber metadata
Set `GROUP_DATA` on a publisher or subscriber to attach opaque application
bytes that DDS can propagate through discovery.
## Discovery and implementation configuration
### Cyclone DDS configuration scope
`CYCLONEDDS_URI` can select multiple resources, including files and inline XML.
`Domain/@Id` selects which participant domain receives settings; `any`
applies them across domains.
```sh
export CYCLONEDDS_URI='<CycloneDDS xmlns="https://cdds.io/config"><Domain Id="any"/></CycloneDDS>'
```
### Cyclone DDS unicast peers
Configure `Discovery/Peers/Peer` addresses to seed SPDP when multicast is
unavailable. If unicast discovery fails, check reachability in both directions
and the participant-index search limit used with the DDSI port mapping.
```xml
<CycloneDDS xmlns="https://cdds.io/config">
<Domain Id="any">
<Discovery>
<Peers>
<Peer Address="192.0.2.10"/>
</Peers>
</Discovery>
</Domain>
</CycloneDDS>
```
### Cyclone DDS discovery service
Cyclone DDS offers a discovery service in supported releases. Verify support
across implementations before using it for centralized discovery in a mixed
deployment.
### Fast DDS static and manual discovery
Static EDP gets endpoint definitions from XML. Configure consistent static
IDs and endpoint definitions on all participating sides.
Manual discovery APIs let the application assert selected remote entities
directly.
### Fast DDS default profiles
`FASTDDS_DEFAULT_PROFILES_FILE` selects a file for automatic loading.
Profiles marked `is_default_profile="true"` can affect ordinary entity
creation. Default filename lookup varies by release; supported releases
provide `SKIP_DEFAULT_XML` to disable default-profile loading.
```sh
export FASTDDS_DEFAULT_PROFILES_FILE=/etc/fastdds/profiles.xml
```
### Connext DDS peer acceptance
Initial peers specify where discovery probes are sent. Discovery QoS
`accept_unknown_peers` controls whether participant announcements from
addresses outside the configured peer set are accepted.
### Visible participants but missing endpoints
SPDP advertises metatraffic locators for discovery, default locators, and
built-in endpoint availability. Check for reliable SEDP publication and
subscription announcements over the discovery path, then verify reachability
of advertised user-data locators separately.
### Participant removal
When the participant lease advertised in SPDP expires, or the participant
explicitly disposes of its discovery data, remove the remote participant proxy
and its dependent endpoint matches.
## Status handling and reliable delivery
### Status counts across wakeups
Reading a status can consume its count change. Listener dispatch or taking
data can clear the relevant status flag. Track occurrences across `WaitSet`
wakeups using the cumulative count when the status provides one.
### RTPS submessage decoding
Decode each submessage header and its fields using that submessage's
endianness flag. Apply `INFO_SRC`, `INFO_DST`, and `INFO_TS` to update source,
destination, and timestamp context for subsequent submessages.
The serialized payload has its own encapsulation identifying representation
and byte order.
### Sequence gaps and duplicate repair messages
Use `GAP` to mark writer sequence numbers a reader should stop requesting,
including changes filtered out for that reader or already removed from writer
history. `ACKNACK` uses a sequence-number bitmap to report missing changes.
Control-message count fields distinguish newer messages from duplicates.
### Fragment repair
When a sample spans `DATA_FRAG` submessages, `HEARTBEAT_FRAG` and `NACK_FRAG`
support repair of missing fragments within that writer change.
### Cyclone DDS reliable writer deletion
Writer linger can defer final deletion of a reliable writer to give readers
time to acknowledge pending data. Delete writers in an orderly shutdown to
give that mechanism a chance to run before process exit.
## ROS 2 RMW
### Discovery-dependent QoS
Where supported, `BEST_AVAILABLE` selects QoS policy values based on discovered
endpoints. `SYSTEM_DEFAULT` delegates policy values to the active RMW; set
explicit values when behavior needs to stay consistent across implementations.
### Optional capabilities
Check RMW support for unique network flow requirements and content filtering,
and handle unsupported results. When switching implementations, verify support
for loaned messages and shared-memory delivery on the new backend.