Skip to content

Commit 27fedcc

Browse files
committed
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.
1 parent 09e6a4c commit 27fedcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

callback_isolated_executor/src/component_container_callback_isolated.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ void ComponentManagerCallbackIsolated::add_node_to_executor(uint64_t node_id) {
116116
node->for_each_callback_group([node_id, &node,
117117
this](rclcpp::CallbackGroup::SharedPtr
118118
callback_group) {
119+
if (!callback_group->automatically_add_to_executor_with_node()) {
120+
return;
121+
}
122+
119123
std::string group_id =
120124
cie_thread_configurator::create_callback_group_id(callback_group, node);
121125
std::atomic_bool &has_executor =

0 commit comments

Comments
 (0)