13 from python_qt_binding.QtCore
import Signal, Slot, pyqtSlot
15 from python_qt_binding.QtGui
import QFrame, QVBoxLayout
17 from python_qt_binding.QtWidgets
import QFrame, QVBoxLayout
22 from kobuki_testsuite
import Square
25 import detail.common_rc
27 from detail.payload_frame_ui
import Ui_payload_frame
35 super(PayloadFrame, self).
__init__(parent)
37 self.
_ui = Ui_payload_frame()
42 self._ui.setupUi(self)
43 self._ui.start_button.setEnabled(
True)
44 self._ui.stop_button.setEnabled(
False)
48 Used to terminate the plugin 50 rospy.loginfo(
"Kobuki TestSuite: payload frame shutdown")
59 This gets called when the frame goes out of focus (tab switch). 60 Disable everything to avoid running N tabs in parallel when in 61 reality we are only running one. 67 Restore the frame after a hibernate. 78 self._ui.start_button.setEnabled(
True)
79 self._ui.stop_button.setEnabled(
False)
86 self._ui.start_button.setEnabled(
False)
87 self._ui.stop_button.setEnabled(
True)
89 self._motion.init(self._ui.speed_spinbox.value(), self._ui.distance_spinbox.value())
91 self._motion_thread.start()
101 self._motion_thread.wait()
105 self._ui.start_button.setEnabled(
True)
106 self._ui.stop_button.setEnabled(
False)
111 self._motion.init(self._ui.speed_spinbox.value(), self._ui.distance_spinbox.value())
116 self._motion.init(self._ui.speed_spinbox.value(), self._ui.distance_spinbox.value())
def _run_finished(self)
Motion Callbacks.
def on_speed_spinbox_valueChanged(self, value)
def on_stop_button_clicked(self)
def __init__(self, parent=None)
def hibernate(self)
Widget Management.
def on_distance_spinbox_valueChanged(self, value)
def on_start_button_clicked(self)
Qt Callbacks.