diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index ba1abef8b5..fe5e9ae904 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -609,7 +609,7 @@ class ResourceStorage void import_state_interfaces(HardwareT & hardware) { std::vector interfaces = hardware.export_state_interfaces(); - const auto interface_names = add_state_interfaces(interface); + const auto interface_names = add_state_interfaces(interfaces); RCLCPP_WARN( get_logger(),