From 0b9584f4ee656e90ea997a874e2a266b770c9165 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Sun, 11 Feb 2024 20:14:42 +0100 Subject: [PATCH] modify a bit the logging of reordered list --- controller_manager/src/controller_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 3edd30bc0c..6659464122 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -779,12 +779,12 @@ controller_interface::return_type ControllerManager::configure_controller( if (controller_it != to.end()) new_list.push_back(*controller_it); } + to = new_list; RCLCPP_DEBUG(get_logger(), "Reordered controllers list is:"); - for (const auto & ctrl : ordered_controllers_names_) + for (const auto & ctrl : to) { - RCLCPP_DEBUG(this->get_logger(), "\t%s", ctrl.c_str()); + RCLCPP_DEBUG(this->get_logger(), "\t%s", ctrl.info.name.c_str()); } - to = new_list; // switch lists rt_controllers_wrapper_.switch_updated_list(guard);