Same issue with #281, #286 only fixed it for c++, this PR fix for python.
Since polling does not require precise loop rates, we could use rospy.sleep() instead of Rate.sleep(). This could reduce some load when polling frequently.
The downside is that sometimes we don't want timeout to correlate with polling rate. Maybe adding another parameter for polling rate?
Same issue with #281, #286 only fixed it for c++, this PR fix for python. Since polling does not require precise loop rates, we could use rospy.sleep() instead of Rate.sleep(). This could reduce some load when polling frequently.
The downside is that sometimes we don't want timeout to correlate with polling rate. Maybe adding another parameter for polling rate?