Embed rqt plugins inside another rqt plugin
My goal is to use rqt_image_view
plugin (which is written in C++
) inside my own custom rqt
plugin (also in C++
). Unfortunately using an rqt
perspective is not an option for my application. Things I've tried:
- I've skimmed through the
rqt
code base, mainlyrqt_gui_cpp
andqt_gui_cpp
. I could not figure out how the whole system is laid out (i.e. howrqt
internally works). Is there any design documents regarding this? - I've also tried to use
pluginlib::ClassLoader
to loadrqt_image_view
, but it fails. The code sample is here.
It fails with the following error:
Error: According to the loaded plugin descriptions the class rqt_gui_cpp/Plugin with base class type Plugin does not exist. Declared types are
I might be using pluginlib
in a wrong way with rqt
plugins. I also think I might need to use the helper functions in qt_gui_cpp
to load the plugin. Any help/suggestion is really appreciated.
Asked by Mani on 2016-09-16 13:36:49 UTC
Comments
rqt_image_view probably has some kind of top-level QT widget type; can you use that widget directly?
Asked by ahendrix on 2016-09-16 13:45:12 UTC
@ahendrix I probably can move the code over and embed it directly in my plugin. I am trying to avoid code duplication. Also, I could not find any resource on ROS wiki/support/github regarding this. I think it will be a helpful feature if there is a way to do it.
Asked by Mani on 2016-09-16 13:49:13 UTC
Have you found any solution for this problem, @ahendrix?
Asked by adrianohrl on 2017-10-26 16:20:26 UTC
@Mani @ahendrix Please post if you have a solution regarding combine plugin with
rqt_image_view
.Asked by Gabbar on 2019-02-21 00:23:18 UTC
I do not have a solution for this.
Asked by ahendrix on 2019-02-21 00:33:58 UTC