Function ament_index_cpp::get_package_prefix(const std::string&, std::filesystem::path&)

Function Documentation

void ament_index_cpp::get_package_prefix(const std::string &package_name, std::filesystem::path &path)

Return the installation prefix of the given package if found.

Parameters:
  • package_name[in] the name of the package to locate.

  • path[out] installation prefix path in which the package was found.

Throws:

PackageNotFoundError – when the given package is not found.