Skip to content

Commit a947830

Browse files
committed
apply fix #113
1 parent 63b2bf4 commit a947830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ RosActionNode<T>::ActionClientInstance::ActionClientInstance(
244244
std::shared_ptr<rclcpp::Node> node, const std::string& action_name)
245245
{
246246
callback_group =
247-
node->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive);
247+
node->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive, false);
248248
callback_executor.add_callback_group(callback_group, node->get_node_base_interface());
249249
action_client = rclcpp_action::create_client<T>(node, action_name, callback_group);
250250
}
@@ -309,7 +309,7 @@ inline bool RosActionNode<T>::createClient(const std::string& action_name)
309309
if(it == registry.end() || it->second.expired())
310310
{
311311
client_instance_ = std::make_shared<ActionClientInstance>(node, action_name);
312-
registry.insert_or_assign( action_client_key_, client_instance_ );
312+
registry.insert_or_assign(action_client_key_, client_instance_);
313313
}
314314
else
315315
{

0 commit comments

Comments
 (0)