From ec46577400623efa60dd5e1b6a12ce671910fbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Tue, 3 Dec 2024 16:00:56 +0100 Subject: [PATCH] Use throttled output Co-authored-by: Felix Exner (fexner) --- controller_manager/src/controller_manager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index b359de1c3b..24acce1f81 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2382,10 +2382,11 @@ controller_interface::return_type ControllerManager::update( else { // this can happen with use_sim_time=true until the /clock is received - RCLCPP_WARN( - get_logger(), + rclcpp::Clock clock = rclcpp::Clock(); + RCLCPP_WARN_THROTTLE( + get_logger(), clock, 1000, "No clock received, using time argument instead! Check your node's clock " - "configuration (use_sim_time parameter) and if a valid clock source is available."); + "configuration (use_sim_time parameter) and if a valid clock source is available"); current_time = time; } if (