Skip to content

How to clear the queue in publisher? #2355

Closed Answered by jerry-xie-000
jerry-xie-000 asked this question in Q&A
Discussion options

You must be logged in to vote

I set the subscriber queue by 10, and the errors gone.

    iox::popo::SubscriberOptions subscriberOptions;
    subscriberOptions.queueCapacity = 10U;
    iox::popo::UntypedSubscriber subscriber({"Radar", "FrontLeft", "Object"}, subscriberOptions);

I found the default value is SubscriberChunkQueueData_t::MAX_CAPACITY. It seems it will never overflow when full.

Thank you.

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@elfenpiff
Comment options

Comment options

You must be logged in to vote
1 reply
@elfenpiff
Comment options

Comment options

You must be logged in to vote
1 reply
@elfenpiff
Comment options

Comment options

You must be logged in to vote
5 replies
@elfenpiff
Comment options

@jerry-xie-000
Comment options

@elfenpiff
Comment options

@jerry-xie-000
Comment options

Answer selected by jerry-xie-000
@elBoberido
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants