Hello all,
The RTI Manual is confusing. It says take() removes the samples from the datareader queue and from DDS Connext. But what does that mean if:
- I have two data readers listening on the same topic? Does take remove the data also from the other data reader if I apply it to one.
- What happens with different publishers / subscribers?
- Or is it even domain wide?
Best regards,
Andreas
Hi,
I agree this is confusing. The DataReader
take()
operation only affects that DataReader itself.In Connext DDS each DataReader has its own SampleHistory Cache. These is where all the samples received by that DataReader are stored along with meta-data like the SampleInfo (who sent the sample, the sequence numbers, timestamps, statuses, etc.).
If there are two DataRerader listening to the same Topic then each has its own separate SampleHistory cache. This is true even if these two DataReaders are in the same computer or even on the same process. Consequently if the two DataReaders need to receive the same sample (which is not always the case as they could have different content filters, time filters, etc.) then the Sample (and SampleInfo) is copied to each of the respective DataReader SampleHistory caches. So the fact that one DataReader takes the sample does not affect the others at all.
Gerardo