Create Rqt Plugin : Could not find library corresponding to plugin

asked 2017-03-07 02:11:31 -0500

Authur gravatar image

Hi everyone, I try to create basic rqt plugin by C++. I follow tutorial and rqt_image_view plugin, i checked multiple times my files, and follow these topics : 1. http://answers.ros.org/question/24664... 2. http://answers.ros.org/question/95091...

But still not solve my problem :

[ERROR] [1488872808.378775428]: Failed to load nodelet [TestApp_1] 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::load_explicit_type(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,

edit retag flag offensive close merge delete

Comments

You could see if https://github.com/lucasw/rqt_mypkg/t... 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.

lucasw gravatar image lucasw  ( 2017-03-07 12:32:50 -0500 )edit

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?

Authur gravatar image Authur  ( 2017-03-07 18:14:48 -0500 )edit

I got it, maybe because i'm wrong PLUGINLIB_DECLARE_CLASS in testapp.cpp : namespace, objectname should like in plugin xml?

Authur gravatar image Authur  ( 2017-03-07 19:04:24 -0500 )edit

but i have to cd catkin_workspace and source devel/setup.bash whenever i want run it. What should i do?

sourceing the appropriate setup.bash from the workspace that your code lives in is a requirement when doing ROS development: http://wiki.ros.org/kinetic/Installat...

gvdhoorn gravatar image gvdhoorn  ( 2017-03-08 02:50:39 -0500 )edit

Thank you, i got it. :D

Authur gravatar image Authur  ( 2017-03-08 03:26:23 -0500 )edit