GoalChecker plugin loading in nav2 Controller plugin
I'm writing a controller plugin for the nav2 stack. The controller loads fine, and the robot moves as I expect.
However, I am now trying to load a GoalChecker plugin into my Controller plugin, but its failing to find the plugin:
Failed to create controller. Exception: According to the loaded plugin descriptions the class cc_nav::SimpleGoalChecker with base class type nav2_core::GoalChecker does not exist. Declared types are
Note: empty list of declared types.
In my plugin XML the SimpleGoalChecker plugin is listed in the same library as my Controller plugin (which then gets exported in CMakeLists with pluginlib_export_plugin_description_file(nav2_core nav2_plugin.xml)
)
Does the SimpleGoalChecker plugin need to be defined in a different package as the controller plugin?
Incidentally I get a similar error if I try the dwb_plugins::SimpleGoalChecker
plugin. Makes me wonder about the empty declared types list