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

Class CapabilityTable

source code

PySide.QtGui.QTableWidget --+
                            |
                           CapabilityTable

The table shows all detected capabilities of robots in tabular view. The columns represents the robot and rows the capabilities. The cell of available capability contains a CapabilityControlWidget to show the state and manage the capability.

Instance Methods
 
__init__(self, parent=None) source code
 
updateCapabilities(self, masteruri, cfg_name, description)
Updates the capabilities view.
source code
 
removeConfig(self, cfg) source code
 
updateState(self, masteruri, master_info)
Updates the run state of the capability.
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.
  description_requested_signal = QtCore.Signal(str, str)
the signal is emitted by click on a header to show a description.
Method Details

updateCapabilities(self, masteruri, cfg_name, description)

source code 

Updates the capabilities view.

Parameters:
  • masteruri (str) - the ROS master URI of updated ROS master.
  • cfg_name (str) - The name of the node provided the capabilities description.
  • description (default_cfg_fkie.Description) - The capabilities description object.

removeConfig(self, cfg)

source code 
Parameters:
  • cfg (str) - The name of the node provided the capabilities description.

updateState(self, masteruri, master_info)

source code 

Updates the run state of the capability.

Parameters:
  • masteruri (str) - The ROS master, which sends the master_info
  • master_info (master_discovery_fkie.MasterInfo) - The state of the ROS master