battery_widget.py
Go to the documentation of this file.
00001 import rospy
00002 from rqt_robot_dashboard.widgets import BatteryDashWidget
00003 from python_qt_binding.QtGui import QToolButton
00004 
00005 class BatteryWidget(BatteryDashWidget):
00006     def __init__(self, name):
00007         icons = []
00008         charge_icons = []
00009         icons.append(['ic-battery-0.svg'])
00010         icons.append(['ic-battery-20.svg'])
00011         icons.append(['ic-battery-40.svg'])
00012         icons.append(['ic-battery-60-green.svg'])
00013         icons.append(['ic-battery-80-green.svg'])
00014         icons.append(['ic-battery-100-green.svg'])
00015         charge_icons.append(['ic-battery-charge-0.svg'])
00016         charge_icons.append(['ic-battery-charge-20.svg'])
00017         charge_icons.append(['ic-battery-charge-40.svg'])
00018         charge_icons.append(['ic-battery-charge-60-green.svg'])
00019         charge_icons.append(['ic-battery-charge-80-green.svg'])
00020         charge_icons.append(['ic-battery-charge-100-green.svg'])
00021         super(BatteryWidget, self).__init__(name=name, icons=icons, charge_icons=charge_icons)
00022 


kobuki_dashboard
Author(s): Ze'ev Klapow, Marcus Liebhardt
autogenerated on Wed Aug 26 2015 12:18:39