ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The base class HAS to be costmap_2d::Layer -- the plugin loader is templated on that base class and can only find/load such a class. Even if your class derives from costmap_2d::CostmapLayer, it eventually has a base class of costmap_2d::Layer, and that is what has to be in the plugins.xml file in order for pluginlib to find the class.
2 | No.2 Revision |
The base class HAS to be costmap_2d::Layer -- the plugin loader is templated on that base class and can only find/load such a class. Even if your class derives from costmap_2d::CostmapLayer, it that class derives from costmap_2d::Layer and so your class eventually has a base class of costmap_2d::Layer, and that is what has to be in the plugins.xml file in order for pluginlib to find the class.