Create Rqt Plugin : Could not find library corresponding to plugin
Hi everyone, I try to create basic rqt plugin by C++. I follow tutorial and rqtimageview plugin, i checked multiple times my files, and follow these topics : 1. http://answers.ros.org/question/246644/rqt-could-not-find-library-corresponding-to-plugin/ 2. http://answers.ros.org/question/95091/rqt-plugin-qt_gui_main-found-no-plugin/
But still not solve my problem :
[ERROR] [1488872808.378775428]: Failed to load nodelet [TestApp1] of type [TestApp]: Could not find library corresponding to plugin TestApp. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.RosPluginlibPluginProvider::loadexplicittype(TestApp) failed creating instance PluginManager.load_plugin() could not load plugin "TestApp": RosPluginlibPluginProvider.load() could not load plugin "TestApp"
Here is my code,
Thanks you,
Asked by Authur on 2017-03-07 03:11:31 UTC
Comments
You could see if https://github.com/lucasw/rqt_mypkg/tree/master/rqt_example_cpp works unaltered, and if it does work you could make small changes and recompile and make sure each change works until you have a plugin that does what you want.
Asked by lucasw on 2017-03-07 13:32:50 UTC
Thank you very much. I can run this app, but i have to cd catkin_workspace and source devel/setup.bash whenever i want run it. What should i do?
Asked by Authur on 2017-03-07 19:14:48 UTC
I got it, maybe because i'm wrong PLUGINLIB_DECLARE_CLASS in testapp.cpp : namespace, objectname should like in plugin xml?
Asked by Authur on 2017-03-07 20:04:24 UTC
source
ing the appropriatesetup.bash
from the workspace that your code lives in is a requirement when doing ROS development: http://wiki.ros.org/kinetic/Installation/DebEnvironmentAsked by gvdhoorn on 2017-03-08 03:50:39 UTC
Thank you, i got it. :D
Asked by Authur on 2017-03-08 04:26:23 UTC