Skip to content

Instantly share code, notes, and snippets.

View ddimarco's full-sized avatar

Daniel Di Marco ddimarco

  • farming revolution GmbH
View GitHub Profile
@ddimarco
ddimarco / show_bag_headers.py
Created April 22, 2018 17:36
Opens a rosbag & shows connection information on all topics. Requires a patched `rosbag` package.
#!/usr/bin/env python2
from __future__ import print_function
import sys
from rosbag.bag import Bag
def main():
if len(sys.argv) != 2:
print ('usage: {script} <bagfile>'.format(script=sys.argv[0]))
sys.exit(-1)