📜  如何显示rosbag文件python代码示例

📅  最后修改于: 2022-03-11 14:46:08.148000             🧑  作者: Mango

代码示例1
import rosbag
   bag = rosbag.Bag('test.bag')
   for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']):
       print(msg)
   bag.close()