Function pinocchio::retrieveResourcePath

Function Documentation

inline std::string pinocchio::retrieveResourcePath(const std::string &string, const std::vector<std::string> &package_dirs)

Retrieve the path of the file whose path is given in URL-format. Currently convert from the following patterns : package:// or file://.

Parameters:
  • string[in] The path given in the url-format

  • package_dirs[in] A list of packages directories where to search for files if its pattern starts with package://

Returns:

The path to the file (can be a relative or absolute path)