I have installed `ros-indigo-rqt-common-plugins`, but when I run `rqt --list-plugins`, it does not show anything. What is the problem?
Note:
I know the answer and am in the process of posting it. I didn't see a good place to add this to the ROS wiki, so I'm posting it here.
↧
rqt --list-plugins is empty even though I have some installed
↧
Error loading my rqt plugin from rqt_gui
Hello!
I have written a quick rqt plugin, starting with the roscreate-qt-pkg command to create a package and then following the rqt tutorials.
When trying to load the plugin in rqt_gui, I get the following error:
"Failed to load nodelet [control_centre/MyPlugin_1] of type [control_centre/MyPlugin]: Failed to load library /home/pioneer/ros_workspace/control_centre/lib/libcontrol_centre.so. Make sure that you are calling the PLUGINLIB_REGISTER_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Cannot load library: No manifest in /home/pioneer/ros_workspace/control_centre/lib/libcontrol_centre.so: control_centre__MyPlugin"
I am using ROS fuerte on Ubuntu 12.04.
My manifest.xml is the following:
...
My plugin.xml is the following:
Controls for toggling various rescueneer robot features. system-help ..
My CMakeLists.txt is the following:
##############################################################################
# Rosbuild2
##############################################################################
if(ROSBUILD)
include(rosbuild.cmake OPTIONAL)
return()
endif()
##############################################################################
# CMake
##############################################################################
cmake_minimum_required(VERSION 2.4.6)
##############################################################################
# Ros Initialisation
##############################################################################
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#include_directories( ${PROJECT_SOURCE_DIR}/include/control_centre )
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE Debug)
##############################################################################
# Qt Environment
##############################################################################
rosbuild_include(qt_build qt-ros)
rosbuild_prepare_qt4(QtCore QtGui) # Add the appropriate components to the component list here
##############################################################################
# Sections
##############################################################################
set(CMAKE_INCLUDE_CURRENT_DIR ON)
file(GLOB QT_FORMS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ui/*.ui)
file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources/*.qrc)
file(GLOB_RECURSE QT_MOC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/control_centre/*.hpp)
QT4_ADD_RESOURCES(QT_RESOURCES_CPP ${QT_RESOURCES})
QT4_WRAP_UI(QT_FORMS_HPP ${QT_FORMS})
QT4_WRAP_CPP(QT_MOC_HPP ${QT_MOC})
##############################################################################
# Sources
##############################################################################
file(GLOB_RECURSE QT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS src/*.cpp)
##############################################################################
# Binaries
##############################################################################
rosbuild_add_library(control_centre ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP})
rosbuild_add_executable(control_centre ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP})
target_link_libraries(control_centre ${QT_LIBRARIES})
And finally, my source file has the following declaration at the bottom:
PLUGINLIB_DECLARE_CLASS(control_centre, MyPlugin, control_centre::MyPlugin, rqt_gui_cpp::Plugin)
I have also compared my code to that of rqt_image_view and I can't find the difference.
The code compiles and I can run it as a stand-alone application, but I can't seem to open it in rqt_gui. Thanks!
↧
↧
How to create an rqt plugin?
I am trying to create an plugin for rqt. So far I have followed the tutorial "rqt/Tutorials/Create your new rqt plugin" on the ROS wiki exactly, but when I type "rosrun rqt_mypkg rqt_mypkg" I get the following message:
Couldn't find executable named rqt_mypkg below /home/alan/catkin_ws/src/rqt_mypkg
Found the following, but they're either not files, or not executables:
/home/alan/catkin_ws/src/rqt_mypkg
/home/alan/catkin_ws/src/rqt_mypkg/src/rqt_mypkg
I have no idea what is wrong. Please help.
↧
RQT Multiple UI files
I am trying to create a GUI for my robot using the rqt package and I want to be able to change the display when a button is clicked.
I've got it working with one ui file but can't seem to change the ui files over. I can make the ui disappear completely but I can't get the second one to appear.
Does anyone have any experience using rqt or any suggestions that might help?
Thanks!
↧
ImportError for rqt plugin
Hello,
I want to create a rqt plugin for bagfile comparison called rqt_bag_comparison. Therefore I have followed the tutorial "Create your new rqt plugin", step by step.
When trying to start the plugin from the rqt_gui, I get the following error message:
> RosPluginProvider.load(rqt_bag_comparison/BagComparisonPlugin) exception raised in __builtin__.__import__(rqt_bag_comparison.bag_comparsion, [BagComparison]):
Traceback (most recent call last):
File "/opt/ros/groovy/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 77, in load
module = __builtin__.__import__(attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
ImportError: No module named bag_comparsion
Apparently, my module is not found. However, in the relative folder to where all my nodes are placed `rqt_bag_comparison/src/rqt_bag_comparison/` there is the file `bag_comparison.py`as well as `__init__.py`.
Is there anything I might have done wrong in the setup, that explains that the module cannot be found?
↧
↧
rqt_graph crashes
After running
$ rosrun rqt_graph rqt_graph
i get the following error msg:
PluginHandlerDirect._restore_settings() plugin "rqt_graph/RosGraph#0" raised an exception:
Traceback (most recent call last):
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 116, in _restore_settings
self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 202, in restore_settings
self._refresh_rosgraph()
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 226, in _refresh_rosgraph
self._update_graph_view(self._generate_dotcode())
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 259, in _update_graph_view
self._redraw_graph_view()
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py", line 292, in _redraw_graph_view
same_label_siblings=True)
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_dotgraph/dot_to_qt.py", line 254, in dotcode_to_qt_items
subgraph_nodeitem = self.getNodeItemForSubgraph(subgraph, highlight_level)
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_dotgraph/dot_to_qt.py", line 83, in getNodeItemForSubgraph
bb = subgraph.attr['bb'].strip('"').split(',')
KeyError: 'bb'
↧
build rqt from source?
How do I build rqt from source on ubuntu/indigo? Instructions on using a catkin workspace on the ros wiki page are incomplete. I'm looking for just a few instructions like mkdir build/cd build/cmake ../make etc (those that exact sequence doesn't work here).
Thanks!
Steve
↧
How to Add Callbacks for a QTWidget in ROS?
I am intending to develop a user interface using rqt in ros. I have developed a user interface containing a QTPushButton and QTLabel in QT Designer. I have imported this ui file into my Python Plugin. So, when I run the plugin, the user interface does pop up. But now I want to add a callback to the PushButton. So, that if I press the Button then the label should show the text
"Button Clicked". I have tried many code snippets, but somehow nothing happens when I click the Button.
Can somebody please help. It is very urgent. Can somebody write the actual code for the callback.
My Plugin.py file is given below:
import os
import rospy
import rospkg
from qt_gui.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtGui import QWidget, QPushButton, QLabel
class MyPlugin(Plugin):
def __init__(self, context):
super(MyPlugin, self).__init__(context)
self.setObjectName('MyPlugin')
from argparse import ArgumentParser
parser = ArgumentParser()
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()
# Get path to UI file which should be in the "resource" folder of this package
ui_file = os.path.join(rospkg.RosPack().get_path('rqt_mypkg'), 'resource', 'mainwindow.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')
# Show _widget.windowTitle on left-top of each plugin (when
# it's set in _widget). This is useful when you open multiple
# plugins at once. Also if you open multiple instances of your
# plugin at once, these lines add number to make it easy to
# tell from pane to pane.
if context.serial_number() > 1:
self._widget.setWindowTitle(self._widget.windowTitle() + (' (%d)' % context.serial_number()))
# Add widget to the user interface
context.add_widget(self._widget)
self.text = QLabel("Data")
pushButton = QPushButton("Click Here")
pushButton.clicked.connect(self.buttonClicked)
def buttonClicked(self):
print("Button Clicked")
self.text.setText("Button Has been Clicked")
Also, my ui file looks like this "mainwindow.ui":
Form 0 0 400 300 Form 80 180 98 27 PushButton 100 80 66 17 TextLabel
↧
rqt AttributeError: 'NoneType' object has no attribute 'strip'
Hello! I am trying to run rqt_gragh as the tutorials/understanding topics said. But when I run that I got following error.
human@pangaea:~$ rosrun rqt_gui rqt_gui
Traceback (most recent call last):
File "/opt/ros/groovy/lib/rqt_gui/rqt_gui", line 8, in
p = r.get_path('rqt_gui')
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 188, in get_path
self._update_location_cache()
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 171, in _update_location_cache
list_by_path(self._manifest_name, path, cache)
File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 68, in list_by_path
resource_name = root.findtext('name').strip(' \n\r\t')
AttributeError: 'NoneType' object has no attribute 'strip'
I would really appreciate if anybody can tell me how to figure it out.Thanks!
↧
↧
RQT python plugin crashes randomly, but often
I'm using ROS Hydro on Ubuntu precise.
I started with the robot steering RQT plugin (http://wiki.ros.org/rqt/Plugins) which is a python plugin and I tweaked it to show about 20 or so of my robot Topic values in real time. Most of the robot Topic values are being published at 5 or 10 Hz. This new plugin likes to crash quite often, but there's no one thing that I can do to make it crash.
Do python RQT plugins have trouble displaying a lot of 5 to 10 Hz data? Should I throttle the data specifically for my user interface? Or am I barking up the wrong tree?
↧
multiple views in a single RViz instance? RQT?
I'm afraid I already know the answer, but does anyone know whether it is possible to configure RViz to give me 4 views in a single instance, similar to the *Quad View* in Blender:

I've been playing around with an `rqt_gui` instance and adding 4 RViz plugin instances, but somehow that seems a bit involved for what I'm trying to achieve, and I cannot get rid of the menu and status bars, leading to large gaps between the views. I'm not too sure about the resource usage of such a configuration either.
↧
When using rqt with Qt5, does not find in ROS internal "plugin_bridge.h"
I am trying to build the C++ example from the RQT tutorial, with a CMakeList and structure taken from rqt_image_view. I use Qt5 on Ubuntu with Cmake 2.8.12.2
When I run catkin_make everything in my project seems to run fine, but then it throws the following error.
In file included from /opt/ros/indigo/include/qt_gui_cpp/plugin.h:36:0,
from /opt/ros/indigo/include/rqt_gui_cpp/plugin.h:36,
from my_catkin_ws/net_viz/include/net_viz/test.h:5
from my_catkin_ws/net_viz/src/net_viz/test.cpp:1
/opt/ros/indigo/include/qt_gui_cpp/plugin_bridge.h:36:19: fatal error: QObject: No such file or directory
#include
^
It seems like it does not include Qt5 when linking with ros internal headers. Here is a gist of my CMakeLists.txt
http://pastebin.com/ac24neP5
This is a tarball of the full package.
https://mega.co.nz/#!lMs1iJBS!8sJXIgWfvvhSdP5CgDPHj68N4qil0A8CWXzysmSdo9Y
I don't know how to fix this, I thought about including qt5 explicitly, but it does get found right? And I also would not know where I can include it with the plugin_bridge.h
↧
Keep axis value in rqt_plot
Is it possible to keep axis value in rqt_plot for the next time (with either matplot or pyqtgraph) ?
When I reopen rqt_plot, it plot the last chosen topic but it does not keep the manual axis value that I have set previously.
↧
↧
How to change splash screen of Rviz when started as RQT plugin?
How do I change the splash screen of Rviz when started as RQT plugin?
I have not found any option for that. I only know of `rosrun rviz rviz --splash-screen ...` but this does not work if Rviz is started via an RQT .perspective file. Does anyone know how to change the splash image?
↧
For who have this error with rqt
I am on Porteus (Slackware Linux) so I have lots of issues to install ROS.
I had a problem with rqt_graph on ROS Hydro: Impossible to import rqt_gui.Main
If you have the problem too, you can make: python setup.py install in the rqt_gui package.
This is very helpfull !!
↧
RQT graph line colour
Hi there.
Im running the rqt graph code.as you know there is lot of line, and when you move the mouse at the line, there will be colour on the line like red, green, orange,blue and others.
So what are the meaning for each colour on the rqt graph?
regards.
↧
Rqt_myPlugin can't subscribe node
Hello guys,
I have a GUI as a rqt plugin and I want to subscribe a topic but I can't see my rqt_plugin node on the rqt_graph.
The topic which i want to subscribe is in the same machine, which I want to start my rqt_plugin. I have muliple machines and I start the rqt_graph at the another machine. At the another machine I see all the other topics and I see also the topic which I want to subscribe with my rqt_plugin.
Here is the creation of the publisher at machine A:
pubCmd = n.advertise("/sci/cmd", 10);
Here is the subscribing of the topic /sci/cmd at my rqt_plugin also at machine A:
ros::Subscriber sub = getNodeHandle().subscribe("/sci/cmd", 10, &ccgui::receiveSC, this);
I hope someone can help me :)
↧
↧
Raspbian Jessie ROS INDIGO installation
Hello all,
during christmas vacation I compiled ROS INDIGO on a Raspbian Jessie image with the following features / packages installed:
C-BERRY TFT framebuffer driver
ROS INDIGO
- ROS base
- RQT
- imageview
- geometry
- moveit
- rviz
- robot model
Here is the link for downloading:
https://drive.google.com/open?id=0Bzu4fg52rneFX1V3REhKTmM2VWc&authuser=0
ROS INDIGO
- ROS base
- RQT
- imageview
- geometry
- moveit
- rviz
- robot model
Here is the link for downloading:
https://drive.google.com/open?id=0Bzu4fg52rneFX1V3REhKTmM2VWc&authuser=0
↧
RQT nodes not starting
I have a clean ROS Indigo installation on an Ubuntu 64 14.04, but rqt nodes do not start. Here is the error message:
~/catkin_ws$ rosrun rqt_reconfigure rqt_reconfigure
Traceback (most recent call last):
File "/opt/ros/indigo/lib/rqt_reconfigure/rqt_reconfigure", line 6, in
from rqt_reconfigure.param_plugin import ParamPlugin
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_reconfigure/param_plugin.py", line 35, in
from rqt_gui_py.plugin import Plugin
File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_gui_py/plugin.py", line 33, in
from qt_gui.plugin import Plugin as Base
File "/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/plugin.py", line 31, in
from python_qt_binding.QtCore import QObject
File "/opt/ros/indigo/lib/python2.7/dist-packages/python_qt_binding/__init__.py", line 55, in
from .binding_helper import loadUi, QT_BINDING, QT_BINDING_MODULES, QT_BINDING_VERSION # @UnusedImport
File "/opt/ros/indigo/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 262, in
getattr(sys, 'SELECT_QT_BINDING_ORDER', None),
File "/opt/ros/indigo/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 90, in _select_qt_binding
raise ImportError("Could not find Qt binding (looked for: %s):\n%s" % (', '.join(["'%s'" % b for b in binding_order]), '\n'.join(error_msgs)))
ImportError: Could not find Qt binding (looked for: 'pyqt', 'pyside'):
ImportError for 'pyqt': /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so: undefined symbol: _ZTI13QStateMachine
ImportError for 'pyside': /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2: undefined symbol: _Z9qBadAllocv
Thanks for your help!
↧
rqt custom imageView. Showing images from different cameras
Hi to all,
On several occasions I have created rqt plugins for monitoring different devices, and for interacting with robots graphically.
In this occasion, i have a robot with eight video cameras and i want to visualize all of them in rqt.
My idea is to create a menu in "Plugins", with a group named Cameras and within it, all the cameras of the robot. I mean:
Cameras folder-new camera-photo Great user interface.
I should need eight different image_view with the corresponding topic preselected. How can i do it?
Thank you very much in advance ;)
Plugins |_ Cameras |_ Top_camera |_ Right_camera |_ Left_camera |_ ...I already know that exists the image_view plugin for this type of things. But i need that an end user can choose between all of the cameras easily. When the user select, for example, Top_camera, it should appear an image_view screen with the current images of that camera. (In other words, i need an image_view with the image topic already selected. Totally transparent for the user). Is possible to do this, reusing the already implemented image_view plugin? I am modifying the `plugin.xml` file to launch multiple instances, unsuccessfully:
↧