Skip to content
Skip to content
Modules RTI Connext DDS

RTI Connext DDS#

RTI Connext DDS connects a Holoscan application to a DDS databus. Publish and subscribe to strongly typed data with the DDS publish/subscribe model, so independent Holoscan applications and non-Holoscan systems can exchange data without point-to-point connections maintained by each application.

Package info#

Modulerticonnextdds-holoscan-module
GitHub repositoryrticommunity/rticonnextdds-holoscan-module
Version0.1.0
C++ namespacerti::holoscan::dds
Holoscan SDK5.0.0 EA3
RTI Connext DDS7.7.0
CUDA13
Platformsx86_64, aarch64. IGX Orin is not supported, because it does not provide CUDA 13.
LanguagesC++. Python bindings are not included.
LicenseRTI License, in the repository. A Connext runtime license is separate.
MaintainerRTI Real-Time Innovations

Operators#

Quick Start#

Installation#

No Debian package is provided. Build and run the prototype in Docker using the RTI quick start.

No Python package or bindings are provided. Use the C++ operators in the Docker development environment.

No Yocto recipe is provided. This prototype is built, tested, and run in Docker; see the RTI requirements.

The container needs a Connext rti_license.dat, bind-mounted read-only at runtime. Keep the license out of the image and source control. Request a key from the RTI license page.

Example Usage#

Publish on domain 42 and topic RobotState. This fragment assumes an existing graph, generated Telemetry DDS type, and application-defined TelemetryAdapter.

C++
#include <rti/holoscan/dds/publisher.hpp>
// ...
namespace dds = rti::holoscan::dds;
auto publisher = graph.op<dds::PublisherOp<Telemetry, TelemetryAdapter>>(
    "publisher", dds::EndpointConfig{.domain_id = 42, .topic_name = "RobotState"});
graph.add_flow(source->output, publisher->input);
// ...

Python bindings are not included. Use the C++ example or exchange compatible DDS data with a separate Python application.

Docs#

PublisherOp#

PublisherOp<DdsType, Adapter> publishes Holoscan payloads to a DDS topic. Each activation receives a graph payload on input, converts it to the generated DDS type through the application's adapter, and writes it with a Connext DataWriter. The operator owns the participant, topic, writer, QoS, and their lifecycle.

Configure it with an EndpointConfig:

Parameter Default What it sets
domain_id 0 DDS domain. Only applications on the same domain discover each other.
topic_name none Topic to publish to. Always set it.
qos_file HoloscanConnextQos.xml XML file the quality-of-service profile is loaded from
qos_profile HoloscanConnext::ReliableKeepAll Profile within the XML library
wait_for_reader true Make a publisher wait for a matched reader at startup
reader_match_timeout 10 s How long a publisher waits for that match
acknowledgment_timeout 5 s How long a publisher waits for acknowledgment at shutdown

Remarks. A Connext runtime license is required. A writer and reader exchange data only when domain, topic, type definitions, and requested and offered QoS are compatible and discovery can reach the peer. Startup matching and shutdown acknowledgment waits are bounded by the configured timeouts. The application must provide Adapter::to_dds; the module does not generate payload conversions.

SubscriberOp#

SubscriberOp<DdsType, Adapter> brings samples from a DDS topic into the Holoscan graph. It owns a Connext DataReader and uses a notification source to wake the scheduler when data arrives, rather than polling. An activation takes up to the configured number of samples, converts them through the application's adapter, and emits the resulting graph payloads.

Configure it with an EndpointConfig:

Parameter Default What it sets
domain_id 0 DDS domain shared with the publisher
topic_name none Topic to subscribe to. Always set it.
qos_file HoloscanConnextQos.xml XML QoS configuration file
qos_profile HoloscanConnext::ReliableKeepAll Profile within the XML library
max_samples_per_activation 32 Maximum samples emitted in one activation

Remarks. Matching C++ type names are not sufficient: both endpoints must generate compatible type metadata from compatible IDL and use compatible QoS. The adapter must supply the reverse DDS-to-Holoscan conversion. The activation bound limits how much received data is processed at once; account for incoming rate and buffering when choosing it. This is a C++ prototype and requires a Connext runtime license.

Payload adapters#

Your application generates a DDS type from IDL and supplies an adapter between that type and the Holoscan payload:

C++
// ...
struct TelemetryAdapter {
  using holoscan_type = std::uint32_t;
  static Telemetry to_dds(holoscan_type index) {
    Telemetry sample;
    sample.sensor_id = 7;
    sample.sample_index = index;
    return sample;
  }
};
// ...

A publisher uses to_dds; a subscriber needs the reverse conversion. Tensor adapters also declare the dtype, rank, memory kind, and bounds required by the graph compiler. The module does not generate the adapter. Keep generated IDL types, adapters, companion schemas, and tests consistent. See the operator documentation.

Runtime and support#

This is an engineering prototype for SDK 5.0.0 EA3, not a packaged production module. The host needs neither Connext nor Holoscan installed when using the Docker workflow.

The container profile shares host IPC and process namespaces to enable Connext shared-memory transport between containers and host applications. Use a deployment-specific transport configuration when you need stronger isolation.

For the Connext SDK, licensing, or support, contact RTI at holoscan@rti.com.

Examples#

Example What it shows
connext_shapes_holoviz Generates a shape locally, publishes it, subscribes to the Square, Circle, and Triangle topics, and displays local and received samples with Holoviz
shapes_demo_flatbuffers Separate publisher and subscriber applications that exchange a typed FlatBuffers payload over DDS rather than an in-process connection

Both use the DDS type from the standard RTI Shapes Demo, so they interoperate with it.

All modules