From d9720f9be6a09fdbecbc5e3d044a59debf0ba65b Mon Sep 17 00:00:00 2001 From: Kenji Brameld Date: Sat, 23 Oct 2021 07:37:30 +0900 Subject: [PATCH] Update barcode_reader_node.cpp Fix print formatting Signed-off-by: ijnek --- zbar_ros/src/barcode_reader_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zbar_ros/src/barcode_reader_node.cpp b/zbar_ros/src/barcode_reader_node.cpp index cfd9756..1e29d90 100644 --- a/zbar_ros/src/barcode_reader_node.cpp +++ b/zbar_ros/src/barcode_reader_node.cpp @@ -76,7 +76,7 @@ void BarcodeReaderNode::imageCb(sensor_msgs::msg::Image::ConstSharedPtr image) geometry_msgs::msg::Point point; point.x = (*point_it).x; point.y = (*point_it).y; - RCLCPP_DEBUG(get_logger(), " Point: %d, %d", point.x, point.y); + RCLCPP_DEBUG(get_logger(), " Point: %f, %f", point.x, point.y); symbol.points.push_back(point); }