RTI Tool to simulate topic pub/sub?

2 posts / 0 new
Last post
Last seen: 1 year 3 months ago
Joined: 04/22/2019
Posts: 5
RTI Tool to simulate topic pub/sub?

I have a topic containing a struct that leverages inheritance. I would like to simulate sending this topic to a receiver who only has the base struct in its IDL for the topic.

I'm basically trying to simulate the shapes demo (extended shapes publisher / base shapes subscriber), but I would like to see the messages (and values) of the topics sent and received. Is there a tool for that?



Howard's picture
Last seen: 1 day 3 hours ago
Joined: 11/29/2012
Posts: 574

Well, there's a variety of methods to send the Topic.  You can't "simulate" sending data, but you can send "simulated data".  But the application sending the data can easily be generated either with compiled or scripted programming.

I'm not sure what you mean by "see the values of the topics sent" in terms of simulation.  If you already have an application that can receive the data, the application itself should be able to show that the data was sent.  However, there is a development tool that RTI provides, RTI Admin Console, as a part of the Connext Professional SDK, that you can use to subscribe to and display the values of any DDS Topic independently of a subscribing application.

Unfortunately, at this time, there is no "tool" to send data.  As stated, you have to use an user-coded application.  But the "rtiddsgen" code generator that you need to use to generate the type support code from an IDl that defines your data type, can be directed to generate example applications that publish or subscribe to the data type defined in the IDL.  You can use the "-example <platform>" argument, and rtiddsgen will output source code (in which ever language you want using the "-language <C|C++|C++11|Java>" argument) as well as the builld files for the platform of choice.


Example platforms would be x64Linux4gcc7.3.0 or x64Win64VS2017, etc.  You can run "rtiddsgen -help" to get a list of all arguments.

You can also use a scripting language like Python or Lua to create scripts that publish simulated data.  You can use RTI Connector with Python, Lua or Javascript,




Or if you prefer to work directly in python, RTI Labs offer an experimental (aka alpha) version of a full Python API for DDS.