Classes. More...

Public Member Functions | |
| def | __init__ (self, period=5, callback_function=None, ros_master_uri=None) |
| def | is_available (self) |
| def | shutdown (self) |
Public Attributes | |
| pid | |
Private Member Functions | |
| def | _default_callback_function (self, new_master_found) |
| def | _wait_for_master (self) |
Private Attributes | |
| _callback_function | |
| _check_for_master_timer | |
| _ros_master_uri | |
| _sleep_period_seconds | |
Classes.
Spins up a loop which continuously checks for the availability of the ros master.
Definition at line 50 of file ros_masters.py.
| def rqt_wrapper.ros_masters.RosMasterMonitor.__init__ | ( | self, | |
period = 5, |
|||
callback_function = None, |
|||
ros_master_uri = None |
|||
| ) |
The callback should have the signature: void callback_function(bool new_master_found) :param int period: loop time for checking in seconds. :param func callback_function: execute user code if the state changed :param str ros_msater_uri: the url of the ros master to lookup (if None, checks env).
Definition at line 55 of file ros_masters.py.
|
private |
Definition at line 87 of file ros_masters.py.
|
private |
Definition at line 90 of file ros_masters.py.
| def rqt_wrapper.ros_masters.RosMasterMonitor.is_available | ( | self | ) |
Definition at line 81 of file ros_masters.py.
| def rqt_wrapper.ros_masters.RosMasterMonitor.shutdown | ( | self | ) |
Definition at line 84 of file ros_masters.py.
|
private |
Definition at line 74 of file ros_masters.py.
|
private |
Definition at line 78 of file ros_masters.py.
|
private |
Definition at line 67 of file ros_masters.py.
|
private |
Definition at line 73 of file ros_masters.py.
| rqt_wrapper.ros_masters.RosMasterMonitor.pid |
Definition at line 76 of file ros_masters.py.