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 @@ -419,7 +419,6 @@ void ControllerServer::computeControl()
419419{
420420 std::lock_guard<std::mutex> lock (dynamic_params_lock_);
421421
422- auto start_time = this ->now ();
423422 RCLCPP_INFO (get_logger (), " Received a goal, begin computing control effort." );
424423
425424 try {
@@ -480,12 +479,10 @@ void ControllerServer::computeControl()
480479 break ;
481480 }
482481
483- auto cycle_duration = this ->now () - start_time;
484482 if (!loop_rate.sleep ()) {
485483 RCLCPP_WARN (
486- get_logger (),
487- " Control loop missed its desired rate of %.4f Hz. Current loop rate is %.4f Hz." ,
488- controller_frequency_, 1 / cycle_duration.seconds ());
484+ get_logger (), " Control loop missed its desired rate of %.4fHz" ,
485+ controller_frequency_);
489486 }
490487 }
491488 } catch (nav2_core::InvalidController & e) {
You can’t perform that action at this time.
0 commit comments