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

◆ __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.

Member Function Documentation

◆ 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)

Definition at line 106 of file pr2_battery.py.

Member Data Documentation

◆ _ac_present

rqt_pr2_dashboard.pr2_battery.PR2Battery._ac_present
private

Definition at line 69 of file pr2_battery.py.

◆ _pct

rqt_pr2_dashboard.pr2_battery.PR2Battery._pct
private

Definition at line 67 of file pr2_battery.py.

◆ _power_consumption

rqt_pr2_dashboard.pr2_battery.PR2Battery._power_consumption
private

Definition at line 66 of file pr2_battery.py.

◆ _time_remaining

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 Jul 26 2024 02:34:09