From f819ef20eb5768fdfe5ac629c1aee542ceafefcf Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Tue, 8 Oct 2024 10:44:28 +0200 Subject: [PATCH] renamed variables for consistentcy --- .../controller_interface/chainable_controller_interface.hpp | 3 ++- controller_interface/src/chainable_controller_interface.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/controller_interface/include/controller_interface/chainable_controller_interface.hpp b/controller_interface/include/controller_interface/chainable_controller_interface.hpp index e4e4ec662c..15c5385564 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 reference_interfaces_ptrs_; diff --git a/controller_interface/src/chainable_controller_interface.cpp b/controller_interface/src/chainable_controller_interface.cpp index a6d427fe2b..6a6e3a2ea9 100644 --- a/controller_interface/src/chainable_controller_interface.cpp +++ b/controller_interface/src/chainable_controller_interface.cpp @@ -102,7 +102,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 @@ -155,7 +155,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); exported_reference_interface_names_.push_back(inteface_name); reference_interfaces_ptrs_vec.push_back(reference_interface); }