問題:ros機器人 rviz qt5插件開發,編譯成功后添加插件卻報錯** 找 不 到 插 件 對 應 的 庫 。**
報錯如下:
[ERROR] PluginlibFactory: The plugin for class 'rviz_send_goals_plugin/SendGoal' failed to load. Error: Could not find library corresponding to plugin rviz_send_goals_plugin/SendGoal. Make sure the plugin description XML file has the correct name of the library and that the libraryactually exists.
在網上查了之后發現可能的問題有以下兩個:
1. library path="lib/lib……" 的第二個“lib”沒加;**
2.package.xml檔案的 export 標簽沒加上_rviz plugin="${prefix}/plugin_description.xml"_。**
但是在都添加之后還會報錯。
另外,我的library path="lib/librviz_send_goals_plugin.so"不加后綴.so就找不到檔案,也不知道為什么。
有沒有知道的大佬指點一下
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/36140.html
標籤:非技術區
