ros gazebo跳过加载插件有错误

时间:2018-01-05 08:41:45

标签: ros robotics

当我运行我的凉亭时,我收到以下错误:

[ERROR] [1515141508.242475977]: Skipped loading plugin with error: XML Document '/opt/ros/kinetic/share/gmapping/nodelet_plugins.xml' has no Root Element. This likely means the XML is malformed or missing..
[ERROR] [1515141508.249164933]: Skipped loading plugin with error: XML Document '/opt/ros/kinetic/share/gmapping/nodelet_plugins.xml' has no Root Element. This likely means the XML is malformed or missing..

即使有错误,凉亭似乎工作正常,但我想修复它只是为了安全。但是,我不确定错误消息的含义以及我如何解决它。

2 个答案:

答案 0 :(得分:0)

您可以验证/ opt / ros / kinetic / share / gmapping目录中是否存在“nodelet_plugins.xml”文件?

答案 1 :(得分:0)

添加

  

nodelet_plugins.xml

到catkin_workspace

中的CMakeLists.txt文件
install( DIRECTORY launch
  FILES nodelet_plugins.xml
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

然后从你的作品中做一个catkin_make。错误应该消失。

注意:确保/ opt / ros / kinetic / share / gmapping /没有 xml 文件,只有一个名为 cmake 的文件夹。如果有xml文件,请删除文件usng sudo