From b0ddd355978e342f2615cf256cd55dabbd0141be Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Thu, 17 Oct 2024 10:45:37 +0200 Subject: [PATCH] Cleanup variables in the RTBufferVariables --- .../include/controller_manager/controller_manager.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/controller_manager/include/controller_manager/controller_manager.hpp b/controller_manager/include/controller_manager/controller_manager.hpp index 23e8c7c548..40f31db1e7 100644 --- a/controller_manager/include/controller_manager/controller_manager.hpp +++ b/controller_manager/include/controller_manager/controller_manager.hpp @@ -634,10 +634,9 @@ class ControllerManager : public rclcpp::Node RTBufferVariables() { deactivate_controllers_list.reserve(1000); - activate_controllers_list.reserve(1000); + activate_controllers_using_interfaces_list.reserve(1000); + fallback_controllers_list.reserve(1000); concatenated_string.reserve(5000); - failed_hardware_components.reserve(2000); - failed_controllers_list.reserve(2000); } const std::string & get_concatenated_string( @@ -656,10 +655,9 @@ class ControllerManager : public rclcpp::Node } std::vector deactivate_controllers_list; - std::vector activate_controllers_list; - std::vector failed_hardware_components; + std::vector activate_controllers_using_interfaces_list; + std::vector fallback_controllers_list; std::string concatenated_string; - std::vector failed_controllers_list; }; RTBufferVariables rt_buffer_;