Skip to content

Commit

Permalink
fix(yabloc_image_processing): fix shadowFunction (#7865)
Browse files Browse the repository at this point in the history
* fix(yabloc_image_processing): fix shadowFunction

Signed-off-by: veqcc <ryuta.kambe@tier4.jp>

* fix

Signed-off-by: veqcc <ryuta.kambe@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: veqcc <ryuta.kambe@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
veqcc and pre-commit-ci[bot] authored Jul 5, 2024
1 parent 6c944bf commit 589c88b
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ class UndistortNode : public rclcpp::Node
qos = rclcpp::QoS(10).durability_volatile().best_effort();
}

auto on_image = std::bind(&UndistortNode::on_image, this, _1);
auto on_compressed_image = std::bind(&UndistortNode::on_compressed_image, this, _1);
auto on_info = std::bind(&UndistortNode::on_info, this, _1);
sub_image_ = create_subscription<Image>("~/input/image_raw", qos, std::move(on_image));
sub_image_ = create_subscription<Image>(
"~/input/image_raw", qos, std::bind(&UndistortNode::on_image, this, _1));
sub_compressed_image_ = create_subscription<CompressedImage>(
"~/input/image_raw/compressed", qos, std::move(on_compressed_image));

sub_info_ = create_subscription<CameraInfo>("~/input/camera_info", qos, std::move(on_info));
"~/input/image_raw/compressed", qos,
std::bind(&UndistortNode::on_compressed_image, this, _1));
sub_info_ = create_subscription<CameraInfo>(
"~/input/camera_info", qos, std::bind(&UndistortNode::on_info, this, _1));

pub_info_ = create_publisher<CameraInfo>("~/output/resized_info", 10);
pub_image_ = create_publisher<Image>("~/output/resized_image", 10);
Expand Down

0 comments on commit 589c88b

Please sign in to comment.