Skip to content

Commit

Permalink
Remove duplicate reading period from parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Dec 4, 2024
1 parent a2d319b commit 5d2b852
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1074,15 +1074,6 @@ controller_interface::CallbackReturn JointTrajectoryController::on_activate(
cmd_timeout_ = 0.0;
}

{
if (get_update_rate() == 0)
{
throw std::runtime_error("Controller's update rate is set to 0. This should not happen!");
}
update_period_ =
rclcpp::Duration(0.0, static_cast<uint32_t>(1.0e9 / static_cast<double>(get_update_rate())));
}

return CallbackReturn::SUCCESS;
}

Expand Down

0 comments on commit 5d2b852

Please sign in to comment.