From 27fedcc1721adeda34c3ba75fae02ba45bb8c819 Mon Sep 17 00:00:00 2001 From: atsushi421 Date: Sun, 18 Jan 2026 03:49:45 +0900 Subject: [PATCH] fix: skip callback groups not automatically added to executor Add check for automatically_add_to_executor_with_node() to avoid processing callback groups that should not be managed by the executor. --- .../src/component_container_callback_isolated.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/callback_isolated_executor/src/component_container_callback_isolated.cpp b/callback_isolated_executor/src/component_container_callback_isolated.cpp index fa6fb2f..13a9c9d 100644 --- a/callback_isolated_executor/src/component_container_callback_isolated.cpp +++ b/callback_isolated_executor/src/component_container_callback_isolated.cpp @@ -116,6 +116,10 @@ void ComponentManagerCallbackIsolated::add_node_to_executor(uint64_t node_id) { node->for_each_callback_group([node_id, &node, this](rclcpp::CallbackGroup::SharedPtr callback_group) { + if (!callback_group->automatically_add_to_executor_with_node()) { + return; + } + std::string group_id = cie_thread_configurator::create_callback_group_id(callback_group, node); std::atomic_bool &has_executor =