How to publish topics at specific rate?(Python)
I have 5 topics publishing images at different rates. I want them to publish at the same rate and hence I am trying to set the rostopic hz to a constant rate for all the 5 topics. How can I do it in rospy?
My understanding is that rospy.Rate() will work only for that loop of code. How can I set the rate a which the messages are being published?
Thanks