Proper use of rospy.Rate or ros::Rate