Skip to content

Commit

Permalink
properly remap image name to match docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson committed Feb 8, 2024
1 parent f8c88a2 commit b0c865f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions image_view/src/stereo_view_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b0c865f

Please sign in to comment.