版权声明:本文为博主夏日辉的原创文章,未经博主允许不得转载。 https://blog.csdn.net/shanpenghui/article/details/89634278
创建好nodelet例程之后,发现启动出现下面的错误
[ERROR] [1556421170.585459634]: Failed to load nodelet [/MyNodeletClass] of type [example_pkg/MyNodeletClass]
even after refreshing the cache: According to the loaded plugin descriptions the class example_pkg/MyNodeletClass
with base class type nodelet::Nodelet does not exist.
然后才发现,原来是packags.xml文件里面少了一句话:
<nodelet plugin="${prefix}/plugins/nodelet_plugins.xml" />