Skip to content

Commit 2360f65

Browse files
committed
fix Werror=maybe-uninitialized
1 parent 6fad682 commit 2360f65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opennav_coverage/src/coverage_server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CoverageServer::on_configure(const rclcpp_lifecycle::State & /*state*/)
4646
node, "coordinates_in_cartesian_frame", rclcpp::ParameterValue(true));
4747
get_parameter("coordinates_in_cartesian_frame", cartesian_frame_);
4848

49-
double action_server_result_timeout;
49+
double action_server_result_timeout = 10.0;
5050
nav2_util::declare_parameter_if_not_declared(
5151
node, "action_server_result_timeout", rclcpp::ParameterValue(10.0));
5252
get_parameter("action_server_result_timeout", action_server_result_timeout);

opennav_row_coverage/src/row_coverage_server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RowCoverageServer::on_configure(const rclcpp_lifecycle::State & /*state*/)
5050
node, "order_ids", rclcpp::ParameterValue(true));
5151
get_parameter("order_ids", order_ids_);
5252

53-
double action_server_result_timeout;
53+
double action_server_result_timeout = 10.0;
5454
nav2_util::declare_parameter_if_not_declared(
5555
node, "action_server_result_timeout", rclcpp::ParameterValue(10.0));
5656
get_parameter("action_server_result_timeout", action_server_result_timeout);

0 commit comments

Comments
 (0)