diff --git a/controller_interface/include/controller_interface/chainable_controller_interface.hpp b/controller_interface/include/controller_interface/chainable_controller_interface.hpp index 0ea40b8462..6775724bfa 100644 --- a/controller_interface/include/controller_interface/chainable_controller_interface.hpp +++ b/controller_interface/include/controller_interface/chainable_controller_interface.hpp @@ -145,7 +145,8 @@ class ChainableControllerInterface : public ControllerInterfaceBase // BEGIN (Handle export change): for backward compatibility std::vector reference_interfaces_; // END - std::vector ordered_reference_interfaces_; + std::vector + ordered_exported_reference_interfaces_; std::unordered_map exported_reference_interfaces_; diff --git a/controller_interface/src/chainable_controller_interface.cpp b/controller_interface/src/chainable_controller_interface.cpp index 1bf5d12e07..409578be9b 100644 --- a/controller_interface/src/chainable_controller_interface.cpp +++ b/controller_interface/src/chainable_controller_interface.cpp @@ -116,7 +116,7 @@ ChainableControllerInterface::export_reference_interfaces() std::vector reference_interfaces_ptrs_vec; reference_interfaces_ptrs_vec.reserve(reference_interfaces.size()); exported_reference_interface_names_.reserve(reference_interfaces.size()); - ordered_reference_interfaces_.reserve(reference_interfaces.size()); + ordered_exported_reference_interfaces_.reserve(reference_interfaces.size()); // BEGIN (Handle export change): for backward compatibility // check if the "reference_interfaces_" variable is resized to number of interfaces @@ -169,7 +169,7 @@ ChainableControllerInterface::export_reference_interfaces() reference_interfaces_ptrs_vec.clear(); throw std::runtime_error(error_msg); } - ordered_reference_interfaces_.push_back(reference_interface); + ordered_exported_reference_interfaces_.push_back(reference_interface); add_element_to_list(exported_reference_interface_names_, interface_name); reference_interfaces_ptrs_vec.push_back(reference_interface); }