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

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.
5187 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.
6587 reads — 1 comment
get_publishers() allows the application to access all the publishers the participant has.
3142 reads — 0 comments
Connext uses the discriminator field of the struct to decide what field in the struct is actually sent on the wire. In this example we illustrate how to access the discriminator of a Union using the Dynamic Data API.
6312 reads — 1 comment
This is a simple example that shows how to receive notifications about data becoming available using a StatusCondition. This is the most efficient way to use WaitSets to be notified that you have new data.
13700 reads — 0 comments
In RTI Connext DDS, you have the option to query for data that is already in the DataReader's queue using a QueryCondition object. This lets you retrieve data from the queue based on the values of one or more fields inside of that data.
4525 reads — 0 comments
This example illustrates how to use the RTI Pluggable Transport API. Our custom FILE transport uses regular files for communication, where each address/port maps to a file in the file-system.
6589 reads — 0 comments

Pages