Skip to content

Commit

Permalink
Revert "nav2_controller: add loop rate log (ros-navigation#4171)" (ro…
Browse files Browse the repository at this point in the history
…s-navigation#4210)

This reverts commit 4737462.
  • Loading branch information
SteveMacenski authored and Marc-Morcos committed Jul 4, 2024
1 parent 1367229 commit d96d360
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ void ControllerServer::computeControl()
{
std::lock_guard<std::mutex> lock(dynamic_params_lock_);

auto start_time = this->now();
RCLCPP_INFO(get_logger(), "Received a goal, begin computing control effort.");

try {
Expand Down Expand Up @@ -492,12 +491,10 @@ void ControllerServer::computeControl()
break;
}

auto cycle_duration = this->now() - start_time;
if (!loop_rate.sleep()) {
RCLCPP_WARN(
get_logger(),
"Control loop missed its desired rate of %.4f Hz. Current loop rate is %.4f Hz.",
controller_frequency_, 1 / cycle_duration.seconds());
get_logger(), "Control loop missed its desired rate of %.4fHz",
controller_frequency_);
}
}
} catch (nav2_core::InvalidController & e) {
Expand Down

0 comments on commit d96d360

Please sign in to comment.