Function nav2_util::reset_lifecycle_nodes(const std::vector<std::string>&, const std::chrono::seconds, const int)
Defined in File lifecycle_utils.hpp
Function Documentation
-
void nav2_util::reset_lifecycle_nodes(const std::vector<std::string> &node_names, const std::chrono::seconds service_call_timeout = std::chrono::seconds::max(), const int retries = 3)
Transition the given lifecycle nodes to the UNCONFIGURED state in order.
At this time, service calls frequently hang for unknown reasons. The only way to combat that is to timeout the service call and retry it. To use this function, estimate how long your nodes should take to at each transition and set your timeout accordingly.
- Parameters:
node_names – [in] A vector of the fully qualified node names to reset.
service_call_timeout – [in] The maximum amount of time to wait for a service call.
retries – [in] The number of times to try a state transition service call