Open ilya1725 opened 7 years ago
Hello @ilya1725 ,
You are right: right now we call take or read passing max_sample = DDS_LENGTH_UNLIMITED. We could expose a take(n) and a read(n) that would allow the user to specify max_sample.
Would that work for your use case?
yes, it will.
Added to feature request CON-25
Several examples (in Python) presented in this repository use either
read
andtake
functions. Generally, those functions will absorb all samples in the queue. Is there a way to use something like take_next_sample? Or perhaps use read, but then extract from the list of samples the ones that weren't read before?