From 5d7c43aadd727369bde53be4c05e0b470f7f9886 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Cordero Date: Tue, 1 Sep 2026 17:35:36 +0200 Subject: [PATCH] Granular rclcpp/rclcpp.hpp Signed-off-by: Alejandro Hernandez Cordero --- tlsf_cpp/example/allocator_example.cpp | 15 ++++++++++++++- tlsf_cpp/test/test_tlsf.cpp | 13 ++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/tlsf_cpp/example/allocator_example.cpp b/tlsf_cpp/example/allocator_example.cpp index 19373ca..700d554 100644 --- a/tlsf_cpp/example/allocator_example.cpp +++ b/tlsf_cpp/example/allocator_example.cpp @@ -12,12 +12,25 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include +#include +#include #include #include #include #include -#include "rclcpp/rclcpp.hpp" +#include "rclcpp/allocator/allocator_common.hpp" +#include "rclcpp/allocator/allocator_deleter.hpp" +#include "rclcpp/executor_options.hpp" +#include "rclcpp/executors/single_threaded_executor.hpp" +#include "rclcpp/message_memory_strategy.hpp" +#include "rclcpp/node.hpp" +#include "rclcpp/node_options.hpp" +#include "rclcpp/publisher_options.hpp" +#include "rclcpp/subscription_options.hpp" +#include "rclcpp/utilities.hpp" + #include "std_msgs/msg/u_int32.hpp" #include "tlsf_cpp/tlsf.hpp" diff --git a/tlsf_cpp/test/test_tlsf.cpp b/tlsf_cpp/test/test_tlsf.cpp index d1ed3b6..da023e0 100644 --- a/tlsf_cpp/test/test_tlsf.cpp +++ b/tlsf_cpp/test/test_tlsf.cpp @@ -18,7 +18,18 @@ #include #include -#include "rclcpp/rclcpp.hpp" +#include "rclcpp/allocator/allocator_deleter.hpp" +#include "rclcpp/contexts/default_context.hpp" +#include "rclcpp/executor_options.hpp" +#include "rclcpp/executors/single_threaded_executor.hpp" +#include "rclcpp/message_memory_strategy.hpp" +#include "rclcpp/node.hpp" +#include "rclcpp/node_options.hpp" +#include "rclcpp/publisher.hpp" +#include "rclcpp/publisher_options.hpp" +#include "rclcpp/subscription_options.hpp" +#include "rclcpp/subscription_traits.hpp" +#include "rclcpp/utilities.hpp" #include "rcpputils/scope_exit.hpp"