Skip to content

Commit d96d360

Browse files
SteveMacenskiMarc-Morcos
authored andcommitted
Revert "nav2_controller: add loop rate log (ros-navigation#4171)" (ros-navigation#4210)
This reverts commit 4737462.
1 parent 1367229 commit d96d360

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
@@ -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) {

0 commit comments

Comments
 (0)