Examples

This page contains examples on how to use specific RTI Connext DDS features. You may browse the source code for the examples here as well as download individual examples or the complete set in a zip or tar.gz file. These examples are maintained in the RTI Community GitHub account.

You may browse and contribute enhancements or additional examples directly on GitHub. Your contributions will be reviewed and as soon as they are approved they will automatically be included in the Community Portal examples section. You can find instructions on how to contribute new examples in our RTI Connext DDS Examples Wiki.

Download Examples

These bundles contain examples that have been built and tested against the current version of RTI Connext DDS. To download examples for older versions of RTI Connext DDS, checkout the appropriate branch on Github.

Browse Examples

A Content Filtered Topic is a Topic with filtering properties. It makes it possible to subscribe to topics and at the same time specify that you are only interested in a subset of the Topic's data. This example explains how to use the built-in StringMatch filter that can be used with ContentFilteredTopics.
10534 reads — 3 comments
This example illustrates how to use coherency QoS to force writes to be grouped on the receiving side. Suppose the reader is tracking the state of an object with many fields. If changes to fields occur relatively infrequently, it is inefficient to send the entire state on every update. Instead, we send an ID for the object, an ID for the field to be updated, and the new value.
5461 reads — 0 comments
Batching can be used to decrease the amount of communication overhead associated with the transmission and acknowledgement of small samples, in order to increase throughput. In this example we explain how to use the batching QoS setting as well as "Turbo Mode", an experimental feature that adjusts automatically the number of bytes in a batch.
4629 reads — 0 comments
This example illustrates the three different approaches RTI Connext DDS implements to store data persistently. That is, Durable Write History, Durable Reader State, and Persistence Service.
6230 reads — 0 comments
Unlike Content Filter Topics, Custom Content Filters allow the use of non-relational operations between topic members, i.e. a computation involving topic members. In this example we create a Custom Content Filter takes an expression "%0 %1 x", where %0 is an integer, %1 is "divides" or "greater-than", and the "x" is the field we are comparing in the sample. The filter lets samples through if the parameter[0] divides or is greater than x, respectively.
5121 reads — 0 comments
A FlowController is the object responsible for shaping the network traffic by determining when attached asynchronous DataWriters are allowed to write data. This example shows how to create a custom flow controllers to manage an asynchronous publisher.
4140 reads — 1 comment
Usually DataReaders receive data in the order that it was sent by a DataWriter. In addition, data is presented to the DataReader as soon as the application receives the next value expected. In this example we illustrate how to control the scope of the order in which samples are presented to the subscribing application.
3534 reads — 0 comments

Pages