Package node_manager_fkie :: Module default_cfg_handler :: Class DefaultConfigHandler
[frames] | no frames]

Class DefaultConfigHandler

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  DefaultConfigHandler

A class to retrieve the list of nodes from the default configuration service. The received node list will be published by sending a QT signal. To retrieve the configuration a new thread will be created.

Instance Methods
 
__init__(self) source code
 
stop(self) source code
 
requestNodeList(self, service_uri, service, delay_exec=0.0)
This method starts a thread to get the informations about the default configured nodes.
source code
 
requestDescriptionList(self, service_uri, service, delay_exec=0.0)
This method starts a thread to get the descriptions from the default configuration node.
source code
Class Variables
  node_list_signal = Signal(str, str, list)
node_list_signal is a signal, which is emitted, if a new list with nodes is retrieved.
  description_signal = Signal(str, str, list)
description_signal is a signal, which is emitted, if a new list with descriptions is retrieved.
  err_signal = Signal(str, str, str)
Method Details

requestNodeList(self, service_uri, service, delay_exec=0.0)

source code 

This method starts a thread to get the informations about the default configured nodes. If all informations are retrieved, a node_list_signal of this class will be emitted. If for given service a thread is already running, the request will be ignored. This method is thread safe.

Parameters:
  • service_uri (str) - the URI of the service
  • service (str) - the name of service to get the node list
  • delay_exec (float) - delayd the execution

requestDescriptionList(self, service_uri, service, delay_exec=0.0)

source code 

This method starts a thread to get the descriptions from the default configuration node. If all informations are retrieved, a description_signal of this class will be emitted. If for given service a thread is already running, the request will be ignored. This method is thread safe.

Parameters:
  • service_uri (str) - the URI of the service
  • service (str) - the name of service to get the description
  • delay_exec (float) - delayd the execution

Class Variable Details

node_list_signal

node_list_signal is a signal, which is emitted, if a new list with nodes is retrieved. The signal has the URI of the service, the name of the service and a list with node names as parameter.

Value:
Signal(str, str, list)

description_signal

description_signal is a signal, which is emitted, if a new list with descriptions is retrieved. The signal has the URI of the service, the name of the service and a list with descriptions (multimaster_msgs_fkie.srv.ListDescription Response) parameter.

Value:
Signal(str, str, list)