Function moveit_setup::extractPackageNameFromPath

Function Documentation

bool moveit_setup::extractPackageNameFromPath(const std::filesystem::path &path, std::string &package_name, std::filesystem::path &relative_filepath)

determine the package name containing a given file path

Parameters:
  • path – to a file

  • package_name – holds the ros package name if found

  • relative_filepath – holds the relative path of the file to the package root

Returns:

whether the file belongs to a known package