40 from rospkg.rospack
import RosPack
46 def __init__(self, filename=None, ros_pack=None, settings_filename='rqt_gui'):
47 rp = ros_pack
or RosPack()
48 qtgui_path = rp.get_path(
'qt_gui')
50 qtgui_path, invoked_filename=filename, settings_filename=settings_filename)
53 def main(self, argv=None, standalone=None, plugin_argument_provider=None):
59 argv = rospy.myargv(argv)
62 Main, self).
main(argv, standalone=standalone,
63 plugin_argument_provider=plugin_argument_provider,
64 plugin_manager_settings_prefix=str(
65 hash(os.environ[
'ROS_PACKAGE_PATH'])))
68 from python_qt_binding.QtGui
import QIcon
70 logo = os.path.join(self._ros_pack.get_path(
'rqt_gui'),
'resource',
'rqt.png')
72 app.setWindowIcon(icon)
79 from .rospkg_plugin_provider
import RospkgPluginProvider
80 RospkgPluginProvider.rospack = self.
_ros_pack 81 self.plugin_providers.append(RospkgPluginProvider(
'qt_gui',
'qt_gui_py::Plugin'))
82 self.plugin_providers.append(RecursivePluginProvider(
83 RospkgPluginProvider(
'qt_gui',
'qt_gui_py::PluginProvider')))
84 self.plugin_providers.append(RecursivePluginProvider(
85 RospkgPluginProvider(
'rqt_gui',
'rqt_gui_py::PluginProvider')))
89 reload_importer.add_reload_path(os.path.join(os.path.dirname(__file__), *(
'..',) * 4))
92 if __name__ ==
'__main__':
def _add_plugin_providers(self)
def create_application(self, argv)
def main(self, argv=None, standalone=None, plugin_argument_provider=None, plugin_manager_settings_prefix='')
def __init__(self, qtgui_path, invoked_filename=None, settings_filename=None)
def _add_reload_paths(self, reload_importer)