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 Oct 27, 2024
1 parent a1e4e41 commit c6c6011
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,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 @@ -655,10 +654,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 c6c6011

Please sign in to comment.