Function plansys2::drain_ros
Defined in File Utils.hpp
Function Documentation
-
void plansys2::drain_ros(std::chrono::milliseconds total = 200ms)
Drain ROS messages for a given time. Useful in tests to ensure all messages are processed.
- Parameters:
n – [in] The node to use for spinning.
total – [in] The total time to drain messages.