rosbag filter 20200918_173724.bag output.bag "t.to_sec() >= 1600421904591 and t.to_sec() <= 1600421922726"
rosbag filter 20200825.bag output.bag --print="'%s @ %d.%d:' % (topic, t.secs, t.nsecs)" "(t.secs >= 3 and t.secs <= 6) or (t.secs==0 and t.nsecs==1)"
Intel D455命令:
t.secs, t.nsecs: 从视频开始算起的秒、纳秒
--print="'%s @ %d.%d: %s' % (topic, t.secs, t.nsecs, m.data)": 打印每条message调试信息
rosbag filter 20200825.bag output.bag --print="'%s @ %d.%d:' % (topic, t.secs, t.nsecs)" "(t.secs >= 3 and t.secs <= 6) or (t.secs==0 and t.nsecs==1)"
https://answers.ros.org/question/99711/how-to-split-a-recorded-rosbag-file/
http://wiki.ros.org/rosbag/Commandline#play
rosbag filter --print="'%s @ %d.%d: %s' % (topic, t.secs, t.nsecs, m.data)" big.bag small.bag "topic == '/chatter'"