Skip to content

Commit

Permalink
Address PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Oct 2, 2024
1 parent 3c985db commit 2a20f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ControllerInterfaceBase : public rclcpp_lifecycle::node_interfaces::Lifecy
* **The method called in the (real-time) control loop.**
*
* \param[in] time The time at the start of this control loop iteration
* \param[in] period The measured time taken by the last control loop iteration
* \param[in] period The measured time since the last control loop iteration
* \returns return_type::OK if update is successfully, otherwise return_type::ERROR.
*/
CONTROLLER_INTERFACE_PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion controller_manager/test/test_controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ TEST_P(TestControllerUpdateRates, check_the_controller_update_rate)
EXPECT_THAT(
test_controller->update_period_.seconds(),
testing::AllOf(
testing::Ge(0.99 * controller_period),
testing::Gt(0.99 * controller_period),
testing::Lt((1.05 * controller_period) + PERIOD.seconds())))
<< "update_counter: " << update_counter << " desired controller period: " << controller_period
<< " actual controller period: " << test_controller->update_period_.seconds();
Expand Down

0 comments on commit 2a20f1d

Please sign in to comment.