# Screen capture for RTI and OpenDDS Interoperability Testing # IDL is simple: # On RTI side struct Test1 { double x; }; # on OpenDDS side module StockQuoter { #pragma DCPS_DATA_TYPE "StockQuoter::Quote" struct Quote { double x; }; }; # This test sends publishes 5 values of double - values are 1, 2, 3, 4, 5. # RTI to RTI test (note that due to startup handshake the first value is # not seen by the subscriber but all other values are correct.) mint17-1b> ./objs/i86Linux3gcc4.8.2/Test1_subscriber 211 5 RTI Data Distribution Service EVAL License issued to Lockheed Martin gthaker@atl.lmco.com For non-production use only. Expires on 15-Dec-2015 See www.rti.com for more information. Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 2.000000] Test1 subscriber sleeping for 4 sec... [x: 3.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 4.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 5.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... ^C mint17-1b> pushd 0 /proj/home/gthaker/DDS3/DDS/examples/DCPS/IntroductionToOpenDDS_double_only 1 ~/rti_workspace/5.2.0/examples/gthaker # RTI to OpenDDS Test - Note that invalid values are reported for variable "x" (a double.) mint17-1b> ./subscriber -DCPSConfigFile rtps_unicast.ini Subscriber: waiting for events QuoteDataReaderListenerImpl::on_subscription_matched QuoteDataReaderListenerImpl::on_liveliness_changed total 1 Quote: x = 5.30499e-315 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 2 Quote: x = 5.30758e-315 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 3 Quote: x = 5.31017e-315 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 4 Quote: x = 5.31147e-315 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. QuoteDataReaderListenerImpl::on_liveliness_changed QuoteDataReaderListenerImpl::on_subscription_matched ^C # # OpenDDS to OpenDDS, all values are correctly received. # mint17-1b> ./subscriber -DCPSConfigFile rtps_unicast.ini Subscriber: waiting for events QuoteDataReaderListenerImpl::on_subscription_matched QuoteDataReaderListenerImpl::on_liveliness_changed total 1 Quote: x = 1 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 2 Quote: x = 2 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 3 Quote: x = 3 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 4 Quote: x = 4 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 5 Quote: x = 5 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 1 INFO: reading complete after 1 samples. total 6 Quote: x = -1.74434e-41 SampleInfo.sample_rank = 0 SampleInfo.instance_handle = 5 SampleInfo.publication_handle = 4 SampleInfo.valid_data = 0 INFO: reading complete after 1 samples. QuoteDataReaderListenerImpl::on_liveliness_changed QuoteDataReaderListenerImpl::on_subscription_matched ^C mint17-1b> pushd 0 ~/rti_workspace/5.2.0/examples/gthaker 1 /proj/home/gthaker/DDS3/DDS/examples/DCPS/IntroductionToOpenDDS_double_only mint17-1b> # # OpenDDS to RTI test (incorrect values received for "x" (all zeros.) # mint17-1b> ./objs/i86Linux3gcc4.8.2/Test1_subscriber 211 5 RTI Data Distribution Service EVAL License issued to Lockheed Martin gthaker@atl.lmco.com For non-production use only. Expires on 15-Dec-2015 See www.rti.com for more information. Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 0.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 0.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 0.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 0.000000] Test1 subscriber sleeping for 4 sec... Test1 subscriber sleeping for 4 sec... [x: 0.000000] mint17-1b>