Skip to content

Commit

Permalink
Expose action server result timeout as a parameter in bt navigator se…
Browse files Browse the repository at this point in the history
…rvers (ros-navigation#3787)

* Expose action server default timeout in bt navigator servers

* typo

* duplicated comment

* Expose result timeout in other actions

* Proper timeout in bt node

* Change default timeouts and remove comments

* Remove comment in params file

* uncrustify controller server
  • Loading branch information
pepisg authored and Marc-Morcos committed Jul 4, 2024
1 parent 5047482 commit 6f9c131
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nav2_controller/src/controller_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ ControllerServer::on_configure(const rclcpp_lifecycle::State & /*state*/)
rcl_action_server_options_t server_options = rcl_action_server_get_default_options();
server_options.result_timeout.nanoseconds = RCL_S_TO_NS(action_server_result_timeout);

double action_server_result_timeout;
get_parameter("action_server_result_timeout", action_server_result_timeout);
rcl_action_server_options_t server_options = rcl_action_server_get_default_options();
server_options.result_timeout.nanoseconds = RCL_S_TO_NS(action_server_result_timeout);

// Create the action server that we implement with our followPath method
// This may throw due to real-time prioritzation if user doesn't have real-time permissions
try {
Expand Down

0 comments on commit 6f9c131

Please sign in to comment.