Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
rqt_robot_dashboard.battery_dash_widget.BatteryDashWidget Class Reference
Inheritance diagram for rqt_robot_dashboard.battery_dash_widget.BatteryDashWidget:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def set_charging
def set_stale
def state
def unset_stale
def update_perc
def update_state
def update_time

Static Public Attributes

tuple state_changed = Signal(int)

Private Member Functions

def _update_state

Private Attributes

 __state
 _charge_icons
 _charging
 _icon_helper
 _icons
 _name
 _stale

Detailed Description

A Widget which displays incremental battery state, including a status tip.
To use this widget simply call :func:`update_perc` and :func:`update_time`
to change the displayed charge percentage and time remaining, respectively.

:param name: The name of this widget
:type name: str

Definition at line 40 of file battery_dash_widget.py.


Constructor & Destructor Documentation

def rqt_robot_dashboard.battery_dash_widget.BatteryDashWidget.__init__ (   self,
  name = 'Battery',
  icons = None,
  charge_icons = None,
  icon_paths = None,
  suppress_overlays = False,
  stale_icon = None 
)

Definition at line 51 of file battery_dash_widget.py.


Member Function Documentation

Definition at line 83 of file battery_dash_widget.py.

Definition at line 98 of file battery_dash_widget.py.

Set button to stale.

Not used by base dashboard implementation.

Definition at line 134 of file battery_dash_widget.py.

Read-only accessor for the widgets current state.

Definition at line 92 of file battery_dash_widget.py.

Definition at line 145 of file battery_dash_widget.py.

Update the displayed battery percentage.
The default implementation of this method displays in 20% increments

:param val: The new value to be displayed.
:type val: int

Definition at line 101 of file battery_dash_widget.py.

Set the state of this button.
This will also update the icon for the button based on the ``self._icons`` list

:raises IndexError: If state is not a proper index to ``self._icons``

:param state: The state to set.
:type state: int

Definition at line 111 of file battery_dash_widget.py.

Definition at line 127 of file battery_dash_widget.py.


Member Data Documentation

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 51 of file battery_dash_widget.py.

Definition at line 49 of file battery_dash_widget.py.


The documentation for this class was generated from the following file:


rqt_robot_dashboard
Author(s): Ze'ev Klapow
autogenerated on Sat Jun 8 2019 20:02:45