Package node_manager_fkie :: Module main_window :: Class MainWindow
[frames] | no frames]

Class MainWindow

source code

python_qt_binding.QtWidgets.QMainWindow --+
                                          |
                                         MainWindow

The class to create the main window of the application.

Instance Methods
 
__init__(self, files=[], restricted_to_one_master=False, parent=None)
Creates the window, connects the signals and init the class.
source code
 
on_hide_docks_toggled(self, checked) source code
 
on_currentChanged_tab(self, index) source code
 
readSettings(self) source code
 
storeSetting(self) source code
 
closeEvent(self, event) source code
 
finish(self) source code
str or None
getMasteruri(self)
Requests the ROS master URI from the ROS master through the RPC interface and returns it.
source code
 
setMasterOnline(self, masteruri, online=True) source code
 
removeMaster(self, masteruri)
Removed master with given master URI from the list.
source code
MasterViewProxy
getMaster(self, masteruri, create_new=True)
Returns: the Widget which represents the master of given ROS master URI.
source code
 
on_host_update_request(self, host) source code
 
on_host_description_updated(self, masteruri, host, descr) source code
 
on_capabilities_update(self, masteruri, address, config_node, descriptions) source code
 
on_remove_config(self, cfg) source code
 
on_master_list_err_retrieved(self, masteruri, error)
The callback method connected to the signal, which is emitted on an error while call the service to determine the discovered ROS master.
source code
 
hasDiscoveryService(self, minfo)
Test whether the new retrieved MasterInfo contains the master_discovery node.
source code
 
on_master_list_retrieved(self, masteruri, servic_name, master_list)
Handle the retrieved list with ROS master.
source code
 
on_master_state_changed(self, msg)
Handle the received master state message.
source code
 
on_master_monitor_err(self, msg) source code
 
on_master_info_retrieved(self, minfo)
Integrate the received master info.
source code
 
on_master_errors_retrieved(self, masteruri, error_list) source code
 
on_master_timediff_retrieved(self, masteruri, timediff) source code
 
on_master_info_error(self, masteruri, error) source code
 
on_conn_stats_updated(self, stats)
Handle the retrieved connection statistics.
source code
 
on_info_clicked(self) source code
 
on_master_log_clicked(self)
Tries to get the log of master_discovery node on the machine requested by a dialog.
source code
 
on_set_time_clicked(self) source code
 
on_refresh_master_clicked(self) source code
 
on_run_node_clicked(self)
Open a dialog to run a ROS node without a configuration
source code
 
on_rqt_plugin_start(self, name, plugin) source code
 
on_sync_dialog_released(self, released=False, masteruri=None, external_call=False) source code
 
on_sync_start(self, masteruri=None)
Enable or disable the synchronization of the master cores
source code
 
on_sync_stop(self, masteruri=None) source code
 
on_master_timecheck(self) source code
 
showMasterName(self, masteruri, name, timestamp, online=True)
Update the view of the info frame.
source code
 
timestampStr(self, timestamp) source code
 
updateDuplicateNodes(self) source code
 
on_master_table_pressed(self, selected) source code
 
on_master_table_clicked(self, selected)
On click on the sync item, the master_sync node will be started or stopped, depending on run state.
source code
 
on_master_table_activated(self, selected) source code
 
on_master_selection_changed(self, selected)
If a master was selected, set the corresponding Widget of the stacked layout to the current widget and shows the state of the selected master.
source code
 
setCurrentMaster(self, master)
Changes the view of the master.
source code
 
on_user_changed(self, user) source code
 
on_masterTableView_selection_changed(self, selected, deselected)
On selection of a master list.
source code
 
on_all_master_refresh_clicked(self)
Retrieves from the master_discovery node the list of all discovered ROS master and get their current state.
source code
 
on_discover_network_clicked(self) source code
 
on_start_robot_clicked(self)
Tries to start the master_discovery node on the machine requested by a dialog.
source code
 
poweroff_host(self, host) source code
 
rosclean(self, host) source code
 
on_load_launch_file(self, path, argv=[], masteruri=None)
Load the launch file.
source code
 
on_load_launch_as_default_bypkg(self, pkg, launch_file, master_proxy, args=[], host=None) source code
 
on_load_launch_as_default(self, path, host=None)
Load the launch file as default configuration.
source code
 
on_launch_edit(self, files, search_text='', trynr=1)
Opens the given files in an editor.
source code
 
on_launch_transfer(self, files)
Copies the selected file to a remote host :param file: A list with paths :type file: list of strings
source code
 
on_configfile_changed(self, changed, affected)
Signal hander to handle the changes of a loaded configuration file
source code
 
on_binaryfile_changed(self, changed, affected)
Signal hander to handle the changes started binaries.
source code
 
on_configparamfile_changed(self, changed, affected)
Signal handler to handle the changes of a configuration file referenced by a parameter value
source code
 
changeEvent(self, event)
Check for changed files, if the main gui is activated.
source code
 
on_start_nodes(self, masteruri, cfg, nodes) source code
 
on_stop_nodes(self, masteruri, nodes) source code
 
on_description_update(self, title, text, force=False) source code
 
on_description_update_cap(self, title, text) source code
 
on_description_anchorClicked(self, url) source code
 
keyPressEvent(self, event) source code
 
keyReleaseEvent(self, event)
Defines some of shortcuts for navigation/management in launch list view or topics view.
source code
 
image_mouseDoubleClickEvent(self, event)
Set the robot image
source code
 
mastername_mouseDoubleClickEvent(self, event)
Set the robot color
source code
Class Variables
  DELAYED_NEXT_REQ_ON_ERR = 5.0
Instance Variables
  diagnostics_signal = Signal(DiagnosticStatus)
the signal is emitted if a message on topic nm_notifier was reiceved (DiagnosticStatus)
  editor_dialogs
stores the open Editor
Method Details

getMasteruri(self)

source code 

Requests the ROS master URI from the ROS master through the RPC interface and returns it. The 'materuri' attribute will be set to the requested value.

Returns: str or None
ROS master URI

removeMaster(self, masteruri)

source code 

Removed master with given master URI from the list.

Parameters:
  • masteruri (str) - the URI of the ROS master

getMaster(self, masteruri, create_new=True)

source code 
Returns: MasterViewProxy
the Widget which represents the master of given ROS master URI. If no Widget for given URI is available a new one will be created.

on_master_list_err_retrieved(self, masteruri, error)

source code 

The callback method connected to the signal, which is emitted on an error while call the service to determine the discovered ROS master. On the error the local monitoring will be enabled.

hasDiscoveryService(self, minfo)

source code 

Test whether the new retrieved MasterInfo contains the master_discovery node. This is identified by a name of the contained 'list_masters' service.

Parameters:

on_master_list_retrieved(self, masteruri, servic_name, master_list)

source code 

Handle the retrieved list with ROS master.

  1. update the ROS Network view
Parameters:

on_master_state_changed(self, msg)

source code 

Handle the received master state message.

  1. update the ROS Network view
  2. enable local master monitoring, if all masters are removed (the local master too)
Parameters:

on_master_info_retrieved(self, minfo)

source code 

Integrate the received master info.

Parameters:

on_conn_stats_updated(self, stats)

source code 

Handle the retrieved connection statistics.

  1. update the ROS Network view
Parameters:

setCurrentMaster(self, master)

source code 

Changes the view of the master. :param master: the MasterViewProxy object or masteruri :type master: MasterViewProxy or str

on_load_launch_file(self, path, argv=[], masteruri=None)

source code 

Load the launch file. A ROS master must be selected first. :param path: the path of the launch file. :type path: str

on_load_launch_as_default(self, path, host=None)

source code 

Load the launch file as default configuration. A ROS master must be selected first. :param path: the path of the launch file. :type path: str :param host: The host name, where the configuration start. :type host: str (Default: None)

on_launch_edit(self, files, search_text='', trynr=1)

source code 

Opens the given files in an editor. If the first file is already open, select the editor. If search text is given, search for the text in files an goto the line. :param file: A list with paths :type file: list of strings :param search_text: A string to search in file :type search_text: str

on_configfile_changed(self, changed, affected)

source code 

Signal hander to handle the changes of a loaded configuration file

Parameters:
  • changed (str) - the changed file
  • affected (list) - the list of tuples with masteruri and launchfile, which are affected by file change

on_binaryfile_changed(self, changed, affected)

source code 

Signal hander to handle the changes started binaries.

Parameters:
  • changed (str) - the changed file
  • affected (list) - list of tuples(node name, masteruri, launchfile), which are affected by file change

on_configparamfile_changed(self, changed, affected)

source code 

Signal handler to handle the changes of a configuration file referenced by a parameter value

Parameters:
  • changed (str) - the changed file
  • affected (list) - the list of tuples with masteruri and launchfile, which are affected by file change