printing topic values using rtiddsspy

2 posts / 0 new
Last post
Offline
Last seen: 2 years 6 months ago
Joined: 12/06/2021
Posts: 17
printing topic values using rtiddsspy

Is it possible to get in the console values from a specific topic using rtiddsspy tool (http://community.rti.com/rti-doc/510/ndds/doc/html/api_cpp/group__DDSNddsspyModule.html)? 

Offline
Last seen: 8 months 5 days ago
Joined: 01/16/2015
Posts: 3

Hi Emilio,

Yes, you can use rtiddsspy to see data from a single topic.  To see all the command line options, use "rtiddsspy -help".  Some of the most useful switches:

-printSample: Shows the values of the fields in each sample (up to a certain point, rtiddsspy can't show deeply nested or complex topics)

-topicRegex <regex> : Allows you to view a single topic or a group of topics.  For instance, "-topicRegex MySpecificTopic" will show just that topic, while "-topicRegex My*" will show all topics starting with "My"

-typeRegex <regex> : Just like topicRegex, but filters on specific data types

-timeFilter <seconds> : Applies a time based filter to the topic.  Useful with -printSample if the data is coming in too fast.

-John-