We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91fef98 commit a5e5486Copy full SHA for a5e5486
bag_tools/scripts/check_drop.py
@@ -96,6 +96,10 @@ def check_drop(inbags, plot_format='png'):
96
bag_time_diff_topic = bag_time_diff[topic]
97
seq_diff_topic = seq_diff[topic]
98
99
+ if len(msg_time_diff_topic) == 0:
100
+ rospy.logwarn('%s has no messages', topic.ljust(max_len + 2))
101
+ continue
102
+
103
msg_time_diff_min = numpy.min(msg_time_diff_topic)
104
msg_time_diff_max = numpy.max(msg_time_diff_topic)
105
msg_time_diff_mean = numpy.mean(msg_time_diff_topic)
0 commit comments