41 const std::set<std::string>& search_packages)
43 std::vector<std::string> xml_paths;
47 std::string base_path;
48 if (ament_index_cpp::get_resource(resource_type, name, content, &base_path))
51 if (paths.size() != 1)
54 "' for resource type '" + resource_type +
55 "'. Must contain a single line with a path to the plugins.xml "
56 "manifest file relative to the package's install prefix.");
58 xml_paths.push_back(base_path +
'/' + paths[0]);
63 "' in install directory of package '" + name +
"'.");
std::vector< std::string > collectPluginXMLPaths(const std::string &resource_type, const std::set< std::string > &search_packages={})
Collect the paths of plugin.xml manifest files used for initializing pluginlib::ClassLoader objects.
std::vector< std::string > splitString(const std::string &str, const std::string &delimiter, bool preserve_empty=true)
Split a string into multiple tokens using a specific delimiter string (Delimiter may consist of multi...