Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 """
00034 .. module:: widgets
00035 :synopsis: Widgets for the rqt_robot_dashboard.
00036
00037 .. moduleauthor:: Ze'ev Klapow, Aaron Blasdel <ablasdel@gmail.com>
00038
00039 This module provides a set of standard widgets for using with the Dashboard class.
00040
00041 To use them you must provide instances of them to your dashboard in its :func:`get_widgets` method. For example::
00042
00043 from rqt_robot_dashboard.dashboard import Dashboard
00044 from rqt_robot_dashboard.widgets import MonitorDashWidget, ConsoleDashWidget, BatteryDashWidget
00045
00046 class MyDashboard(Dashboard):
00047 def get_widgets(self):
00048 self.monitor = MonitorDashWidget(self.context)
00049 self.console = ConsoleDashWidget(self.context)
00050 self.battery = BatteryDashWidget(self.context)
00051
00052 return [[self.monitor, self.console],[self.battery]]
00053
00054 Would create a simple dashboard with the ability to open a rqt_robot_monitor and a ROS console and monitor the battery.
00055 """
00056
00057 from .icon_tool_button import IconToolButton
00058 from .battery_dash_widget import BatteryDashWidget
00059 from .console_dash_widget import ConsoleDashWidget
00060 from .menu_dash_widget import MenuDashWidget
00061 from .monitor_dash_widget import MonitorDashWidget
00062 from .nav_view_dash_widget import NavViewDashWidget