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