Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orb_advertise_multi: failed to set queue size #9334

Closed
stmoon opened this issue Apr 19, 2018 · 4 comments
Closed

orb_advertise_multi: failed to set queue size #9334

stmoon opened this issue Apr 19, 2018 · 4 comments

Comments

@stmoon
Copy link
Contributor

stmoon commented Apr 19, 2018

Hi,

I found that there is a error when booting.

[uorb] orb_advertise_multi: failed to set queue size

However, I don't understand what's the meaning.

Could you tell me the meaning?

Thanks

@stmoon stmoon changed the title [uorb] orb_advertise_multi: failed to set queue size orb_advertise_multi: failed to set queue size Apr 19, 2018
@bkueng
Copy link
Member

bkueng commented Apr 19, 2018

It happens if you have multiple publishers of the same topic (and instance) and they try to set different queue sizes: once, set the queue size cannot be changed, as it would lead to race conditions.
Make sure all your advertisers use the same queue size.

@stmoon
Copy link
Contributor Author

stmoon commented Apr 20, 2018

Thanks @bkueng

I heard that uORB can cover multiple publishers using instance even though I published same topic.

Should I use just one publisher for a topic?

To solve this problem, which function can I use?

Thanks in advance

@bkueng
Copy link
Member

bkueng commented Apr 20, 2018

Yes, depending on the use-case you should use multiple instances to separate the data from different publishers - we do that for example for multiple gyro sensors.
There is documentation here: https://dev.px4.io/en/middleware/uorb.html#multi-instance

@stmoon
Copy link
Contributor Author

stmoon commented Apr 21, 2018

Thanks... @bkueng

I understand it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants