ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

fonstein's profile - activity

2019-07-15 05:39:10 -0500 received badge  Good Question (source)
2019-06-11 14:32:36 -0500 received badge  Famous Question (source)
2019-01-15 19:32:36 -0500 received badge  Notable Question (source)
2019-01-15 19:32:36 -0500 received badge  Popular Question (source)
2018-06-15 17:33:16 -0500 received badge  Notable Question (source)
2018-06-15 17:33:16 -0500 received badge  Famous Question (source)
2018-04-17 06:20:48 -0500 received badge  Nice Question (source)
2018-04-02 13:05:00 -0500 received badge  Student (source)
2018-01-28 18:05:55 -0500 received badge  Famous Question (source)
2017-08-21 06:58:17 -0500 received badge  Famous Question (source)
2017-06-12 04:34:19 -0500 received badge  Notable Question (source)
2017-05-30 00:20:56 -0500 received badge  Famous Question (source)
2017-04-27 12:09:40 -0500 commented answer rqt compass

Do you have any experience with QCompass? I've only made plugins based on components found in QtCreator and QCompass isn

2017-04-27 10:02:40 -0500 commented question rqt plugin crash when publisher node stops

I am not allowed to upload my log files due to not enough points. I get error: [Errno 104] Connection reset by peer in t

2017-04-25 05:18:03 -0500 received badge  Popular Question (source)
2017-04-24 14:40:40 -0500 commented question rqt plugin crash when publisher node stops

Hi, sorry for the late reply. I tried to run it again now and the console gives the following output: [1] 5128 segmen

2017-04-24 14:31:37 -0500 commented question rqt plugin crash when publisher node stops

Hi, sorry for the late reply. I tried to run it again now and the console gives the following output: [1] 5128 segmen

2017-04-21 02:28:15 -0500 commented question rqt plugin crash when publisher node stops

There is no error. rqt just closes.

2017-04-20 13:07:48 -0500 asked a question rqt plugin crash when publisher node stops

rqt plugin crash when publisher node stops I have made a rqt plugin that subscribes to a node. When that node stops, rqt

2017-03-23 12:16:28 -0500 asked a question rqt compass

Hi!

I want to make a compass plugin in rqt, but I'm finding it quite hard since it's not a widget for compass in qtCreator. Have anyone done this before or have any suggestions on how to do it/where to begin? I'm using python if that's relevant.

I've tried to implement this one from the link below, but I get errors on qwt that I can't figure out. https://github.com/SyllogismRXS/syllo...

2017-03-13 14:58:20 -0500 received badge  Notable Question (source)
2017-02-15 16:16:04 -0500 commented answer subscriber in rqt plugin python

I had to cast the data to String. There was also some bugs on the Subscriber, but with your tips on debugging I got it to work.

2017-02-15 16:16:04 -0500 received badge  Commentator
2017-02-15 12:47:27 -0500 commented answer subscriber in rqt plugin python

Thanks, that helped a lot. Got it to work now!

2017-02-13 02:43:43 -0500 received badge  Popular Question (source)
2017-02-09 13:17:53 -0500 asked a question subscriber in rqt plugin python

I'm writing a rqt plugin in python, but can't get the subscriber to work. I want the string from "controller/mode" to show in "lineControlMode". For some reason this doesn't happen. Hope some of you can help me.

import os
import rospkg
import rospy

from qt_gui.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtWidgets import QWidget, QGraphicsView
from std_msgs.msg import String

class MyPlugin(Plugin):

def __init__(self, context):
    #PLUGIN CODE
    super(MyPlugin, self).__init__(context)

    # Give QObjects reasonable names
    self.setObjectName('MyPlugin')
    rp = rospkg.RosPack()

    # Process standalone plugin command-line arguments
    from argparse import ArgumentParser
    parser = ArgumentParser()
    # Add argument(s) to the parser.
    parser.add_argument("-q", "--quiet", action="store_true",
                  dest="quiet",
                  help="Put plugin in silent mode")
    args, unknowns = parser.parse_known_args(context.argv())
    if not args.quiet:
        print 'arguments: ', args
        print 'unknowns: ', unknowns

    # Create QWidget
    self._widget = QWidget()
    ui_file = os.path.join(rp.get_path('rqt_vortex_control_mode'), 'resource', 'MyPlugin.ui')

    # Extend the widget with all attributes and children from UI file
    loadUi(ui_file, self._widget)

    # Give QObjects reasonable names
    self._widget.setObjectName('MyPluginUi')

    # Add widget to the user interface
    context.add_widget(self._widget)

    #MY CODE
    self._widget.lineControlMode.setReadOnly(True)
    self._widget.lineControlMode.setText("init")

    #Subscriber
    self.sub = rospy.Subscriber("/uranus_dp/controller/mode", String, self.callback)

def shutdown_plugin(self):
    self.sub.unregister()

def callback(self, mode):
    self._widget.lineControlMode.setText(mode)

Here is the link to my repository just in case: https://github.com/vortexntnu/rov-gui

2017-02-05 13:29:46 -0500 received badge  Popular Question (source)
2017-01-16 09:59:42 -0500 received badge  Notable Question (source)
2017-01-16 03:31:41 -0500 commented answer rqt plugin development

Did you figure out how to integrate it?

2017-01-15 10:42:10 -0500 received badge  Popular Question (source)
2017-01-14 06:53:41 -0500 asked a question rqt plugin development

I'm trying to make my own rqt plugin. I've been through the tutorials and been following this link so far: http://answers.ros.org/question/24939...

I've met a lot of problems, and most of them has to do with what files to use. I use Qt Creator to create the .ui file. My confusion is what other files do I need since there is a lot of files being produced by Qt. So far I've moved the .ui file into src.

Could someone make a overview or something to help my confusion?

2017-01-13 07:57:14 -0500 received badge  Scholar (source)
2017-01-13 07:57:03 -0500 answered a question Can't run rqt after removing plugin package

Thanks, that worked!

2017-01-13 07:00:29 -0500 asked a question Can't run rqt after removing plugin package

I've been trying to make my own rqt plugin. After a lot of back and forth, I finally got it to build. The problem now is that rqt won't run. I get the message listed below. In the last line, rqt_mypkg is listed as KeyError. This is a package I had once before, but is deleted from my workspace now. I've tried cleaning and deleting my workspace, removing and reinstalling rqt, removing and reinstalling ros but nothing works. Rqt still won't run. Anyone have any idea what is wrong?

 Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 454, in restore_settings
    self._restore_settings_save_obsolete()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 469, in _restore_settings_save_obsolete
    self._restore_settings_unload_obsolete_callback()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 493, in _restore_settings_unload_obsolete_callback
    self._restore_settings_load_missing()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 506, in _restore_settings_load_missing
    self._load_plugin_load(instance_id, self._restore_settings_load_missing_callback)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 225, in _load_plugin_load
    plugin_descriptor = self._plugin_descriptors[instance_id.plugin_id]
KeyError: 'rqt_mypkg/My Plugin'
2017-01-11 14:11:34 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

Thanks, that worked! I've gotten catkin to build now, but when I try to start rqt I get: RosPluginProvider._parse_plugin_xml() could not parse. Got any ideas as what the problem is? I've updated my repo

2017-01-09 07:42:38 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

I fixed the last error, but have a new one: catkin_ws/src/rqt_mypkg_test/include/rqt_cpp_test/my_plugin.h:25:7: error: ‘MyPluginWidget’ in namespace ‘Ui’ does not name a type

2017-01-09 04:51:57 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

Sorry for the late reply. Here is my repo: https://github.com/fonstein/rqt_test

2017-01-05 06:25:50 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

Also, the example you included in A; I can get the python plugin to work, but not the one for C++. The plugin shows, but it won't show

2017-01-05 06:25:50 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

The only thing is that it can find the other .h file that is included in the exact same way and located in the same folder. Any ideas why?

2017-01-05 06:25:49 -0500 commented answer How to turn existing Qt widgets into rqt plugin?

Hi! I've been following your guidance above. Thank you so much for a lot of help. However, I'm stuck. At this point I get an error similar as above regarding the .h file; catkin_ws/src/rqt_mypkg_test/include/rqt_cpp_test/ui_mainwindow.h:13:29: fatal error: QtWidgets/QAction: No such file or directo

2017-01-05 04:33:16 -0500 received badge  Supporter (source)