hironx_dashboard.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 from hrpsys_ros_bridge.hrpsys_dashboard import HrpsysDashboard
00004 from rqt_robot_dashboard.widgets import MenuDashWidget
00005 
00006 from python_qt_binding.QtGui import QMessageBox, QLabel, QPalette
00007 
00008 import os
00009 class HiroNXNameLabel(QLabel):
00010     def __init__(self, name):
00011        super(HiroNXNameLabel, self).__init__()
00012        palette = QPalette()
00013        self.setStyleSheet('font-size: larger; font-weight: bold; color: #ffffff; background-color: darkgreen;')
00014        self.setText(name)
00015 
00016 class HiroNXDashboard(HrpsysDashboard):
00017     def setup(self, context):
00018         super(HiroNXDashboard, self).setup(context)
00019         self.name = "HiroNX dashboard"
00020         self._imp_button = None
00021         self._pose_button = None
00022         self._name_label = HiroNXNameLabel("HiroNX "+os.environ["ROS_MASTER_URI"]+" ")
00023 
00024     def get_widgets(self):
00025         widgets = super(HiroNXDashboard, self).get_widgets()
00026         widgets.append([self._name_label])
00027         return widgets


hironx_ros_bridge
Author(s): Kei Okada
autogenerated on Sun Sep 13 2015 23:21:39