From 6e2b209679110997e5e3c71b43198dbee4c0eb22 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Cordero Date: Thu, 18 Dec 2025 11:27:23 +0100 Subject: [PATCH] Updated deprecated ament_index_cpp API Signed-off-by: Alejandro Hernandez Cordero --- rmw_implementation/src/functions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rmw_implementation/src/functions.cpp b/rmw_implementation/src/functions.cpp index 0c3d7f2b..90cd8536 100644 --- a/rmw_implementation/src/functions.cpp +++ b/rmw_implementation/src/functions.cpp @@ -15,6 +15,7 @@ #include "functions.hpp" #include +#include #include #include #include @@ -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 packages_with_prefixes = ament_index_cpp::get_resources( - "rmw_typesupport"); + const std::map 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);