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

Single threaded executor used for the callbacks of two callback groups #62

Open
sayali-purdue opened this issue Aug 23, 2024 · 0 comments

Comments

@sayali-purdue
Copy link

In file disturbance_manager.py, single-threaded executor is used to process callbacks of two callback groups: default callback group of the node and reentrant callback group used for rate objects. 'rclpy' rate object internally implements timer callback and assigns those callbacks to the reentrant callback group. Therefore, this code has 1) service client objects and callbacks of the timer object assigned to the default mutually exclusive callback group and 2) callbacks of the rate object assigned to the separate reentrant callback group. As discussed in ROS documentation, callbacks from reentrant callback group can execute in parallel as well as callbacks from two callback groups can execute in parallel. However due to the single thread of the executor, the callbacks can not execute in parallel. Using a multi-threaded executor would be more efficient for this use case.

I would appreciate to hear your thoughts on this.

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

1 participant