Go to the documentation of this file.00001 import roslib;roslib.load_manifest('rqt_nav_view')
00002 import rospy
00003
00004 from .nav_view import NavViewWidget
00005 from qt_gui.plugin import Plugin
00006
00007
00008 class NavViewPlugin(Plugin):
00009 def __init__(self, context):
00010 super(NavViewPlugin, self).__init__(context)
00011 if context.serial_number() > 1:
00012 raise RuntimeError("Due to a limitation of tf_frames you may not run more than one instance of rqt_nav_view.")
00013 self._widget = NavViewWidget()
00014 if context.serial_number() > 1:
00015 self._widget.setWindowTitle(self._widget.windowTitle() + (' (%d)' % context.serial_number()))
00016 context.add_widget(self._widget)
00017
00018 self.setObjectName('Naviation View')