From 861fc8d7b392f507452eba2e340b9437ecd9989a Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski Date: Mon, 27 May 2024 23:08:06 +0200 Subject: [PATCH] Apply formatting --- image_publisher/src/image_publisher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/image_publisher/src/image_publisher.cpp b/image_publisher/src/image_publisher.cpp index 6b9ca811c..1b401c9c2 100644 --- a/image_publisher/src/image_publisher.cpp +++ b/image_publisher/src/image_publisher.cpp @@ -228,8 +228,7 @@ void ImagePublisher::onInit() camera_info_.d = {0, 0, 0, 0, 0}; double f_approx = 1.0; // FOV equal to 0 disables the approximation - if (std::abs(field_of_view_) > std::numeric_limits::epsilon()) - { + 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); }