21 from cob_msgs.msg
import DashboardState
26 from python_qt_binding.QtCore
import QSize
28 from python_qt_binding.QtWidgets
import QMessageBox
30 from python_qt_binding.QtGui
import QMessageBox
32 from .cob_battery
import COBBattery
33 from .cob_runstops
import COBRunstops
38 Dashboard for Care-O-bots 40 :param context: the plugin context 41 :type context: qt_gui.plugin.Plugin 66 self._battery.set_power_state(msg.power_state)
68 if(msg.emergency_stop_state.emergency_state == 0):
69 self._runstop.set_ok()
70 self._runstop.setToolTip(self.tr(
"Button stop: OK\nScanner stop: OK"))
72 if msg.emergency_stop_state.emergency_button_stop:
73 self._runstop.set_button_stop()
74 elif msg.emergency_stop_state.scanner_stop:
75 self._runstop.set_scanner_stop()
77 rospy.logerr(
"reason for emergency stop not known")
78 self._runstop.setToolTip(self.tr(
"Button stop: %s\nScanner stop: %s" %(str(msg.emergency_stop_state.emergency_button_stop), str(msg.emergency_stop_state.scanner_stop))))
81 self._dashboard_agg_sub.unregister()
84 self._console.save_settings(plugin_settings, instance_settings)
85 self._monitor.save_settings(plugin_settings, instance_settings)
88 self._console.restore_settings(plugin_settings, instance_settings)
89 self._monitor.restore_settings(plugin_settings, instance_settings)
def shutdown_dashboard(self)
def save_settings(self, plugin_settings, instance_settings)
def restore_settings(self, plugin_settings, instance_settings)
_last_dashboard_message_time