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

Class UpdateHandler

source code

PySide.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 = QtCore.Signal(MasterInfo)
master_info_signal is a signal, which is emitted, if a new aster_discovery_fkie.MasterInfo is retrieved.
  error_signal = QtCore.Signal(str, str)
error_signal is a signal (masteruri, error message), which is emitted, if an error while retrieving a master info was occurred.
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.