Public Member Functions | |
def | __init__ |
def | init_ok |
def | publish_status |
Public Attributes | |
halt_srv | |
reset_srv | |
Private Member Functions | |
def | _check_status |
def | _halt_listeners |
def | _halt_test |
def | _on_heartbeat |
def | _reset_listeners |
def | _reset_state |
def | _reset_test |
Private Attributes | |
_diag_pub | |
_errors | |
_heartbeat_halted | |
_heartbeat_sub | |
_heartbeat_time | |
_latched_lvl | |
_listeners | |
_listeners_ok | |
_mutex | |
_snapshot_pub | |
_start_time | |
_status_pub | |
_was_ok |
TestMonitor class loads listeners, and polls them to check for status updates on the test
Definition at line 111 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::__init__ | ( | self | ) |
Definition at line 116 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_check_status | ( | self | ) | [private] |
Definition at line 209 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_halt_listeners | ( | self | ) | [private] |
Halt all listeners. Needs mutex.
Definition at line 197 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_halt_test | ( | self, | ||
srv | ||||
) | [private] |
Service callback for "halt_test"
Definition at line 178 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_on_heartbeat | ( | self, | ||
msg | ||||
) | [private] |
Definition at line 153 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_reset_listeners | ( | self | ) | [private] |
Reset all listeners. Needs mutex.
Definition at line 187 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_reset_state | ( | self | ) | [private] |
Reset state of monitor for startup or on reset. Needs mutex
Definition at line 156 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::_reset_test | ( | self, | ||
srv | ||||
) | [private] |
Service callback for "reset_test"
Definition at line 168 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::init_ok | ( | self | ) |
Returns whether the monitor initialized correctly. Used in unit tests.
Definition at line 147 of file pr2_hw_monitor.py.
def pr2_hardware_test_monitor::pr2_hw_monitor::TestMonitor::publish_status | ( | self | ) |
Called at 1Hz. Polls listeners, publishes diagnostics, test_status.
Definition at line 293 of file pr2_hw_monitor.py.
Definition at line 136 of file pr2_hw_monitor.py.
Definition at line 165 of file pr2_hw_monitor.py.
Definition at line 141 of file pr2_hw_monitor.py.
Definition at line 143 of file pr2_hw_monitor.py.
Definition at line 142 of file pr2_hw_monitor.py.
Definition at line 166 of file pr2_hw_monitor.py.
Definition at line 117 of file pr2_hw_monitor.py.
Definition at line 123 of file pr2_hw_monitor.py.
Definition at line 119 of file pr2_hw_monitor.py.
Definition at line 133 of file pr2_hw_monitor.py.
Definition at line 162 of file pr2_hw_monitor.py.
Definition at line 135 of file pr2_hw_monitor.py.
Definition at line 161 of file pr2_hw_monitor.py.
Definition at line 139 of file pr2_hw_monitor.py.
Definition at line 138 of file pr2_hw_monitor.py.