Skip to content

Commit

Permalink
Cleanup variables in the RTBufferVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Dec 17, 2024
1 parent d85199e commit 64b29d8
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,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(
Expand All @@ -663,10 +662,9 @@ class ControllerManager : public rclcpp::Node
}

std::vector<std::string> deactivate_controllers_list;
std::vector<std::string> activate_controllers_list;
std::vector<std::string> failed_hardware_components;
std::vector<std::string> activate_controllers_using_interfaces_list;
std::vector<std::string> fallback_controllers_list;
std::string concatenated_string;
std::vector<std::string> failed_controllers_list;
};
RTBufferVariables rt_buffer_;
};
Expand Down

0 comments on commit 64b29d8

Please sign in to comment.