From 2535b5206bc54ce3f2a4591edab601a9a3db5f26 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 22 Dec 2024 19:52:55 +0000 Subject: [PATCH 1/2] Give an error output --- controller_manager/src/controller_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 29b8ac2e54..aa28f71e7e 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2122,6 +2122,9 @@ controller_interface::return_type ControllerManager::update( if (controller_ret != controller_interface::return_type::OK) { + RCLCPP_ERROR_ONCE( + get_logger(), "The update call of the following controller returned an error: '%s'", + loaded_controller.info.name.c_str()); ret = controller_ret; } } From 75aed5b38d3b0ec41660f23473aafd43d5b2328d Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 22 Dec 2024 19:52:55 +0000 Subject: [PATCH 2/2] Log errors every time --- controller_manager/src/controller_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index aa28f71e7e..700456aac8 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2122,7 +2122,7 @@ controller_interface::return_type ControllerManager::update( if (controller_ret != controller_interface::return_type::OK) { - RCLCPP_ERROR_ONCE( + RCLCPP_ERROR( get_logger(), "The update call of the following controller returned an error: '%s'", loaded_controller.info.name.c_str()); ret = controller_ret;