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

Class UpdateHandler

source code

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

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.