How to specify buffer size in roscpp? [closed]
I am having a similar problem described here and here. The proposed solution is to increase the buf_size
argument in the creation of the subscriber. However, I am using roscpp and there is no buf_size
argument for NodeHandle::subscribe
.
How do I increase buf_size
in roscpp so that my subscriber with queue size 1 can always get the most up-to-date data?
The answer to your question is in the last comment to the answer of the first question you link to. :-) if this is enough, please consider closing this as a duplicate
@mgruhler wrote:
Just to avoid any confusion, this is the comment he refers to:
@ahendrix wrote: