I have written a plugin for rqt that will automate the process of starting a number of nodes.
What I am working on now is integrating RViz into this system so that I can display the outputs of the other nodes in my system (point clouds for the most part).
What I would really like to be able to do is to have some level of control over RViz from my plugin. For example, dynamically adding or removing (or at least deactivating) displays (PointCloud2 displays). Or even asking RViz to load a new config file from my own plugin.
Unfortunately, this does not seem possible.
Then, my next thought was to create a perspective in rqt that will load both my plugin and RViz side-by-side, and then getting RViz to load a specific config file.
I can see that rqt_rviz allows you to specify the config file as a command line argument. I can also see that rqt allows you to specify command line arguments that should be passed to loaded plugins but only when you use "--standalone, --command-start-plugin, or --embed-plugin", which implies that you can only do this when you only starting a single plugin.
Unfortunately, I cant find a way to specify that rqt should pass command line argument to RViz (or at least all loaded plugins) when it loads while I am loading multiple plugins (via a perspective).
Is there any way for me to achieve anything that I have described above?
↧
How to load RViz with a specific config file when starting RQT
↧
RViz segfaults upon receiving mesh marker
I am running RViz and a custom plugin inside of rqt and I am trying to publish an STL mesh marker from my custom plugin and have RViz display it. The following is the message that I send to RViz (captured using rostopic echo)
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: /base_link
ns: model_mesh
id: 0
type: 10
action: 0
pose:
position:
x: 0.0
y: 0.0
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
scale:
x: 1.0
y: 1.0
z: 1.0
color:
r: 0.0
g: 1.0
b: 0.0
a: 1.0
lifetime:
secs: 0
nsecs: 0
frame_locked: False
points: []
colors: []
text: ''
mesh_resource: file:///home/bid019/models/CAD/exerciseBall.STL
mesh_use_embedded_materials: False
Whenever this message is sent RViz crashes. The following stack trace was obtained from gdb.
#0 0x00007fff9c4b0834 in ogre_tools::STLLoader::load(unsigned char*) () from /opt/ros/indigo/lib/librviz.so
#1 0x00007fff9c4937d8 in rviz::loadMeshFromResource(std::string const&) () from /opt/ros/indigo/lib/librviz.so
#2 0x00007fff8e443134 in rviz::MeshResourceMarker::onNewMessage(boost::shared_ptr> const> const&, boost::shared_ptr> const> const&) () from /opt/ros/indigo/lib/libdefault_plugin.so
#3 0x00007fff8e441a2f in rviz::MarkerBase::setMessage(boost::shared_ptr> const> const&) () from /opt/ros/indigo/lib/libdefault_plugin.so
#4 0x00007fff8e431e9b in rviz::MarkerDisplay::processAdd(boost::shared_ptr> const> const&) () from /opt/ros/indigo/lib/libdefault_plugin.so
#5 0x00007fff8e432513 in rviz::MarkerDisplay::processMessage(boost::shared_ptr> const> const&) () from /opt/ros/indigo/lib/libdefault_plugin.so
#6 0x00007fff8e4326bb in rviz::MarkerDisplay::update(float, float) () from /opt/ros/indigo/lib/libdefault_plugin.so
#7 0x00007fff9c467ff2 in rviz::DisplayGroup::update(float, float) () from /opt/ros/indigo/lib/librviz.so
#8 0x00007fff9c50857e in rviz::VisualizationManager::onUpdate() () from /opt/ros/indigo/lib/librviz.so
#9 0x00007ffff276887a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff276ca31 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ffff0bc7e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007ffff0bce4a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007ffff1bf2186 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#14 0x00007ffff27544dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff2784323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007ffff2781629 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff4233e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff4234048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff42340ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff27817a1 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007ffff0c69bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ffff27530af in QEventLoop::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff27533a5 in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007ffff2758b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007ffff1bae1f0 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#26 0x000000000052c6d5 in PyEval_EvalFrameEx ()
#27 0x000000000055c594 in PyEval_EvalCodeEx ()
#28 0x000000000052ca8d in PyEval_EvalFrameEx ()
#29 0x000000000055c594 in PyEval_EvalCodeEx ()
#30 0x000000000052ca8d in PyEval_EvalFrameEx ()
#31 0x000000000055c594 in PyEval_EvalCodeEx ()
#32 0x00000000005b7392 in PyEval_EvalCode ()
#33 0x0000000000469663 in ?? ()
#34 0x00000000004699e3 in PyRun_FileExFlags ()
#35 0x0000000000469f1c in PyRun_SimpleFileExFlags ()
#36 0x000000000046ab81 in Py_Main ()
#37 0x00007ffff7817ec5 in __libc_start_main (main=0x46ac3f , argc=2, argv=0x7fffffffdb48, init=, fini=, rtld_fini=, stack_end=0x7fffffffdb38) at libc-start.c:287
#38 0x000000000057497e in _start ()
I also tried to have RViz running by itself and my plugin running in rqt, but this error still occurs. Can anyone tell me what is causing this error?
I am running Ubuntu 14.04 with the latest packages from apt-get.
Here is the STL file that is causing me problems (other meshes cause issues as well) [STL file](https://www.dropbox.com/s/9yyuanzs08tqqt6/exerciseBall.STL?dl=0)
And here is the [RViz config file](https://www.dropbox.com/s/xbo96r2ma2axda1/feature_fitting.rviz?dl=0) that I am using. This also has a MarkerArray and a PointCloud2 display set up, but at the moment no messages are being published to those displays.
↧
↧
Importing python module from another ROS package. [Import Error]
I followed tutorials and other questions relationated with this topic but I can't figure what I'm doing wrong.
http://wiki.ros.org/rqt/Tutorials/Create%20your%20new%20rqt%20plugin
http://answers.ros.org/question/11794/how-can-i-use-custom-python-functions-in-other-ros-packages/
http://docs.ros.org/api/catkin/html/howto/format2/installing_python.html
I want to include this node on my my_module.py
from flexbotics_control_nextage_teleop_ps3 import hiro_motion_savingpointsxml
and show me ImportError: No module named flexbotics_control_nextage_teleop_ps3.
---------------------------------------------
/catkin_ws_ruben
/build
/devel
/install
/src
/flexbotics_control_nextage_teleop_ps3
/scripts
|.....
|__init__.py
/src
/flexbotics_control_nextage_teleop_ps3
|hiro_motion_savingpointsxml.py
|__init__.py
/config
/launch
setup.py
__init__.py
CMakeLists.txt
/rqt_mypkg
/scripts
/src
/rqt_mypkg
|my_module.py
|my_module.pyc
|__init__.py
/resource
|MyPlugin.ui
setup.py
__init__.py
package.xml
CMakeLists.txt
-----------------------------------------------------------------------
rqt_mypkg:
CMakeList
cmake_minimum_required(VERSION 2.8.3)
project(rqt_mypkg)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
rospy
rqt_gui
rqt_gui_py
std_msgs
flexbotics_control_nextage_teleop_ps3
)
catkin_python_setup()
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs # Or other packages containing msgs
)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES rqt_mypkg
# CATKIN_DEPENDS rospy rqt_gui rqt_gui_py
# DEPENDS system_lib
CATKIN_DEPENDS message_runtime
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
install(PROGRAMS src/rqt_mypkg/my_module.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
-------------------------------
package:
rqt_mypkg 0.0.0 The rqt_mypkg package catkin rospy rqt_gui rqt_gui_py message_generation flexbotics_control_nextage_teleop_ps3 rospy rqt_gui rqt_gui_py flexbotics_control_nextage_teleop_ps3 message_runtime
-----------------------------------------------------------------------------------------------
setup.py
#!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['rqt_mypkg'],
package_dir={'': 'src'}
)
setup(**d)
------------------------------------------------------------------------------------------------
Errors:
RosPluginProvider.load(rqt_mypkg/My Plugin) exception raised in __builtin__.__import__(rqt_mypkg.my_module, [MyPlugin]):
Traceback (most recent call last):
File "/opt/ros/hydro/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)
File "/home/robin/catkin_ws_ruben/src/rqt_mypkg/src/rqt_mypkg/my_module.py", line 21, in
from flexbotics_control_nextage_teleop_ps3 import hiro_motion_savingpointsxml
ImportError: No module named flexbotics_control_nextage_teleop_ps3
PluginManager._load_plugin() could not load plugin "rqt_mypkg/My Plugin":
Traceback (most recent call last):
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 98, in load
self._load()
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 83, in load
raise e
ImportError: No module named flexbotics_control_nextage_teleop_ps3
Thanks for your time
↧
RQt cant find RViz display types
I just installed ROS Indigo from source on Fedora 21 64-bit using the instructions [given here](http://wiki.ros.org/indigo/Installation/Source).
I can run RViz by itself using
rosrun rviz rviz
and the display types load without issue.
However, running RQt and loading RViz (either as a standalone plugin (rqt -s rviz) or loading the RViz plugin from inside RQt) produces the following output.
[ERROR] [1425588584.371455364]: PluginlibFactory: The plugin for class 'rviz/Orbit' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::OrbitViewController
[ERROR] [1425588586.413082658]: PluginlibFactory: The plugin for class 'rviz/MoveCamera' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::MoveTool
[ERROR] [1425588586.469523288]: PluginlibFactory: The plugin for class 'rviz/Interact' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::InteractionTool
[ERROR] [1425588586.518872307]: PluginlibFactory: The plugin for class 'rviz/Select' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::SelectionTool
[ERROR] [1425588586.569366385]: PluginlibFactory: The plugin for class 'rviz/SetInitialPose' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::InitialPoseTool
[ERROR] [1425588586.619079651]: PluginlibFactory: The plugin for class 'rviz/SetGoal' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::GoalTool
[ERROR] [1425588586.670386432]: PluginlibFactory: The plugin for class 'rviz/Grid' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::GridDisplay
[ERROR] [1425588586.712447209]: PluginlibFactory: The plugin for class 'rviz/Interact' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::InteractionTool
[ERROR] [1425588586.746693009]: PluginlibFactory: The plugin for class 'rviz/MoveCamera' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::MoveTool
[ERROR] [1425588586.780434149]: PluginlibFactory: The plugin for class 'rviz/Select' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::SelectionTool
[ERROR] [1425588586.814867996]: PluginlibFactory: The plugin for class 'rviz/FocusCamera' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::FocusTool
[ERROR] [1425588586.859166908]: PluginlibFactory: The plugin for class 'rviz/Measure' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::MeasureTool
[ERROR] [1425588586.904152462]: PluginlibFactory: The plugin for class 'rviz/SetInitialPose' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::InitialPoseTool
[ERROR] [1425588586.940956762]: PluginlibFactory: The plugin for class 'rviz/SetGoal' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::GoalTool
[ERROR] [1425588586.976175860]: PluginlibFactory: The plugin for class 'rviz/PublishPoint' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::PointTool
[ERROR] [1425588587.019269717]: PluginlibFactory: The plugin for class 'rviz/Orbit' failed to load. Error: MultiLibraryClassLoader: Could not create class of type rviz::OrbitViewController
Whats going on here?
Bidski
↧
about the rqt_pose_view
hello every one:
I am learning to use `rqt_pose_view`, but I get some problem , I just follow this website [wiki.ros.org/rqt_pose_view](http://wiki.ros.org/rqt_pose_view) to test it ,but there is no change with the pose_view showing , then I used the command `rostopic list`, but I find nothing about the pose message . Could anyone tell me how to use the pose_view to show the pose of robot or which topic the is subscribed by the `rqt_pose_view` ?
Thanks
↧
↧
rqt_plot x axis details
Hi,
I have a couple of questions regarding the x axis of rqt_plot.
1. Does rqt_plot plot data against epoch time or against the header in the data? And if epoch time then is it possible to plot against header stamps?
2. How does this change when plotting from rosbags? For rosbags, I believe the /use_sim_time param should be set and that uses /clock time. But is it possible to make it plot against either the wall time recorded on the bag or header stamps?
Thanks!
↧
ROS rqt plugin: ImportError (unrelated to previous post)
Hello all. I am new to creating Plugins in ROS rqt_gui. I recently had the Plugin user interface working (it would pop up the widgets described in a separate .ui file I created); however, this was only the front end user interface popping up with no functionality. Once I tried adding back end functionality (allowing sliders to actually change data for other nodes through topics) it has stopped working. The user interface no longer comes up at all. This happened immediately after adding back end functionality and running a catkin_make. My current error is:
RosPluginProvider.load(drone_GUI/My Plugin) exception raised in __builtin__.__import__(drone_GUI.my_module, [MyPlugin]):
Traceback (most recent call last):
File "/opt/ros/hydro/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 my_module
PluginManager._load_plugin() could not load plugin "drone_GUI/My Plugin":
Traceback (most recent call last):
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 98, in load
self._load()
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 83, in load
raise e
ImportError: No module named my_module
However, the module name has not changed since the catkin_make and it has been in the same location. The package paths are as follows:
/drone_GUI
/msg
colorRange.msg
/resource
widget.ui
/src
/drone_GUI
__init__.py
__init__.pyc
my_module.py
my_module.pyc
CMakeLists.txt
package.xml
plugin.xml
Thank you in advance for the help. I didn't include any of the files for brevity, but let me know what else you need and I'll post it quickly.
↧
Geo-Referenced Mapping interface for ROS/RVIZ
Hi Guys,
I found this video on Youtube of a QuadCopter mapping a building on a Georeferenced Map:
http://www.youtube.com/watch?v=G_vtm46eGtU
The interface looks to be RVIZ, with the map laid across the ground plane.
Does anyone know how to import a georeferenced Map, such as a geotiff, into RVIZ to get this same effect???
I am looking for a mapping interface that can take geo-referenced maps of satellite imagery and plot the robots path and sensor information on top of it, just like the video. I would also like to select GPS waypoints on the map, and send those to the robot to navigate too.
This needs to be done without connection to the internet.
The only other things I have found are:
**rosworldwind** - http://www.ros.org/wiki/rosworldwind: World Wind is not supported very well in Ubuntu
**ground_station** - http://www.ros.org/wiki/ground_station: Related to QuadCopters, and is no longer being updated
**gpsd_viewer**: http://www.ros.org/wiki/gpsd_viewer: Does not zoom in very good and is no longer being updated
**marble_plugin**: http://www.ros.org/wiki/marble_plugin: No high resolution Satellite images.
**Google Earth/Maps**: Google Earth/API has a lot of limitations and there licenses strictly forbids its use with autonomous vehicles. See section 10.2.C at https://developers.google.com/maps/terms
**osm_cartography**: It displays map features from Open Street Maps into rviz. OSM though does not provide satellite imagery unfortunately.
---
Looking for your guys thoughts/ideas.
Thank you
---
***UPDATE***
Some packages to maybe look into for implementation into rqt are: OSSIM (http://trac.osgeo.org/ossim/wiki) a QT geo app. Here is an example of their viewer: http://trac.osgeo.org/ossim/wiki/OssimPlanet . Also some others: http://www.osgeo.org/
↧
rqt plugin undefined symbol
Hello ALL
I have this strange problem that I encountered while trying to write new plugin. I followed the rqt plugin tutorial and I am able to build. But when starting rqt I can see plugin in Visualization menu. When I click I get this message
[ERROR] [1427841427.537909362]: Failed to load nodelet [gps_plot/GPSPlot_1] of type [gps_plot/GPSPlot]: Failed to load library /home/rob/projects/Test/devel/lib//libgps_plot.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/rob/projects/Test/devel/lib//libgps_plot.so: undefined symbol: _ZTVN8gps_plot9GPSPluginE)
RosPluginlibPluginProvider::load_explicit_type(gps_plot/GPSPlot) failed creating instance
PluginManager._load_plugin() could not load plugin "gps_plot/GPSPlot": RosPluginlibPluginProvider.load() could not load plugin "gps_plot/GPSPlot"
To get started I get one h and one cpp file. For now I commented out all Qt widget_ and ui_ to just build.
Also
ldd /home/rob/projects/Test/devel/lib//libgps_plot.so
does not show any missing libs
From above error I try to grep for strings
~/projects/Test/devel/lib$ strings libgps_plot.so | grep _ZTVN8gps_plot9GPSPluginE
_ZTVN8gps_plot9GPSPluginE
_ZTVN8gps_plot9GPSPluginE
nm -u libgps_plot.so | grep _ZTVN8gps_plot9GPSPluginE
U _ZTVN8gps_plot9GPSPluginE
So it is there
c++filt _ZTVN8gps_plot9GPSPluginE shows
vtable for gps_plot::GPSPlugin
I also made sure that I export class at bottom of cpp file
PLUGINLIB_EXPORT_CLASS(gps_plot::GPSPlugin, rqt_gui_cpp::Plugin)
So I am little puzzled by this. Any one knows or had this? I am thinking something is missing in my CMakeList file.
Also in above error there is double "//"before libgps_plot.so. Not sure how to fix this. I dod go over my plugin.xml and package.xml and CMakeLists.txt file over and over and I do not see anything odd.
load library /home/rob/projects/Test/devel/lib//libgps_plot.so
Here is my CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(gps_plot)
find_package(catkin REQUIRED COMPONENTS
dynamic_reconfigure
message_generation
roscpp
rqt_gui
rqt_gui_cpp
sensor_msgs
std_msgs
)
find_package(Boost REQUIRED COMPONENTS
program_options
)
find_package(Qt4 REQUIRED COMPONENTS
QtCore
QtGui
)
include(${QT_USE_FILE})
set(gps_plot_SRCS
src/gpsPlugin.cpp
)
set(gps_plot_HDRS
include/gps_plot/gpsPlugin.h
)
catkin_package(
INCLUDE_DIRS ${gps_plot_INCLUDE_DIRECTORIES}
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS dynamic_reconfigure message_generation roscpp rqt_gui rqt_gui_cpp sensor_msgs std_msgs
)
qt4_wrap_ui(
gps_plot_UIS_H
${gps_plot_UIS}
)
include_directories(
${Boost_INCLUDE_DIRS}
)
link_directories(
${Boost_LIBRARY_DIRS}i
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(
${PROJECT_NAME}
${gps_plot_SRCS}
)
target_link_libraries(
${PROJECT_NAME}
${catkin_LIBRARIES}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${Boost_LIBRARIES}
)
find_package(class_loader)
class_loader_hide_library_symbols(${PROJECT_NAME})
install(FILES plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
And my plugin.xml
Test GPS plotter using nmea_msgs/Sentence and sensor_msgs/NavSatFix messages folder Plugins related to visualization. applications-internet Test GPS and status points on an map
↧
↧
Problems with rqt in c++
Hi mates!
I'm trying to create my own rqt package in c++ and I'm following the rqt tutorials, the rqt_image_view package and the rqt_rviz package to do it.
When i use "catkin_make" I don't have problems, but when i try "rosrun rqt_mypkg rqt_mypkg" or iniciate it with rqt interface i have this error:
[ERROR] [1428354457.786962509]: Failed to load nodelet [my_namespace/MyPlugin_0] of type [my_namespace/MyPlugin]: Could not find library corresponding to plugin my_namespace/MyPlugin. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.
RosPluginlibPluginProvider::load_explicit_type(my_namespace/MyPlugin) failed creating instance
PluginManager._load_plugin() could not load plugin "my_namespace/MyPlugin": RosPluginlibPluginProvider.load() could not load plugin "my_namespace/MyPlugin"
terminate called after throwing an instance of 'boost::exception_detail::clone_impl>'
pure virtual method called
terminate called recursively
Abortado (`core' generado)
Could you help me?
↧
Problems with rqt in C++
Hi mates!
I'm trying to create my own rqt package in c++ and I'm following the rqt tutorials, the rqt_image_view package and the rqt_rviz package to do it.
When i use "catkin_make" I don't have problems, but when i try "rosrun rqt_mypkg rqt_mypkg" or iniciate it with rqt interface i have this error:
[ERROR] [1428354457.786962509]: Failed to load nodelet [my_namespace/MyPlugin_0] of type [my_namespace/MyPlugin]: Could not find library corresponding to plugin my_namespace/MyPlugin. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.
RosPluginlibPluginProvider::load_explicit_type(my_namespace/MyPlugin) failed creating instance
PluginManager._load_plugin() could not load plugin "my_namespace/MyPlugin": RosPluginlibPluginProvider.load() could not load plugin "my_namespace/MyPlugin"
terminate called after throwing an instance of 'boost::exception_detail::clone_impl>'
pure virtual method called
terminate called recursively
Abortado (`core' generado)
Could you help me?
↧
rqt --list-plugins is empty even though I have some installed
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.
↧
How can I see the velocity response graph?
Hello ROS users:
I am using linux 14.04, Ros indigo and Gazebo2.
I would like to know how I can visualize the velocity response graph of my p3dx model.
I explain it: I have a p3dx model in Gazebo and I send angular and linear velocity to it with "rostopic pub..." , so I would like to visualize the velocity response of the model p3dx with rqt because I want to know the time constant of my model.
It seems like pose turtlebox in this tutorial http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics (point 1.5) but with /p3dx/cmd_vel topic to visualize.
How can I do that?
Thank you so much!
↧
↧
rqt: How to hide title bar and help icon of a plugin
I use rqt and have a perspective with several plugins/widgets.
As you can see in the example of the RViz plugin below I can hide e.g. the gear icon by locking and freezing the layout. However, I do not know how to get rid of the entire title bar. I only want to show the main widget area.
Is there a way to hide the title bar and the help icon?

↧
How to build on top of rqt_image_view?
Hello,
I already have rqt_image_view set up on my machine.
What I want to do is to create a new catkin package starting with rqt_image_view as a basis, and then modifying its GUI and code to serve my specific purposes. To be clear, I want to modify rqt_image_view, not use it inside my package.
My experience with Qt and .ui files is quite limited...
What I did so far was to copy the rqt_image_view files into a new catkin package, with some minor modifications to some of those files.
When I try to catkin_make, it fails since it cannot find a header file called ui_image_view.h, which I failed to find myself (https://github.com/ros-visualization/rqt_common_plugins/search?utf8=%E2%9C%93&q=ui_image_view.h).
Should that file be generated by Qt Creator or where should I find it exactly?
Please help!
↧
GUI noob - no prior experience with Qt or Rqt
- **Problem Statement:**
I have a USB camera stream and I can view these images multiple ways.
But now, I have to create a **GUI with say an image window** that is streaming these images on a node "Listener.py" and has some control options available to the user.
- **Example Scenario:**

I can see three buttons, and I need to do this :
onClick(Button1): Display Image1 on ImageWindow
onClick(Button2): Display Image2 on ImageWindow
onClick(Button3): Display Image3 on ImageWindow
How do I go about creating this GUI?
I don't need an exclusive code, but any/all links to **well-documented tutorials** is terribly appreciated.
I actually went over to rqt/tutorials page but found it a little overwhelming.
Posting here in the hope that I get out of noob status and other noobs can benefit from constructive answers as well.
↧
Very high latency when using ROS tools over WiFi
At a recent competition, we noted that ROS tools sometimes take extremely long to start up when running in less than perfect WiFi conditions. Other programs (multiple SSH connections to the robot) seemed to work fine and felt snappy, while starting up ROS tools like rviz and rqt took more than 5 minutes from start in terminal to UI actually coming up. Of course, some overhead is to be expected due to topic connections/negotiation with Master, but especially in case of rqt I don't see why it should take that long. We've been using ROS since years and were able to cope with pretty bad WiFi, but our most recent experience was pretty bad, so I'm looking for any pointers.
I do not rule out some sort of network misconfiguration on our part (routing tables etc.), so any suggestions what to look for are appreciated.
↧
↧
Error using rqt with Xming 6.9.0.31 through PuTTY
I am using Ubuntu 12.04 64-bit server in a Virtual Machine on my Win7 x86-64 laptop, I have been using text-only terminals with the VM all the time. I just installed ROS "hydro" base version on the VM using apt tools.
[u@ubuntu:~/ros/catkin_ws]$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
By using Xming 6.9.0.31 X server on my Win7 host, I can use "turtlesim" app correctly and the turtle can be moved using keyboard app or rostopic commands.
But error occurs when I tried to use the "rqt" tool:
[u@ubuntu:~/ros/catkin_ws]$ rosrun rqt_graph rqt_graph
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
BTW, I was using Putty to forward the access to the DISPLAY server on my Win7 host from within the Ubuntu VM and the rviz seems can show up a Window on my Win7 host w/o issues.
Does anyone have any hints here?
Regards,
Yf
↧
How do I get started making RQT plugins?
Hey,
So I'm fairly new at ROS, QT and RQT, and I'm trying to figure out how everything "fits together."
I've looked at the guide for making RQT plugins yourself, but I'm still having some trouble figuring out how to actually set everything up.
Once I have a QT widget made, say with a couple of buttons and a text label, how do I actually add ROS functions to those? I thought I'd just add the ROS-related code to my QT project, but it keeps telling me it can't find the ros/ros.h header file that it needs when I try to build, and I can't find that file anywhere on my ros install.
Do I need my entire QT project to be in a catkin workspace, maybe? And how am I supposed to build it--using QT's built in "build" button, or through the catkin build commands?
So what I'm really looking for is some guide to get me from the start (e.g. no code) to maybe some hello world RQT widget; I just need to understand how I'm supposed to structure everything/ make everything fit together.
My setup: I need to work in C++ because some libraries I'm going to end up needing aren't available for python; I also want to "hard code" my QT widget (so not using a .ui file) because I need to populate some menus and drop downs while the program is running, which is hard to do when a .ui file is involved; I'm on ROS Indigo (can't use Hydro on Ubuntu 14.04)
Thanks a lot for any input you may have. :)
↧
rqt_graph errors
Hi. Following the Beginner Level tutorials in sequence and am currently at Tutorial 8. rqt_graph is throwing errors but at Tutorial 6 it didn't. GUI is visible but Node Graph is not.
This is the error output:
andrew@ubuntu:~$ rosrun rqt_graph rqt_graph
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'
↧