11 roslib.load_manifest(
'kobuki_qtestsuite')
14 from python_qt_binding.QtCore
import Signal,Slot
16 from python_qt_binding.QtGui
import QWidget
18 from python_qt_binding.QtWidgets
import QWidget
21 from geometry_msgs.msg
import Twist
22 from nav_msgs.msg
import Odometry
25 import detail.common_rc
26 from detail.testsuite_ui
import Ui_testsuite_widget
31 super(TestSuiteWidget, self).
__init__(parent)
32 self.
_ui = Ui_testsuite_widget()
36 self._ui.setupUi(self)
37 self.
_tabs = [self._ui.battery_profile_frame,
38 self._ui.gyro_drift_frame,
39 self._ui.payload_frame,
40 self._ui.cliff_sensor_frame,
42 self._ui.wandering_frame
45 self._ui.configuration_dock.setupUi()
46 self._ui.battery_profile_frame.setupUi(self._ui.configuration_dock.cmd_vel_topic_name())
47 self._ui.gyro_drift_frame.setupUi()
48 self._ui.payload_frame.setupUi()
49 self._ui.cliff_sensor_frame.setupUi()
50 self._ui.life_frame.setupUi()
51 self._ui.wandering_frame.setupUi()
57 self._ui.configuration_dock._ui.cmd_vel_topic_combo_box.currentIndexChanged[str].connect(
58 self._ui.battery_profile_frame.on_cmd_vel_topic_combo_box_currentIndexChanged)
61 self._ui.battery_profile_frame.shutdown()
62 self._ui.gyro_drift_frame.shutdown()
63 self._ui.payload_frame.shutdown()
64 self._ui.cliff_sensor_frame.shutdown()
65 self._ui.life_frame.shutdown()
66 self._ui.wandering_frame.shutdown()
76 self.
cmd_vel_publisher = rospy.Publisher(str(self.cmd_vel_topic_combo_box.currentText()), Twist, queue_size=10)
85 self._current_tab.hibernate()
87 self._current_tab.restore()