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

Class CapabilityControlWidget

source code

PySide.QtGui.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, nodes, parent=None) source code
str
config(self)
Returns: the configuration defines this capability
source code
[str]
nodes(self)
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
 
on_on_clicked(self) source code
 
on_off_clicked(self) source code
Instance Variables
  start_nodes_signal = QtCore.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 = QtCore.Signal(str, list)
the signal is emitted to stop on masteruri the nodes described in the list.
Method Details

config(self)

source code 
Returns: str
the configuration defines this capability

nodes(self)

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.