From 76a1aa87a587b9927c500c7db2193eb634ab210d Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski Date: Mon, 27 May 2024 23:26:55 +0200 Subject: [PATCH] Fix comment --- image_publisher/src/image_publisher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_publisher/src/image_publisher.cpp b/image_publisher/src/image_publisher.cpp index 1b401c9c2..dc6649e39 100644 --- a/image_publisher/src/image_publisher.cpp +++ b/image_publisher/src/image_publisher.cpp @@ -227,7 +227,7 @@ void ImagePublisher::onInit() camera_info_.distortion_model = "plumb_bob"; camera_info_.d = {0, 0, 0, 0, 0}; - double f_approx = 1.0; // FOV equal to 0 disables the approximation + double f_approx = 1.0; // FOV equal to 0 disables the approximation if (std::abs(field_of_view_) > std::numeric_limits::epsilon()) { // Based on https://learnopencv.com/approximate-focal-length-for-webcams-and-cell-phone-cameras/ f_approx = (camera_info_.width / 2) / std::tan((field_of_view_ * M_PI / 180) / 2);