Loop a rosbag but keep timestamps running

asked 2020-06-17 09:25:13 -0500

Eumel gravatar image

I try to train a neural network on a rosbag. Thats works quite well as long a the bag is running, but once bag loops around the timings also reset and TimeSynchronizer doesnt pick up any new images.

left_sub = message_filters.Subscriber('/zed/left/image_rect_color', Image, queue_size=1, buff_size=2**24)
right_sub = message_filters.Subscriber('/zed/right/image_rect_color', Image, queue_size=1, buff_size=2**24)
ts = message_filters.TimeSynchronizer([left_sub, right_sub], 1)

Can i somehow keep the timestamps running?

edit retag flag offensive close merge delete