Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "functions.hpp"

#include <cstddef>
#include <filesystem>
#include <map>
#include <memory>
#include <stdexcept>
Expand Down Expand Up @@ -109,8 +110,8 @@ load_library()
// OK, we failed to load the default RMW. Fetch all of the ones we can
// find and attempt to load them one-by-one.
rmw_reset_error();
const std::map<std::string, std::string> packages_with_prefixes = ament_index_cpp::get_resources(
"rmw_typesupport");
const std::map<std::string, std::filesystem::path> packages_with_prefixes =
ament_index_cpp::get_resources_by_name("rmw_typesupport");
for (const auto & package_prefix_pair : packages_with_prefixes) {
if (package_prefix_pair.first != "rmw_implementation") {
ret = attempt_to_load_one_rmw(package_prefix_pair.first);
Expand Down