Skip to content

Commit 9c098e5

Browse files
authored
fix(rclcpp_components): increase the service queue sizes in component_container (#2363)
* fix(rclcpp_components): increase the service queue sizes in component_container Signed-off-by: M. Fatih Cırıt <[email protected]>
1 parent 0f331f9 commit 9c098e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rclcpp_components/src/component_manager.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ ComponentManager::ComponentManager(
3939
{
4040
loadNode_srv_ = create_service<LoadNode>(
4141
"~/_container/load_node",
42-
std::bind(&ComponentManager::on_load_node, this, _1, _2, _3));
42+
std::bind(&ComponentManager::on_load_node, this, _1, _2, _3),
43+
rclcpp::ServicesQoS().keep_last(200));
4344
unloadNode_srv_ = create_service<UnloadNode>(
4445
"~/_container/unload_node",
45-
std::bind(&ComponentManager::on_unload_node, this, _1, _2, _3));
46+
std::bind(&ComponentManager::on_unload_node, this, _1, _2, _3),
47+
rclcpp::ServicesQoS().keep_last(200));
4648
listNodes_srv_ = create_service<ListNodes>(
4749
"~/_container/list_nodes",
4850
std::bind(&ComponentManager::on_list_nodes, this, _1, _2, _3));

0 commit comments

Comments
 (0)