From 0918531c177d0bcd1ee043eb9250f7d30c56b345 Mon Sep 17 00:00:00 2001 From: Markus Vieth <39675748+mvieth@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:00:22 +0100 Subject: [PATCH] Add logic for missing pcl/point_traits.h in newer PCL versions (#382) point_traits.h is no longer available, starting with PCL 1.13.0 Since PCL 1.11.0, type_traits.h should be used instead --- pcl_ros/include/pcl_ros/point_cloud.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcl_ros/include/pcl_ros/point_cloud.hpp b/pcl_ros/include/pcl_ros/point_cloud.hpp index 2b8fd6a4..b25697e1 100644 --- a/pcl_ros/include/pcl_ros/point_cloud.hpp +++ b/pcl_ros/include/pcl_ros/point_cloud.hpp @@ -44,11 +44,15 @@ #include #include +#include // for PCL_VERSION_COMPARE +#if PCL_VERSION_COMPARE(>=, 1, 11, 0) +#include +#else #include +#endif // PCL_VERSION_COMPARE(>=, 1, 11, 0) #include #include #if ROS_POINTER_COMPATIBILITY_IMPLEMENTED -#include #if PCL_VERSION_COMPARE(>=, 1, 11, 0) #include #elif PCL_VERSION_COMPARE(>=, 1, 10, 0)