ros bag 截取一段


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'"

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM