Function ament_index_cpp::get_resources_by_name

Function Documentation

std::map<std::string, std::filesystem::path> ament_index_cpp::get_resources_by_name(const std::string &resource_type)

Get a map of resources names to their installation prefix.

Parameters:

resource_type – type of the resource.

Throws:

std::runtime_error – if resource_type is empty.

Returns:

a map of resources names to their installation prefix.