I've been using the java from 5.1.0 in order to basically create a subscriber for each topic found and dump the contents. After a few approaches that all worked to a degree, but required me to explicitly define every datatype I'm expecting and write listeners etc, I'm now trying to use the dynamic dds monitor (https://community.rti.com/index.php?q=filedepot_download/1655/20).
Now, the problem...
the java files generated by rtiddsgen had the option -notypecode enabled. So, in order to get past the "if (type_code ==null)" check, I'll need to generate the type_code using a factory (I assume)...How on earth do I do this? I have all of the datatypes, along with the associated typeSupport, DataReader, etc classes.
Any Ideas? I do still have the idl file, so I can regen them with the notypecode parameter not present, but as our team is using the notypecode version, we'd need to share all of the genned files, which is a pain.
I've generated the typecodes using rtiddsgen, and seem to be making solid progress. For more info on the previous post, When running the dynamic dds monitor it would return a type code of null, throwing the message "no type information".
Currently progress: I can dynamically get the information from a topic, but any attempts to cast it to a non-dynamic type are fruitless...I'm having to use the "print" function to get any data out...
EDIT: ...anyone know of a method to cast a dynamicdata object into an object based on a typecode?