From fb929103e7545ada8faa93887b19a21b1ca0adac Mon Sep 17 00:00:00 2001 From: CihatAltiparmak Date: Tue, 24 Dec 2024 00:18:41 +0300 Subject: [PATCH] Add __has_include control for other distros like humble etc. --- include/moveit_visual_tools/imarker_end_effector.h | 4 ++++ include/moveit_visual_tools/imarker_robot_state.h | 4 ++++ include/moveit_visual_tools/moveit_visual_tools.h | 4 ++++ src/imarker_robot_state.cpp | 9 +++++++++ src/moveit_visual_tools.cpp | 14 ++++++++++++++ src/moveit_visual_tools_demo.cpp | 4 ++++ 6 files changed, 39 insertions(+) diff --git a/include/moveit_visual_tools/imarker_end_effector.h b/include/moveit_visual_tools/imarker_end_effector.h index f217edb..cae9243 100644 --- a/include/moveit_visual_tools/imarker_end_effector.h +++ b/include/moveit_visual_tools/imarker_end_effector.h @@ -41,7 +41,11 @@ #include // MoveIt +#if __has_include() #include +#else +#include +#endif // this package #include diff --git a/include/moveit_visual_tools/imarker_robot_state.h b/include/moveit_visual_tools/imarker_robot_state.h index f1e166f..e60c62a 100644 --- a/include/moveit_visual_tools/imarker_robot_state.h +++ b/include/moveit_visual_tools/imarker_robot_state.h @@ -39,7 +39,11 @@ #include // MoveIt +#if __has_include() #include +#else +#include +#endif #include // C++ diff --git a/include/moveit_visual_tools/moveit_visual_tools.h b/include/moveit_visual_tools/moveit_visual_tools.h index 3c6334e..e9273d8 100644 --- a/include/moveit_visual_tools/moveit_visual_tools.h +++ b/include/moveit_visual_tools/moveit_visual_tools.h @@ -38,7 +38,11 @@ #include // MoveIt +#if __has_include() #include +#else +#include +#endif // MoveIt Messages #include diff --git a/src/imarker_robot_state.cpp b/src/imarker_robot_state.cpp index 32740d0..fe777cb 100644 --- a/src/imarker_robot_state.cpp +++ b/src/imarker_robot_state.cpp @@ -31,8 +31,17 @@ */ // MoveIt +#if __has_include() #include +#else +#include +#endif + +#if __has_include() #include +#else +#include +#endif // this package #include diff --git a/src/moveit_visual_tools.cpp b/src/moveit_visual_tools.cpp index 47e1ef7..a386efc 100644 --- a/src/moveit_visual_tools.cpp +++ b/src/moveit_visual_tools.cpp @@ -35,9 +35,23 @@ #include // MoveIt +#if __has_include() #include +#else +#include +#endif + +#if __has_include() #include +#else +#include +#endif + +#if __has_include() #include +#else +#include +#endif // Conversions #if __has_include() diff --git a/src/moveit_visual_tools_demo.cpp b/src/moveit_visual_tools_demo.cpp index 9972c89..4e4fe28 100644 --- a/src/moveit_visual_tools_demo.cpp +++ b/src/moveit_visual_tools_demo.cpp @@ -39,7 +39,11 @@ #include // MoveIt +#if __has_include() #include +#else +#include +#endif // C++ #include