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

Class MasterListService

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt4.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)
x.__init__(...) initializes x; see help(type(x)) for signature
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

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables
 
masterlist_signal(...)
a signal with a list of the masters retrieved from the master_discovery service 'list_masters'.
source code
 
masterlist_err_signal(...)
this signal is emitted if an error while calling #list_masters' service of master_discovery is failed.
source code
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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(...)

source code 
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, ...]

masterlist_err_signal(...)

source code 
this signal is emitted if an error while calling #list_masters' service of master_discovery is failed. Parameter: masteruri, error