Function ament_index_cpp::get_package_prefix

Function Documentation

std::string ament_index_cpp::get_package_prefix(const std::string &package_name)

Return the installation prefix of the given package if found.

Parameters:

package_name[in] the name of the package to locate.

Throws:

PackageNotFoundError – when the given package is not found.

Returns:

installation prefix path in which the package was found.