Topic statistics: Setting size of time-window to constant value

asked 2019-01-30 10:11:43 -0600

bearot gravatar image

updated 2019-01-31 10:53:23 -0600

Trying to solve this problem with topic statistics, i noticed that the publishing on the topic /statistics heavily depends on the publishing frequency of the analyzed topic.

If the analyzed topic publishes at 100Hz the statistics sets the window of collecting messages at a size of ~60secs. Meanwhile an analyzed topic with ~10Hz or ~1Hz gets a window of size ~1sec. Which means there are only a small amount of delivered_msgs at small frequency and the statistics of topics with high frequencys gets published in a really low frequency. I don´t understand why the difference is so large.

Is there a possibility to set the window size to a constant value?

I am working with rospy, rosversion kinetic and had the issue with three 100Hz, one 10Hz and one 1Hz topics, if you want to reproduce the issue.

Thank you!

edit retag flag offensive close merge delete