[15488] question on unread_count. #2939
-
I have a BEST_EFFORT publisher which publish a topic every 20ms,and a BEST_EFFORT subscriber which process the message every 25ms. both of them have a sufficient history(255) and KEEP_LAST qos.
In my opinion, I would get 2 unread messages from the reader’s history about each 4 or 5 rounds on subscriber side. But when I print the unread_count, I found it always equal 1. In my case, i would like to process the unread sample(s) by
My question is why I get the unread count always equals 1? Is there a misuse or a misunderstanding of the interfaces? I'm using fastdds 2.4.1. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@hehenihao I would say that the History QoS of the DataReader is being configured as KEEP_LAST with a depth of 1. You could check the current value with How are you trying to load the profile you mention? |
Beta Was this translation helpful? Give feedback.
@hehenihao I would say that the History QoS of the DataReader is being configured as KEEP_LAST with a depth of 1.
You could check the current value with
data_reader->get_qos().history().depth
.How are you trying to load the profile you mention?