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: 5.2.0. To download examples for older versions of RTI Connext DDS, checkout the appropriate branch on Github.

Browse Examples

This example shows how to access structs nested in a dynamic data object to get/set their values.
3856 reads — 0 comments
This second example on Keyed Data shows how the Ownership QoS interacts with the registration, unregistration, and disposal of instance of multiple DataWriters. It also illustrates how the on_data_available callback on the DataReader can delegate to ther handlers based on instance state changes, and explains filtering mechanisms to read only certain keys.
3894 reads — 0 comments
Built-in Topics allow us to access some relevant information about Connext DDS entities, such as the access to application specific data in discovery. This example shows how USER_DATA QoS for security during discovery phase.
6373 reads — 0 comments
This example shows the combined use of Content Filters with the Deadline QoS, which specifies the updates you expect for a particular instance within a given period of time.
3693 reads — 0 comments
In this example we illustrate how to use the Partition QoS, which provides a way to control which DataWriters will match—and thus communicate with—which Data Writers.
7582 reads — 0 comments
This example illustrate how to use keyed data. In particular, in this example a single DataWriter creates three instances differentiated by the field "code", which is the field used as key.
4388 reads — 0 comments
This example illustrates how to create simple DDS applications for prototyping using Lua in RTI Prototyper. This is especially interesting because it does not require generating data types from IDL or compiling code.
5628 reads — 1 comment

Pages