-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
On Ubuntu 24.04 and ROS2 Jazzy, some files have been renamed and can't be found:
optris_drivers2/src/OptrisColorconvert.h:7:10: fatal error: image_transport/image_transport.h: No such file or directory
optris_drivers2/src/OptrisColorconvert.h:10:10: fatal error: camera_info_manager/camera_info_manager.h: No such file or directory
The following patch at the end fixed the problem for me, and it now compiles and works with the Optris PI450i. I'm not sure what the best fix would be, this small change doesn't really justify a branch. Maybe there is a preprocessor definition for the ROS version?
diff --git a/src/OptrisColorconvert.h b/src/OptrisColorconvert.h
index a6bf24f..7ffa3f2 100644
--- a/src/OptrisColorconvert.h
+++ b/src/OptrisColorconvert.h
@@ -4,10 +4,10 @@
#include "rclcpp/rclcpp.hpp"
#include <chrono>
#include <thread>
-#include <image_transport/image_transport.h>
+#include <image_transport/image_transport.hpp>
#include <sensor_msgs/msg/image.hpp>
#include <sensor_msgs/msg/time_reference.hpp>
-#include <camera_info_manager/camera_info_manager.h>
+#include <camera_info_manager/camera_info_manager.hpp>
#include <sensor_msgs/msg/camera_info.hpp>
#include "libirimager/ImageBuilder.h"
diff --git a/src/OptrisImager.h b/src/OptrisImager.h
index 9bbae39..e433d02 100644
--- a/src/OptrisImager.h
+++ b/src/OptrisImager.h
@@ -8,7 +8,7 @@
#include "rclcpp/rclcpp.hpp"
#include <chrono>
#include <thread>
-#include <image_transport/image_transport.h>
+#include <image_transport/image_transport.hpp>
#include <sensor_msgs/msg/image.hpp>
#include <sensor_msgs/msg/time_reference.hpp>
#include <std_srvs/srv/empty.hpp>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels