Skip to content

Commit f1fad00

Browse files
Deprecate rmw_qos_profile_t
Signed-off-by: ElSayed ElSheikh <[email protected]>
1 parent 7a6ab5e commit f1fad00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_service_node.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <string>
2020
#include <rclcpp/executors.hpp>
2121
#include <rclcpp/allocator/allocator_common.hpp>
22+
#include <rclcpp/qos.hpp>
2223
#include "behaviortree_cpp/bt_factory.h"
2324

2425
#include "behaviortree_ros2/ros_node_params.hpp"
@@ -216,7 +217,7 @@ inline RosServiceNode<T>::ServiceClientInstance::ServiceClientInstance(
216217
node->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive, false);
217218
callback_executor.add_callback_group(callback_group, node->get_node_base_interface());
218219

219-
service_client = node->create_client<T>(service_name, rmw_qos_profile_services_default,
220+
service_client = node->create_client<T>(service_name, rclcpp::ServicesQoS(),
220221
callback_group);
221222
}
222223

0 commit comments

Comments
 (0)