rqt plugin Qt5 and 16.04 [closed]
I'm trying to create a rqt plugin. I've tried to mimic the rqt_image_view package as much as possible.
When I open rqt and try to open the plugin from the drop-down menu, I get the following error in the terminal output:
[ERROR] [1481649833.824410737]: Failed to load nodelet [rqt_myplugin/MyPlugin_1] of type [rqt_myplugin/MyPlugin]: MultiLibraryClassLoader: Could not create object of class type rqt_myplugin::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_myplugin/MyPlugin) failed creating instance
PluginManager._load_plugin() could not load plugin "rqt_myplugin/MyPlugin": RosPluginlibPluginProvider.load() could not load plugin "rqt_myplugin/MyPlugin"
What could be the error?
Here is the package: https://github.com/ksatyaki/rqt_myplugin It seems to work with force discover option. I don't understand what this option does exactly. Previously I even tried installing the plugin to /opt/ros/kinetic. It didn't work.
The error message indicates a problem with the plugin registration. If you could share your code it might be possible to spot the different to other working plugins.
I edited the question
@McMurdo: if you feel your question has been answered, please don't close it, but instead accept one of the answers by ticking the checkmark to the left of it. That makes it much clearer from the question list that the question is in fact answered, and not closed for some other reason.
Thanks.