Skip to content

Commit

Permalink
Fix to allow remapping resize and image topics
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojcik98 authored and JWhitleyWork committed May 24, 2023
1 parent 4d30908 commit 975548a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion image_proc/src/crop_decimate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void decimate(const cv::Mat & src, cv::Mat & dst, int decimation_x, int decimati
CropDecimateNode::CropDecimateNode(const rclcpp::NodeOptions & options)
: Node("CropNonZeroNode", options)
{
auto qos_profile = getTopicQosProfile(this, "image_raw");
auto qos_profile = getTopicQosProfile(this, "in/image_raw");

queue_size_ = this->declare_parameter("queue_size", 5);
target_frame_id_ = this->declare_parameter("target_frame_id", std::string());
Expand Down
6 changes: 3 additions & 3 deletions image_proc/src/resize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ namespace image_proc
ResizeNode::ResizeNode(const rclcpp::NodeOptions & options)
: rclcpp::Node("ResizeNode", options)
{
auto qos_profile = getTopicQosProfile(this, "image");
auto qos_profile = getTopicQosProfile(this, "image/image_raw");
// Create image pub
pub_image_ = image_transport::create_camera_publisher(this, "resize", qos_profile);
pub_image_ = image_transport::create_camera_publisher(this, "resize/image_raw", qos_profile);
// Create image sub
sub_image_ = image_transport::create_camera_subscription(
this, "image",
this, "image/image_raw",
std::bind(
&ResizeNode::imageCb, this,
std::placeholders::_1,
Expand Down

0 comments on commit 975548a

Please sign in to comment.