testsuite.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #       
00003 # License: BSD
00004 #   https://raw.github.com/yujinrobot/kobuki_desktop/master/kobuki_qtestsuite/LICENSE 
00005 #
00006 ##############################################################################
00007 # Imports
00008 ##############################################################################
00009 
00010 import os
00011 import roslib
00012 roslib.load_manifest('kobuki_qtestsuite')
00013 import rospy
00014 
00015 from qt_gui.plugin import Plugin
00016 from python_qt_binding import loadUi
00017 from python_qt_binding.QtGui import QWidget
00018 from python_qt_binding.QtCore import Signal,Slot
00019 from python_qt_binding.QtGui import QFrame
00020 from rqt_py_common.extended_combo_box import ExtendedComboBox
00021 from geometry_msgs.msg import Twist
00022 
00023 # Local resource imports
00024 import detail.common_rc
00025 from .testsuite_widget import TestSuiteWidget
00026 from .configuration_dock_widget import ConfigurationDockWidget
00027 
00028 class KobukiTestSuite(Plugin):
00029 
00030     def __init__(self, context):
00031         super(KobukiTestSuite, self).__init__(context)
00032         # give QObjects reasonable names
00033         self.setObjectName('Kobuki Test Suite')
00034 
00035         # create QWidget
00036         self._widget = TestSuiteWidget()
00037         #self._widget = ConfigurationDockWidget()
00038 
00039         # add widget to the user interface
00040         context.add_widget(self._widget)
00041         
00042         # Custom setup function to make sure promoted widgets all do their setup properly
00043         self._widget.setupUi()
00044 
00045     def shutdown_plugin(self):
00046         self._widget.shutdown()
00047 
00048     def save_settings(self, plugin_settings, instance_settings):
00049         # TODO save intrinsic configuration, usually using:
00050         # instance_settings.set_value(k, v)
00051         pass
00052 
00053     def restore_settings(self, plugin_settings, instance_settings):
00054         # TODO restore intrinsic configuration, usually using:
00055         # v = instance_settings.value(k)
00056         pass
00057 
00058     ##########################################################################
00059     # Slot Callbacks
00060     ##########################################################################
00061 
00062     #def trigger_configuration(self):
00063         # Comment in to signal that the plugin has a way to configure it
00064         # Usually used to open a dialog to offer the user a set of configuration


kobuki_qtestsuite
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 01:31:16