Skip to content

Commit 9445681

Browse files
SteveMacenskiManos-G
authored andcommitted
Revert "nav2_controller: add loop rate log (ros-navigation#4171)" (ros-navigation#4210)
This reverts commit 4737462.
1 parent 55689db commit 9445681

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nav2_controller/src/controller_server.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)