diff --git a/bag_tools/scripts/bag_add_time_offset.py b/bag_tools/scripts/bag_add_time_offset.py index 7612342..0274998 100755 --- a/bag_tools/scripts/bag_add_time_offset.py +++ b/bag_tools/scripts/bag_add_time_offset.py @@ -75,7 +75,8 @@ def fix_bagfile(inbag, outbag, topics, offset): parser.add_argument('-t', metavar='TOPIC', required=True, help='topic(s) to change', nargs='+') args = parser.parse_args() try: - fix_bagfile(args.i, args.o, arg.t, args.of) + for bagfile in args.i: + fix_bagfile(bagfile, args.o, args.t, args.of) except Exception, e: import traceback traceback.print_exc()