Is rospy.get_time() same as rostime? Getting different rate of msg publication

asked 2017-03-22 13:49:30 -0600

Joy16 gravatar image

When a rostopic's publishing rate says 30Hz,am I right in assuming that it is publishing 30 messages -per second

I am storing kinect data(Image attached)image description by naming it as its time stamping obtained using rospy.get_time(). Shouldn't I be storing 30 RGB images per second? I seem to have only 3-4 messages within a span of second.

edit retag flag offensive close merge delete

Comments

You are correct in your assumption that it publishes 30 messages a second (to be sure you can check with rostopic hz /topicname). I think your issue might be with subscribing node (take into account that saving files takes time, and queue length is limited). Can you share your code?

msadowski gravatar image msadowski  ( 2017-03-23 03:01:05 -0600 )edit