From 0a040df13287e5cbffa890caa538fedf3e939ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Tue, 26 Nov 2024 12:18:27 +0100 Subject: [PATCH] Fixed build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- depth_image_proc/src/register.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/depth_image_proc/src/register.cpp b/depth_image_proc/src/register.cpp index 49c16fc2..492e8575 100644 --- a/depth_image_proc/src/register.cpp +++ b/depth_image_proc/src/register.cpp @@ -144,8 +144,10 @@ RegisterNode::RegisterNode(const rclcpp::NodeOptions & options) image_transport::TransportHints hints(this, "raw", "depth_image_transport"); sub_depth_image_.subscribe(this, topic, hints.getTransport(), rmw_qos_profile_default, sub_options); - sub_depth_info_.subscribe(this, "depth/camera_info", rclcpp::QoS(10), sub_options); - sub_rgb_info_.subscribe(this, "rgb/camera_info", rclcpp::QoS(10), sub_options); + auto qos = rmw_qos_profile_default; + qos.depth = 10; + sub_depth_info_.subscribe(this, "depth/camera_info", qos, sub_options); + sub_rgb_info_.subscribe(this, "rgb/camera_info", qos, sub_options); } }; // For compressed topics to remap appropriately, we need to pass a