rticonnextdds-connector icon indicating copy to clipboard operation
rticonnextdds-connector copied to clipboard

read/take with n parameter (CON-25)

Open ilya1725 opened this issue 8 years ago • 3 comments

Several examples (in Python) presented in this repository use either read and take 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?

ilya1725 avatar Dec 09 '16 19:12 ilya1725

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?

gianpiero avatar Dec 13 '16 18:12 gianpiero

yes, it will.

ilya1725 avatar Dec 13 '16 18:12 ilya1725

Added to feature request CON-25

gianpiero avatar Jan 05 '17 21:01 gianpiero