From a6f73c848a53e92919f33f1b6f06167cfdebd9d1 Mon Sep 17 00:00:00 2001 From: "Dr. Denis" Date: Tue, 18 Jul 2023 16:25:03 +0200 Subject: [PATCH] Add output if hardware component system is not initialized. --- hardware_interface/src/resource_manager.cpp | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index 61a3fe5a33..73daddd23d 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -519,6 +519,13 @@ class ResourceStorage import_state_interfaces(container.back()); import_command_interfaces(container.back()); } + else + { + RCUTILS_LOG_WARN_NAMED( + "resource_manager", + "Actuator hardware component '%s' from plugin '%s' failed to initialize.", + hardware_info.name.c_str(), hardware_info.hardware_plugin_name.c_str()); + } }; if (hardware_info.is_async) @@ -541,6 +548,13 @@ class ResourceStorage { import_state_interfaces(container.back()); } + else + { + RCUTILS_LOG_WARN_NAMED( + "resource_manager", + "Sensor hardware component '%s' from plugin '%s' failed to initialize.", + hardware_info.name.c_str(), hardware_info.hardware_plugin_name.c_str()); + } }; if (hardware_info.is_async) @@ -564,6 +578,13 @@ class ResourceStorage import_state_interfaces(container.back()); import_command_interfaces(container.back()); } + else + { + RCUTILS_LOG_WARN_NAMED( + "resource_manager", + "System hardware component '%s' from plugin '%s' failed to initialize.", + hardware_info.name.c_str(), hardware_info.hardware_plugin_name.c_str()); + } }; if (hardware_info.is_async) @@ -616,6 +637,7 @@ class ResourceStorage { import_state_interfaces(container.back()); } + else { RCUTILS_LOG_WARN_NAMED( "resource_manager", @@ -645,6 +667,7 @@ class ResourceStorage import_state_interfaces(container.back()); import_command_interfaces(container.back()); } + else { RCUTILS_LOG_WARN_NAMED( "resource_manager",