Dashboard widget to display PR2 battery state.
Definition at line 39 of file pr2_battery.py.
◆ __init__()
def rqt_pr2_dashboard.pr2_battery.PR2Battery.__init__ |
( |
|
self, |
|
|
|
context |
|
) |
| |
:param context: the plugin context
:type context: qt_gui.plugin.Plugin
Definition at line 44 of file pr2_battery.py.
◆ set_power_state()
def rqt_pr2_dashboard.pr2_battery.PR2Battery.set_power_state |
( |
|
self, |
|
|
|
msg |
|
) |
| |
Sets button state based on msg
:param msg: message containing the power state of the PR2
:type msg: pr2_msgs.PowerState
Definition at line 79 of file pr2_battery.py.
◆ set_stale()
def rqt_pr2_dashboard.pr2_battery.PR2Battery.set_stale |
( |
|
self | ) |
|
◆ _ac_present
rqt_pr2_dashboard.pr2_battery.PR2Battery._ac_present |
|
private |
◆ _pct
rqt_pr2_dashboard.pr2_battery.PR2Battery._pct |
|
private |
◆ _power_consumption
rqt_pr2_dashboard.pr2_battery.PR2Battery._power_consumption |
|
private |
◆ _time_remaining
rqt_pr2_dashboard.pr2_battery.PR2Battery._time_remaining |
|
private |
The documentation for this class was generated from the following file: