Robotics StackExchange | Archived questions

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

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.

Asked by Joy16 on 2017-03-22 13:49:30 UTC

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?

Asked by msadowski on 2017-03-23 03:01:05 UTC

Answers