Template Function husarion_ugv_utils::test_utils::WaitForFuture
Defined in File ros_test_utils.hpp
Function Documentation
-
template<typename NodeT, typename FutureT>
bool husarion_ugv_utils::test_utils::WaitForFuture(const NodeT &node, FutureT &future, const std::chrono::milliseconds &timeout) Wait for ROS service future to arrive.
- Parameters:
node – ROS node that will be spun
future – Reference to the service future, it should point to a variable, that will be overwritten after service response
timeout – timeout to wait for service response
- Returns:
True if message was received, false if timeout was reached