Skip to content

Commit 53bd16a

Browse files
veqccKhalilSelyan
authored and
KhalilSelyan
committed
refactor(yabloc): use constexpr properly (#7207)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 2da121f commit 53bd16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

localization/yabloc/yabloc_common/src/extract_line_segments.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pcl::PointCloud<pcl::PointNormal> extract_near_line_segments(
2020
const pcl::PointCloud<pcl::PointNormal> & line_segments, const Sophus::SE3f & transform,
2121
const float max_range)
2222
{
23-
constexpr double sqrt_two = std::sqrt(2);
23+
constexpr double sqrt_two = 1.41421356237309504880;
2424
const Eigen::Vector3f pose_vector = transform.translation();
2525

2626
// All line segments contained in a square with max_range on one side must be taken out,

0 commit comments

Comments
 (0)