diff --git a/nav2_controller/src/controller_server.cpp b/nav2_controller/src/controller_server.cpp index c6ccbcfdb9..bfea59e0bd 100644 --- a/nav2_controller/src/controller_server.cpp +++ b/nav2_controller/src/controller_server.cpp @@ -485,7 +485,8 @@ void ControllerServer::computeControl() if (!loop_rate.sleep()) { RCLCPP_WARN( - get_logger(), "Control loop missed its desired rate of %.4fHz. Current loop rate is %.4f Hz", + get_logger(), + "Control loop missed its desired rate of %.4fHz. Current loop rate is %.4f Hz", controller_frequency_, 1 / cycle_duration.seconds()); } }