From 573d816853fdd5228924ca2934a803c6986db7f4 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Sun, 2 Jun 2024 14:45:35 +0900 Subject: [PATCH] refactor(yabloc): use constexpr properly (#7207) Signed-off-by: Ryuta Kambe --- localization/yabloc/yabloc_common/src/extract_line_segments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localization/yabloc/yabloc_common/src/extract_line_segments.cpp b/localization/yabloc/yabloc_common/src/extract_line_segments.cpp index 98c70b44c63fc..9940dca1fd62b 100644 --- a/localization/yabloc/yabloc_common/src/extract_line_segments.cpp +++ b/localization/yabloc/yabloc_common/src/extract_line_segments.cpp @@ -20,7 +20,7 @@ pcl::PointCloud extract_near_line_segments( const pcl::PointCloud & line_segments, const Sophus::SE3f & transform, const float max_range) { - constexpr double sqrt_two = std::sqrt(2); + constexpr double sqrt_two = 1.41421356237309504880; const Eigen::Vector3f pose_vector = transform.translation(); // All line segments contained in a square with max_range on one side must be taken out,