📅  最后修改于: 2022-03-11 14:46:08.148000             🧑  作者: Mango
import rosbag
bag = rosbag.Bag('test.bag')
for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']):
print(msg)
bag.close()