Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dr. Denis <denis@stoglrobotics.de>
  • Loading branch information
fmauch and destogl authored Aug 15, 2024
1 parent 49137f2 commit 6d627b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def service_caller(
"""
Abstraction of a service call.
Has an optional timeout to find the service and a mechanism
to retry a call of no response is received.
Has an optional timeout to find the service, receive the answer to a call
and a mechanism to retry a call of no response is received.
@param node Node object to be associated with
@type rclpy.node.Node
Expand Down Expand Up @@ -88,7 +88,7 @@ def service_caller(
else:
return future.result()
raise RuntimeError(
f"Could not successfully call service {service_name} in {max_attempts} attempts."
f"Could not successfully call service {service_name} after {max_attempts} attempts."
)


Expand Down
2 changes: 1 addition & 1 deletion controller_manager/test/test_spawner_unspawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ TEST_F(TestLoadController, spawner_with_many_controllers)
const std::string controller_base_name = "ctrl_";
for (size_t i = 0; i < num_controllers; i++)
{
std::string controller_name = controller_base_name + std::to_string(static_cast<int>(i));
const std::string controller_name = controller_base_name + std::to_string(static_cast<int>(i));
cm_->set_parameter(
rclcpp::Parameter(controller_name + ".type", test_controller::TEST_CONTROLLER_CLASS_NAME));
ss << controller_name << " ";
Expand Down

0 comments on commit 6d627b5

Please sign in to comment.