Creating rqt plugin
this is my package: https://github.com/azhar92/GUI-for-AV...
When I open rqt and try to open the plugin from the drop-down menu using the following steps
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
rqt --force-discover
I can see the name of my package when in the rqt gui, but when i click it,
I get the following error in the terminal output:
[ERROR] [1482121854.496133919]: Failed to load nodelet [rqt_test1/MyPlugin_1] of type [rqt_test1/MyPlugin]: MultiLibraryClassLoader: Could not create object of class type rqt_test1::MyPlugin as no factory exists for it. Make sure that the library exists and was explicitly loaded through MultiLibraryClassLoader::loadLibrary()
RosPluginlibPluginProvider::load_explicit_type(rqt_test1/MyPlugin) failed creating instance
PluginManager._load_plugin() could not load plugin "rqt_test1/MyPlugin": RosPluginlibPluginProvider.load() could not load plugin "rqt_test1/MyPlugin"
i think it has to do with the registration of the plugin. any form of guidance will be helpful. Thank you.
Plugin.xml : https://github.com/azhar92/GUI-for-AV...
Code:
<library path="lib/librqt_test1">
<class name="rqt_test1/MyPlugin" type="rqt_test1::MyPlugin" base_class_type="rqt_gui_cpp::Plugin">
<description>
4 buttons to switch between 4 different modes.
</description>
<qtgui>
<group>
<label>Visualization</label>
<statustip>Plugins related to visualization.</statustip>
</group>
<label>test1</label>
<statustip>4 buttons to switch between 4 different modes.</statustip>
</qtgui>
</class>
</library>
If you feel that is the case, then please include at least a snippet of code where you show how you implemented that bit.
This question will become worthless otherwise if/when your repository is removed/deleted/changed.
I have edit the question. let me know if there are any other things you need. Thank you!
i have not changed my repository!
So where is the code where you actually register your plugin (or really: export it / make it known to class loader)? Please include that in your question.
From a quick glance, I don't see anything to cause that error. But you can delete this from CMakeLists:
@AndyZelenak, i tried it but it doesn't help. same error ;(