Skip to content

Commit

Permalink
import rosbag locally instead of at module level (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas authored and dirk-thomas committed Jun 6, 2018
1 parent 1523b1e commit 7c680e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosmsg/src/rosmsg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
from genpy.dynamic import generate_dynamic

import roslib.message
import rosbag

from optparse import OptionParser

Expand Down Expand Up @@ -580,6 +579,7 @@ def _stdin_arg(parser, full):
return options, args[0]

def rosmsg_cmd_show(mode, full, alias='show'):
import rosbag
cmd = "ros%s"%(mode[1:])
parser = OptionParser(usage="usage: %s %s [options] <%s>"%(cmd, alias, full))
parser.add_option("-r", "--raw",
Expand Down

0 comments on commit 7c680e3

Please sign in to comment.