ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rospack can not find my plugin

asked 2018-07-28 11:30:56 -0500

AutoCar gravatar image

Hi, I am following this tutorial and write a global planner plugin. my package is robocars, my class name is robocars::PathFollowingGlobalPlanner. Here is my package.xml:

    <!-- Other tools can request additional information be placed here -->
    <!-- <nav_core plugin="${prefix}/path_following_global_planner_plugin.xml" /
    <nav_core plugin="${prefix}/path_following_global_planner_plugin.xml" />

And here is my path_following_global_planner_plugin.xml

<library path="lib/libpath_following_global_planner_lib">
  <class name="robocars/PathFollowingGlobalPlanner" type="robocars::PathFollowin
gGlobalPlanner" base_class_type="nav_core::BaseGlobalPlanner">
    <description>This is a global planner plugin by robocars project.</descripti

PathFollowingGlobalPlanner class compiled fine. "rospack find robocars" can find my package. But when I run "rospack plugins --attrib=plugin nav_core", the plugin did not show up.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-28 19:43:08 -0500

fergs gravatar image

In your package.xml -- do you have the dependency on nav_core? In order to be picked up by rospack, your package must depend directly on nav_core, the package which defines the plugin type.

edit flag offensive delete link more


Yeah, you are right. I had only <build_depend>, not <depend>. After I add that, rospack picked it up.

Thank you very much.

AutoCar gravatar image AutoCar  ( 2018-07-28 20:49:56 -0500 )edit

And just for completeness: see the pluginlib wiki page where this is documented (from #q163476).

gvdhoorn gravatar image gvdhoorn  ( 2018-07-29 03:51:43 -0500 )edit

Question Tools

1 follower


Asked: 2018-07-28 11:30:56 -0500

Seen: 1,427 times

Last updated: Jul 28 '18