Package node_manager_fkie :: Module capability_table :: Class CapabilityControlWidget
[frames] | no frames]

Class CapabilityControlWidget

source code

python_qt_binding.QtWidgets.QFrame --+
                                     |
                                    CapabilityControlWidget

The control widget contains buttons for control a capability. Currently this are On and Off buttons. Additionally, the state of the capability is color coded.

Instance Methods
 
__init__(self, masteruri, cfg, ns, nodes, parent=None) source code
bool
hasConfigs(self)
Returns: True, if a configurations for this widget are available.
source code
[str]
nodes(self, cfg='')
Returns: the list with nodes required by this capability.
source code
 
setNodeState(self, running_nodes, stopped_nodes, error_nodes)
Sets the state of this capability.
source code
 
removeCfg(self, cfg) source code
 
updateNodes(self, cfg, ns, nodes) source code
 
on_on_clicked(self) source code
 
on_off_clicked(self) source code
Instance Variables
  start_nodes_signal = Signal(str, str, list)
the signal is emitted to start on host(described by masteruri) the nodes described in the list, Parameter(masteruri, config, nodes).
  stop_nodes_signal = Signal(str, list)
the signal is emitted to stop on masteruri the nodes described in the list.
Method Details

hasConfigs(self)

source code 
Returns: bool
True, if a configurations for this widget are available.

nodes(self, cfg='')

source code 
Returns: [str]
the list with nodes required by this capability. The nodes are defined by ROS full name.

setNodeState(self, running_nodes, stopped_nodes, error_nodes)

source code 

Sets the state of this capability.

Parameters:
  • running_nodes ([str]) - a list with running nodes.
  • stopped_nodes ([str]) - a list with not running nodes.
  • error_nodes ([str]) - a list with nodes having a problem.