Go to the documentation of this file.
35 :synopsis: Widgets for the rqt_robot_dashboard.
37 .. moduleauthor:: Ze'ev Klapow, Aaron Blasdel <ablasdel@gmail.com>
39 This module provides a set of standard widgets for using with the Dashboard class.
41 To use them you must provide instances of them to your dashboard in its :func:`get_widgets` method. For example::
43 from rqt_robot_dashboard.dashboard import Dashboard
44 from rqt_robot_dashboard.widgets import MonitorDashWidget, ConsoleDashWidget, BatteryDashWidget
46 class MyDashboard(Dashboard):
47 def get_widgets(self):
48 self.monitor = MonitorDashWidget(self.context)
49 self.console = ConsoleDashWidget(self.context)
50 self.battery = BatteryDashWidget(self.context)
52 return [[self.monitor, self.console],[self.battery]]
54 Would create a simple dashboard with the ability to open a rqt_robot_monitor and a ROS console and monitor the battery.
57 from .icon_tool_button
import IconToolButton
58 from .battery_dash_widget
import BatteryDashWidget
59 from .console_dash_widget
import ConsoleDashWidget
60 from .menu_dash_widget
import MenuDashWidget
61 from .monitor_dash_widget
import MonitorDashWidget
62 from .nav_view_dash_widget
import NavViewDashWidget