Beispiel #1
0
def main(argv=sys.argv):
    plugin = 'rqt_reconfigure.param_plugin.ParamPlugin'
    main = Main(filename=plugin)
    sys.exit(
        main.main(argv,
                  standalone=plugin,
                  plugin_argument_provider=ParamPlugin.add_arguments))
Beispiel #2
0
def main():
    rqt_main = Main()
    sys.exit(
        rqt_main.main(
            sys.argv,
            standalone=
            'rqt_joint_trajectory_controller.joint_trajectory_controller.JointTrajectoryController'
        ))
Beispiel #3
0
def main(args=None):
    """The main function used to start up the rqt note taker."""
    rclpy.init(args=args)

    try:
        plugin = "march_rqt_note_taker"
        main_plugin = Main(filename=plugin)
        sys.exit(main_plugin.main(standalone=plugin))

    except KeyboardInterrupt:
        pass

    rclpy.shutdown()
def main(args=None):
    """
    The main function used to start up the rqt input device.
    """
    rclpy.init(args=args)

    try:
        plugin = "rqt_input_device"
        main_plugin = Main(filename=plugin)
        sys.exit(main_plugin.main(standalone=plugin))

    except KeyboardInterrupt:
        pass

    rclpy.shutdown()
Beispiel #5
0
def main(node_name='master_info', title='Master Information', console=True):
    display_available = True if 'DISPLAY' in os.environ.keys() else False
    try:
        import rocon_qt_master_info
        from rqt_gui.main import Main
        qt_available = True
    except ImportError:
        qt_available = False
        if display_available and not console:
            print(rocon_console.red + "WARNING: rqt plugin not found, console output only (hint: install rocon_qt_master_info)." + rocon_console.reset)

    if console or not display_available or not qt_available:
        console_only_main(node_name, title)
    else:
        main = Main()
        sys.exit(main.main(argv=sys.argv, standalone='rocon_qt_master_info'))
Beispiel #6
0
        pass

    def shutdown(self):
        """
        Overridden.

        Close threads.

        @raise RuntimeError:
        """
        try:
            #self._node_monitor_thread.join()  # No effect
            self._is_checking_nodes = False
            self._node_monitor_thread = None
            #self._param_check_thread.join()

            self._is_checking_params = False
            self._param_check_thread = None
        except RuntimeError as e:
            rospy.logerr(e)
            raise e


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This moveites this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_moveit'))
Beispiel #7
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_ocare.ocare_module.MyPlugin'))

#!/usr/bin/env python

import sys
import rospkg
import time
from rqt_gui.main import Main


def add_arguments(parser):
    group = parser.add_argument_group('Options for rqt_compass plugin')
    group.add_argument('topic',
                       nargs='?',
                       help='The topic name to subscribe to')


main = Main()
sys.exit(
    main.main(sys.argv,
              standalone='remote_compass/MyPlugin',
              plugin_argument_provider=add_arguments))
Beispiel #9
0
#!/usr/bin/env python

import sys

from tools.connection_handler.src.ConnectionHandler import ConnectionHandler
from rqt_gui.main import Main

main = Main(filename='ConnectionHandler')
sys.exit(main.main(standalone='ConnectionHandler'))
Beispiel #10
0
#!/usr/bin/env python

# eus_gui.py

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone="rqt_hrpsys_eus"))
Beispiel #11
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_hrpsys_imagesnapshot'))

Beispiel #12
0
#############################################################################################################
# EVENT METHODS
#############################################################################################################
    def keyPressEvent(self, QKeyEvent):
        key = QKeyEvent.key()
        if int(key) == 82: # r
            self.reset()
        elif int(key) == 68: # d
            self.debug()
        elif int(key) == 81: # q
            sys.exit()
        else:
            print("Unknown key option: " + str(key))


class IRLGuiPlugin(Plugin):
    def __init__(self, context):
        super(IRLGuiPlugin, self).__init__(context)
        if context.serial_number() > 1:
            raise RuntimeError("You may not run more than one instance of visual_servoing_gui.")
        self.setObjectName("Visual Servoing Plugin")
        self._widget = IRLGuiWidget()
        context.add_widget(self._widget)

if __name__ == '__main__':

    main = Main()
    print('run rqt now')
    sys.exit(main.main(sys.argv, standalone='IRLGuiPlugin'))
Beispiel #13
0
def main():

    plugin = 'balloon_color_picker'
    main = Main(filename=plugin)
    sys.exit(main.main(standalone=plugin))
Beispiel #14
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='pandora_rqt_gui'))
Beispiel #15
0

#############################################################################################################
# EVENT METHODS
#############################################################################################################
    def keyPressEvent(self, QKeyEvent):
        key = QKeyEvent.key()
        if int(key) == 82: # r
            self.reset()
        elif int(key) == 68: # d
            self.debug()
        elif int(key) == 81: # q
            sys.exit()
        else:
            print("Unknown key option: " + str(key))


class IRLGuiPlugin(Plugin):
    def __init__(self, context):
        super(IRLGuiPlugin, self).__init__(context)
        if context.serial_number() > 1:
            raise RuntimeError("You may not run more than one instance of visual_servoing_gui.")
        self.setObjectName("Visual Servoing Plugin")
        self._widget = IRLGuiWidget()
        context.add_widget(self._widget)

if __name__ == '__main__':
    main = Main()
    print('run rqt now')
    sys.exit(main.main(sys.argv, standalone='irl_gui.irl_gui.IRLGuiPlugin'))
Beispiel #16
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='ros_mia_rqt_plugin'))
Beispiel #17
0
#!/usr/bin/env python

# url: http://answers.ros.org/question/124706/how-to-run-a-newly-created-rqt-plugin/

import sys

from rqt_gui.main import Main

if __name__ == '__main__':
    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_li3ds'))
#!/usr/bin/env python

import sys

from gui.ChooseSimulator import ChooseSimulator
from rqt_gui.main import Main

plugin = "ChooseSimulator"
main = Main(filename=plugin)
sys.exit(main.main(standalone=plugin))
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_hrpsys_triangle'))

Beispiel #20
0
#!/usr/bin/env python

# eus_gui.py

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_hrpsys_eus'))

def main():
    plugin = 'dynamic_stack_decider_visualization.dsd_visualization_plugin.DsdVizPlugin'
    main = Main(filename=plugin)
    sys.exit(main.main(standalone=plugin))
Beispiel #22
0
#!/usr/bin/env python2

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='input_plugin'))
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='esterel_plan_viewer'))
Beispiel #24
0
#!/usr/bin/env python

import sys

import roslib

pkg = 'skynav_gui'
roslib.load_manifest(pkg)

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone=pkg))

        instance_settings.set_value('splitter', self._splitter.saveState())

    def restore_settings(self, plugin_settings, instance_settings):
        if instance_settings.contains('splitter'):
            self._splitter.restoreState(instance_settings.value('splitter'))
        else:
            self._splitter.setSizes([100, 100, 200])

    def get_filter_text(self):
        """
        :rtype: QString
        """
        return self.filter_lineedit.text()

    def _filter_key_changed(self):
        self._nodesel_widget.set_filter(self._text_filter)

    #TODO: This method should be integrated into common architecture. I just
    # can't think of how to do so within current design.
    def emit_sysmsg(self, msg_str):
        self.sig_sysmsg.emit(msg_str)


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This launches this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_reconfigure'))
#!/usr/bin/env python3

import sys
from rqt_gui.main import Main

main = Main()
sys.exit(main.main(standalone='rqt_plugins.agent_dashboard.AgentDashboard'))
        instance_settings.set_value('splitter', self._splitter.saveState())

    def restore_settings(self, plugin_settings, instance_settings):
        if instance_settings.contains('splitter'):
            self._splitter.restoreState(instance_settings.value('splitter'))
        else:
            self._splitter.setSizes([100, 100, 200])

    def get_filter_text(self):
        """
        :rtype: QString
        """
        return self.filter_lineedit.text()

    def _filter_key_changed(self):
        self._nodesel_widget.set_filter(self._text_filter)

    #TODO: This method should be integrated into common architecture. I just
    # can't think of how to do so within current design.
    def emit_sysmsg(self, msg_str):
        self.sig_sysmsg.emit(msg_str)


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This launches this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_reconfigure'))
Beispiel #28
0
        pass

    def shutdown(self):
        """
        Overridden.

        Close threads.

        @raise RuntimeError:
        """
        try:
            #self._node_monitor_thread.join()  # No effect
            self._is_checking_nodes = False
            self._node_monitor_thread = None
            #self._param_check_thread.join()

            self._is_checking_params = False
            self._param_check_thread = None
        except RuntimeError as e:
            rospy.logerr(e)
            raise e


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This moveites this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_moveit'))
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='search_position'))
#!/usr/bin/env python

import sys
from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='behave_viewer.dotmat.DotMatViewer'))
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv,standalone='mobileman_gui.quick_access_tool.QuickAccessTool'))
Beispiel #32
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_control/rqtControl'))
Beispiel #33
0
#!/usr/bin/env python

import sys
import os

pkg_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../src')
sys.path.insert(0, pkg_path)

from example_gui_pub import _example_gui_pub_module
from rqt_gui.main import Main

plugin = 'ExampleGuiPub'
main = Main(filename=plugin)
sys.exit(main.main(standalone=plugin))

#!/usr/bin/env python
import sys

from rqt_gui.main import Main

main = Main()
sys.exit(
    main.main(
        sys.argv,
        standalone=
        'manipulator_control_gui.manipulator_dashboard.ManipulatorDashboard'))
        rospy.logdebug('_refresh_launches package={} instance_list={}'.format(
            package, _launch_instance_list))

        self._launchfile_instances = [
            x.split('/')[1] for x in _launch_instance_list
        ]

        self._combobox_launchfile_name.clear()
        self._combobox_launchfile_name.addItems(self._launchfile_instances)

    def save_settings(self, plugin_settings, instance_settings):
        # instance_settings.set_value('splitter', self._splitter.saveState())
        pass

    def restore_settings(self, plugin_settings, instance_settings):
        #        if instance_settings.contains('splitter'):
        #            self._splitter.restoreState(instance_settings.value('splitter'))
        #        else:
        #            self._splitter.setSizes([100, 100, 200])
        pass


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This launches this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_launch'))
Beispiel #36
0
#!/usr/bin/env python

import sys
from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='behave_viewer.web.Web'))
        rospy.logdebug('_refresh_launches package={} instance_list={}'.format(
                                                       package,
                                                       _launch_instance_list))

        self._launchfile_instances = [x.split('/')[1]
                                      for x in _launch_instance_list]

        self._combobox_launchfile_name.clear()
        self._combobox_launchfile_name.addItems(self._launchfile_instances)

    def save_settings(self, plugin_settings, instance_settings):
        # instance_settings.set_value('splitter', self._splitter.saveState())
        pass

    def restore_settings(self, plugin_settings, instance_settings):
#        if instance_settings.contains('splitter'):
#            self._splitter.restoreState(instance_settings.value('splitter'))
#        else:
#            self._splitter.setSizes([100, 100, 200])
        pass


if __name__ == '__main__':
    # main should be used only for debug purpose.
    # This launches this QWidget as a standalone rqt gui.
    from rqt_gui.main import Main

    main = Main()
    sys.exit(main.main(sys.argv, standalone='rqt_launch'))
#!/usr/bin/env python

# rosping_gui.py

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='rqt_hrpsys_rosping'))