Package node_manager_fkie :: Module update_handler :: Class UpdateHandler
[frames] | no frames]

Class UpdateHandler

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt5.QtCore.QObject --+
                            |
                           UpdateHandler

A class to retrieve the state about ROS master from remote discovery node and publish it be sending a QT signal. To retrieve the state a new thread will be created.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
stop(self) source code
 
requestMasterInfo(self, masteruri, monitoruri, delayed_exec=0.0)
This method starts a thread to get the informations about the ROS master by the given RCP uri of the master_discovery node.
source code

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

Inherited from sip.simplewrapper: __new__

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

Class Variables

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Instance Variables
 
master_info_signal(...)
master_info_signal is a signal, which is emitted, if a new master_discovery_fkie.MasterInfo is retrieved.
source code
 
master_errors_signal(...)
master_errors_signal is a signal (masteruri, error list) with errors which are occured on remote master_discovery.
source code
 
error_signal(...)
error_signal is a signal (masteruri, error message), which is emitted, if an error while retrieving a master info was occurred.
source code
 
timediff_signal(...)
timediff_signal is a signal (masteruri, time difference), which is emitted after the difference of time to the remote host is determined.
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)

requestMasterInfo(self, masteruri, monitoruri, delayed_exec=0.0)

source code 

This method starts a thread to get the informations about the ROS master by the given RCP uri of the master_discovery node. If all informations are retrieved, a master_info_signal of this class will be emitted. If for given masteruri a thread is already running, it will be inserted to the requested updates. For the same masteruri only one requested update can be stored. On update error the requested update will be ignored. This method is thread safe.

Parameters:
  • masteruri (str) - the URI of the remote ROS master
  • monitoruri (str) - the URI of the monitor RPC interface of the master_discovery node
  • delayed_exec (float) - Delay the execution of the request for given seconds.