File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,6 @@ void ControllerServer::computeControl()
424424{
425425 std::lock_guard<std::mutex> lock (dynamic_params_lock_);
426426
427- auto start_time = this ->now ();
428427 RCLCPP_INFO (get_logger (), " Received a goal, begin computing control effort." );
429428
430429 try {
@@ -492,12 +491,10 @@ void ControllerServer::computeControl()
492491 break ;
493492 }
494493
495- auto cycle_duration = this ->now () - start_time;
496494 if (!loop_rate.sleep ()) {
497495 RCLCPP_WARN (
498- get_logger (),
499- " Control loop missed its desired rate of %.4f Hz. Current loop rate is %.4f Hz." ,
500- controller_frequency_, 1 / cycle_duration.seconds ());
496+ get_logger (), " Control loop missed its desired rate of %.4fHz" ,
497+ controller_frequency_);
501498 }
502499 }
503500 } catch (nav2_core::InvalidController & e) {
You can’t perform that action at this time.
0 commit comments