From b0c865fb3e04638d6624d3127542e00fe7b0c469 Mon Sep 17 00:00:00 2001 From: Michael Ferguson Date: Thu, 8 Feb 2024 13:03:08 -0500 Subject: [PATCH] properly remap image name to match docs --- image_view/src/stereo_view_node.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/image_view/src/stereo_view_node.cpp b/image_view/src/stereo_view_node.cpp index 5b876d859..5113da7f2 100644 --- a/image_view/src/stereo_view_node.cpp +++ b/image_view/src/stereo_view_node.cpp @@ -114,14 +114,15 @@ StereoViewNode::StereoViewNode(const rclcpp::NodeOptions & options) // fully expanded and remapped topic name to image_transport auto node_base = this->get_node_base_interface(); std::string stereo_ns = node_base->resolve_topic_or_service_name("stereo", false); + std::string image = node_base->resolve_topic_or_service_name("image", false); std::string left_topic = rclcpp::expand_topic_or_service_name( stereo_ns + "/left" + rclcpp::expand_topic_or_service_name( - "image", this->get_name(), this->get_namespace()), + image, this->get_name(), this->get_namespace()), this->get_name(), this->get_namespace()); std::string right_topic = rclcpp::expand_topic_or_service_name( stereo_ns + "/right" + rclcpp::expand_topic_or_service_name( - "image", this->get_name(), this->get_namespace()), + image, this->get_name(), this->get_namespace()), this->get_name(), this->get_namespace()); std::string disparity_topic = rclcpp::expand_topic_or_service_name( stereo_ns + "/disparity", this->get_name(), this->get_namespace());