Package node_manager_fkie :: Module discovery_listener :: Class MasterListService
[frames] | no frames]

Class MasterListService

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  MasterListService

A class to retrieve the ROS master list from a ROS service. The service will be determine using master_discovery_fkie.interface_finder.get_listmaster_service()

Instance Methods
 
__init__(self) source code
 
stop(self) source code
 
retrieveMasterList(self, masteruri, wait=False)
This method use the service 'list_masters' of the master_discovery to get the list of discovered ROS master.
source code
 
refresh(self, masteruri, wait=False)
This method use the service 'refresh' of the master_discovery to refresh the discovered masters.
source code
Instance Variables
  masterlist_signal = Signal(str, str, list)
a signal with a list of the masters retrieved from the master_discovery service 'list_masters'.
  masterlist_err_signal = Signal(str, str)
this signal is emitted if an error while calling #list_masters' service of master_discovery is failed.
Method Details

retrieveMasterList(self, masteruri, wait=False)

source code 

This method use the service 'list_masters' of the master_discovery to get the list of discovered ROS master. The retrieved list will be emitted as masterlist_signal.

Parameters:
  • masteruri (str) - the ROS master URI
  • wait (boolean) - wait for the service

refresh(self, masteruri, wait=False)

source code 

This method use the service 'refresh' of the master_discovery to refresh the discovered masters.

Parameters:
  • masteruri (str) - the ROS master URI
  • wait (boolean) - wait for the service

Instance Variable Details

masterlist_signal

a signal with a list of the masters retrieved from the master_discovery service 'list_masters'. Parameter: masteruri, service name, [master_discovery_fkie.msg.ROSMaster, ...]
Value:
Signal(str, str, list)

masterlist_err_signal

this signal is emitted if an error while calling #list_masters' service of master_discovery is failed. Parameter: masteruri, error
Value:
Signal(str, str)