User login

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.

This example introduces two features: Zero Copy Transfer over Shared Memory and FlatData Language Binding. These features enable the middleware to reduce the number of copies involved in sending a sample, resulting in lower latencies regardless of the sample size.

The Asynchronous WaitSet (AsyncWaitSet) is a specialization of the WaitSet that performs the wait asynchronously using one or more separate threads of execution. Additionally, the AsyncWaitSet dispatches the attached and active conditions upon wakeup.

With this example you’ll learn how to implement a generic ContentFilter to create ContentFilteredTopics or QueryConditions using lambda expressions. The code is completely generic and you can easily include it in your applications.

Some data-types are recursive in the sense that they contain members elements of the same data-type as the containing structure. A classic example is a Tree. While recursive data-types are not officially supported by RTI Connext DDS it is possible to use them in RTI Connext DDS 5.2. This example illustrates an approach to represent them utilizing some advanced features of rtiddsgen.

Sometimes, you may want a set of data for the same DataWriter to be presented to the receiving DataReader only after ALL the elements of the set have been received. In this example we illustrate how to use Group access_scope for the order in which samples are presented to the subscribing application.

This is a simple example that shows how to receive notifications about data becoming available using a Query Condition. QueryConditions use the same SQL-based filtering syntax as ContentFilteredTopics for query expressions, parameters, etc. Unlike ContentFilteredTopics, QueryConditions are applied to data already received, so they do not affect the reception of data.

Pages

RTI Community Portal Terms of Use

NOTICE: Any content you submit to the RTI Research Community Portal, including personal information, is not subject to the protections which may be afforded to information collected under other sections of RTI's Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via RTI Community Portal. RTI does not control the content posted by visitors to RTI Community Portal and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will RTI be liable in any way for any content not authored by RTI, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via RTI Community Portal. Read the complete Terms prior to use.