Skip to content

Commit aefba9d

Browse files
NosilleIntrepidBase
andauthored
fix remapping bug in RectifyNode (#1108)
The previous effort to fix remapping issues (#940), addressed by pull request (#941), overlooked the RectifyNode. Co-authored-by: IntrepidBase <[email protected]>
1 parent 746268f commit aefba9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

image_proc/src/rectify.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ RectifyNode::RectifyNode(const rclcpp::NodeOptions & options)
5959
// fully expanded and remapped topic name to image_transport
6060
auto node_base = this->get_node_base_interface();
6161
image_topic_ = node_base->resolve_topic_or_service_name("image", false);
62+
std::string rect_topic =
63+
node_base->resolve_topic_or_service_name("image_rect", false);
64+
6265

6366
queue_size_ = this->declare_parameter("queue_size", 5);
6467
interpolation_ = this->declare_parameter("interpolation", 1);
@@ -83,7 +86,7 @@ RectifyNode::RectifyNode(const rclcpp::NodeOptions & options)
8386

8487
// Create publisher - allow overriding QoS settings (history, depth, reliability)
8588
pub_options.qos_overriding_options = rclcpp::QosOverridingOptions::with_default_policies();
86-
pub_rect_ = image_transport::create_publisher(this, "image_rect", rmw_qos_profile_default,
89+
pub_rect_ = image_transport::create_publisher(this, rect_topic, rmw_qos_profile_default,
8790
pub_options);
8891
}
8992

0 commit comments

Comments
 (0)