-
Notifications
You must be signed in to change notification settings - Fork 44
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
microros rclc executor allows 5 handles but not 6 #325
Comments
Hi @bryangd34, The issue here is that the default number of timers is set to 4 with the RMW configuration parameter Check this tutorial for more details: Memory management tutorial |
Hi @Acuadros95
Do you have any other suggestions I could try out please? |
How did you rebuild the library? Can you try with the parameter set on a clean build? To make sure that the change is applied, you can check the defined value under the library include #define RMW_UXRCE_MAX_GUARD_CONDITION 5 You should also check the return values from the executor methods, they will return an error code if the timer could not be included on the spin. |
Thanks. I just did I'll also try to check the return values from the executor methods. I have just now updated the code to have a single executor. I will update shortly here once I have tested. Thanks again. |
Hi @Acuadros95 I did a clean build. Then I checked
I don't really get why it is not updating. Now this seems like more of a |
@bryangd34 Is this issue resolved? |
@JanStaschulat |
@bryangd34 Could you detail which build system are you using? How did you start a clean build and where is your This is related to colcon args or your build process, should be straightforward to fix. |
Hi @Acuadros95 |
You need to use the Example: |
@bryangd34 Is this issue resolved now? |
@JanStaschulat unfortunately not. This has become a lower priority for me, hence my lack of updates. My apologies. The latest is, after deleting the microros workspace and starting again from scratch, I built the workspace again using: So I am stuck at this point. I'll gladly try out any suggestions you may have. Thanks! |
Same problem here. I had 5 subscriptions, timers and services, and need to add a new service.
to I still get the error on the 6th service. |
I just spotted the variable |
Solved, for me. Here's how, so that it could be useful to someone else. I had a |
Hi everyone,
I originally had this posted on ROSanswers here. I was advised to post the issue here also.
Does the microros rclc executor have a maximum allowed number of handles that can be added? I couldn't find anything documented about this, so perhaps I have some other kind of memory issue (or something else altogether).
I was able to run an executor with 4 publishers + 1 subscriber, but the moment I add another publisher, there is no data on the new published topic. I then tried to split the publishers and subscribers over two executors. The behaviour was still the same. A snippet of my code:
The text was updated successfully, but these errors were encountered: