From 6e1059c9dfe3312f5b4d2f45c9d3d19d59685ee5 Mon Sep 17 00:00:00 2001 From: verma nakul Date: Tue, 7 Jan 2025 12:11:22 +0530 Subject: [PATCH] Using urdf/model.hpp for rolling (#1978) --- hardware_interface/src/component_parser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hardware_interface/src/component_parser.cpp b/hardware_interface/src/component_parser.cpp index a3e9efaa3a..e1ff42ee14 100644 --- a/hardware_interface/src/component_parser.cpp +++ b/hardware_interface/src/component_parser.cpp @@ -20,7 +20,12 @@ #include #include +#include "rclcpp/version.h" +#if RCLCPP_VERSION_GTE(29, 0, 0) +#include "urdf/model.hpp" +#else #include "urdf/model.h" +#endif #include "hardware_interface/component_parser.hpp" #include "hardware_interface/hardware_info.hpp"