Conversation
…lback_isolated Add support for reentrant callback groups in ComponentManagerCallbackIsolated, matching the functionality already present in CallbackIsolatedExecutor (PR #21). - Use MultiThreadedExecutorInternal for reentrant callback groups with configurable parallelism (default 4 threads) - Use SingleThreadedExecutor for mutually exclusive callback groups - Unify ExecutorWrapper to use std::shared_ptr<rclcpp::Executor> instead of separate executor types - Update CMakeLists.txt to include multi_threaded_executor_internal.cpp and required include directories
daaf7c2 to
1af8d6f
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for reentrant callback groups to ComponentManagerCallbackIsolated, enabling parallel execution of callbacks within the same callback group using MultiThreadedExecutorInternal.
Changes:
- Added conditional logic to use
MultiThreadedExecutorInternalfor reentrant callback groups with 4 threads of parallelism - Unified
ExecutorWrapperto use baserclcpp::Executortype instead ofSingleThreadedExecutor - Updated CMakeLists.txt to include
multi_threaded_executor_internal.cppin the build
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| callback_isolated_executor/src/component_container_callback_isolated.cpp | Implements reentrant callback group support with multi-threaded execution and unifies executor wrapper type |
| callback_isolated_executor/CMakeLists.txt | Adds multi_threaded_executor_internal.cpp to build configuration and includes necessary directories |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
callback_isolated_executor/src/component_container_callback_isolated.cpp
Show resolved
Hide resolved
callback_isolated_executor/src/component_container_callback_isolated.cpp
Show resolved
Hide resolved
callback_isolated_executor/src/component_container_callback_isolated.cpp
Show resolved
Hide resolved
sykwer
approved these changes
Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for reentrant callback groups in
ComponentManagerCallbackIsolated, matching the functionality from PR #21.MultiThreadedExecutorInternalfor reentrant callback groups with configurable parallelism (default 4 threads)SingleThreadedExecutorfor mutually exclusive callback groupsExecutorWrapperto usestd::shared_ptr<rclcpp::Executor>for cleaner codeRelated links
How was this PR tested?
ReentrantNodecomponent - verified parallel execution across 4 threads (tid values differ in logs)Notes for reviewers
reentrant_parallelism_is currently hardcoded to 4 (same asCallbackIsolatedExecutor)