Classes | |
class | LaptopBatteryMonitor |
Functions | |
def | _check_battery_info |
def | _check_battery_state |
def | _laptop_charge_to_diag |
def | _read_number |
def | _read_string |
def | _strip_A |
def | _strip_Ah |
def | _strip_V |
def | slerp |
Variables | |
tuple | bm = LaptopBatteryMonitor() |
dictionary | diag_level_to_msg |
tuple | r = rospy.Rate(1.0) |
dictionary | state_to_val |
def laptop_battery._check_battery_info | ( | _battery_acpi_path | ) | [private] |
Definition at line 110 of file laptop_battery.py.
def laptop_battery._check_battery_state | ( | _battery_acpi_path | ) | [private] |
@return SmartBatteryStatus
Definition at line 148 of file laptop_battery.py.
def laptop_battery._laptop_charge_to_diag | ( | laptop_msg | ) | [private] |
Definition at line 199 of file laptop_battery.py.
def laptop_battery._read_number | ( | filename, | |
default = 0 |
|||
) | [private] |
Definition at line 103 of file laptop_battery.py.
def laptop_battery._read_string | ( | filename, | |
default = "" |
|||
) | [private] |
Definition at line 95 of file laptop_battery.py.
def laptop_battery._strip_A | ( | raw_val | ) | [private] |
Definition at line 75 of file laptop_battery.py.
def laptop_battery._strip_Ah | ( | raw_val | ) | [private] |
Definition at line 53 of file laptop_battery.py.
def laptop_battery._strip_V | ( | raw_val | ) | [private] |
Definition at line 66 of file laptop_battery.py.
def laptop_battery.slerp | ( | filename | ) |
Definition at line 88 of file laptop_battery.py.
tuple laptop_battery::bm = LaptopBatteryMonitor() |
Definition at line 305 of file laptop_battery.py.
dictionary laptop_battery::diag_level_to_msg |
00001 { DiagnosticStatus.OK: 'OK', 00002 DiagnosticStatus.WARN: 'Warning', 00003 DiagnosticStatus.ERROR: 'Error' }
Definition at line 144 of file laptop_battery.py.
tuple laptop_battery::r = rospy.Rate(1.0) |
Definition at line 307 of file laptop_battery.py.
dictionary laptop_battery::state_to_val |
00001 {'charged': SmartBatteryStatus.CHARGED, 00002 'full': SmartBatteryStatus.CHARGED, 00003 'charging': SmartBatteryStatus.CHARGING, 00004 'discharging': SmartBatteryStatus.DISCHARGING, 00005 'unknown': SmartBatteryStatus.CHARGING, }
Definition at line 138 of file laptop_battery.py.