예제 #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))
예제 #2
0
def main():
    rqt_main = Main()
    sys.exit(
        rqt_main.main(
            sys.argv,
            standalone=
            'rqt_joint_trajectory_controller.joint_trajectory_controller.JointTrajectoryController'
        ))
예제 #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()
예제 #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'))
예제 #6
0
def main():
    sys.exit(Main().main(sys.argv, standalone='ros2_knowledge_graph_viewer.ros2_knowledge_graph.Ros2KnowledgeGraph'))
예제 #7
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))

예제 #8
0
#!/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'))
예제 #9
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'))
        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'))
def main():
    plugin = 'dynamic_stack_decider_visualization.dsd_visualization_plugin.DsdVizPlugin'
    main = Main(filename=plugin)
    sys.exit(main.main(standalone=plugin))
예제 #12
0
def main():
    sys.exit(Main().main(sys.argv, standalone='handeye_dashboard.plugin.HandEyeCalibration'))
예제 #13
0
#!/usr/bin/env python2

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='input_plugin'))
예제 #14
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'))

예제 #15
0
def main():

    plugin = 'balloon_color_picker'
    main = Main(filename=plugin)
    sys.exit(main.main(standalone=plugin))
예제 #16
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'))
예제 #17
0
#!/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='esterel_plan_viewer'))
예제 #19
0
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

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

예제 #20
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))

예제 #21
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'))

예제 #22
0
        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'))
예제 #23
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"))
#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='search_position'))
예제 #25
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'))
예제 #26
0
#!/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
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))
예제 #28
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'))
#!/usr/bin/env python3

import sys
from rqt_gui.main import Main

main = Main()
sys.exit(main.main(standalone='rqt_plugins.agent_dashboard.AgentDashboard'))
예제 #30
0
def main():
    """Run the plugin."""
    sys.exit(Main().main(sys.argv, standalone="rqt_dotgraph.rqt_dotgraph"))
예제 #31
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=
        'manipulator_control_gui.manipulator_dashboard.ManipulatorDashboard'))
예제 #33
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'))
예제 #34
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'))
예제 #36
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'))
예제 #37
0
        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'))
예제 #38
0
#!/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'))