Public Member Functions | Private Attributes | List of all members
rqt_pr2_dashboard.pr2_battery.PR2Battery Class Reference
Inheritance diagram for rqt_pr2_dashboard.pr2_battery.PR2Battery:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, context)
 
def set_power_state (self, msg)
 
def set_stale (self)
 

Private Attributes

 _ac_present
 
 _pct
 
 _power_consumption
 
 _time_remaining
 

Detailed Description

Dashboard widget to display PR2 battery state.

Definition at line 39 of file pr2_battery.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

def rqt_pr2_dashboard.pr2_battery.PR2Battery.set_stale (   self)

Definition at line 106 of file pr2_battery.py.

Member Data Documentation

rqt_pr2_dashboard.pr2_battery.PR2Battery._ac_present
private

Definition at line 69 of file pr2_battery.py.

rqt_pr2_dashboard.pr2_battery.PR2Battery._pct
private

Definition at line 67 of file pr2_battery.py.

rqt_pr2_dashboard.pr2_battery.PR2Battery._power_consumption
private

Definition at line 66 of file pr2_battery.py.

rqt_pr2_dashboard.pr2_battery.PR2Battery._time_remaining
private

Definition at line 68 of file pr2_battery.py.


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


rqt_pr2_dashboard
Author(s): Aaron Blasdel
autogenerated on Fri Dec 11 2020 03:39:03