37 from python_qt_binding
import loadUi
38 from python_qt_binding.QtGui
import QIcon
39 from python_qt_binding.QtWidgets
import QLineEdit, QWidget
48 Works as a proxy between ROS Node 49 (more in particular, roslaunch.nodeprocess) and GUI. 52 __slots__ = [
'_run_id',
'master_uri',
'config',
'_process']
54 def __init__(self, rospack, master_uri, launch_config,
57 @type launch_node: roslaunch.core.Node 58 @type launch_config: roslaunch.core.Config 59 @type label_status: StatusIndicator 66 ui_file = os.path.join(self._rospack.get_path(
'rqt_launch'),
67 'resource',
'node_widget.ui')
73 self._respawn_toggle.setChecked(self._launch_config.respawn)
76 rospy.logdebug(
'_proxy.conf.namespace={} launch_config={}'.format(
77 self._launch_config.namespace, self._launch_config.name))
79 self._launch_config.namespace, self._launch_config.name)
81 self._label_pkg_name.setText(self._launch_config.package)
82 self._label_name_executable.setText(self._launch_config.type)
97 self._pushbutton_start_stop_node.toggled.connect(slot)
101 is_node_running = self._node_controller.is_node_running()
102 rospy.logdebug(
'NodeWidget.set_node_started running?={}'.format(is_node_running))
107 self._pushbutton_start_stop_node.setDown(
False)
113 self._pushbutton_start_stop_node.setDown(
True)