Skip to content

Commit

Permalink
fix Werror=maybe-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
adivardi committed Nov 21, 2024
1 parent 15c759f commit b006a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opennav_coverage/src/coverage_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CoverageServer::on_configure(const rclcpp_lifecycle::State & /*state*/)
node, "coordinates_in_cartesian_frame", rclcpp::ParameterValue(true));
get_parameter("coordinates_in_cartesian_frame", cartesian_frame_);

double action_server_result_timeout;
double action_server_result_timeout = 10.0;
nav2_util::declare_parameter_if_not_declared(
node, "action_server_result_timeout", rclcpp::ParameterValue(10.0));
get_parameter("action_server_result_timeout", action_server_result_timeout);
Expand Down
2 changes: 1 addition & 1 deletion opennav_row_coverage/src/row_coverage_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RowCoverageServer::on_configure(const rclcpp_lifecycle::State & /*state*/)
node, "order_ids", rclcpp::ParameterValue(true));
get_parameter("order_ids", order_ids_);

double action_server_result_timeout;
double action_server_result_timeout = 10.0;
nav2_util::declare_parameter_if_not_declared(
node, "action_server_result_timeout", rclcpp::ParameterValue(10.0));
get_parameter("action_server_result_timeout", action_server_result_timeout);
Expand Down

0 comments on commit b006a63

Please sign in to comment.