Skip to content

Commit 2da121f

Browse files
veqccpre-commit-ci[bot]
authored and
KhalilSelyan
committedJul 22, 2024
fix(yabloc): fix bug in capturing in lambda function (#7208)
* fix(yabloc): fix bug in capturing in lambda function Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ae997bd commit 2da121f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎localization/yabloc/yabloc_common/src/extract_line_segments.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pcl::PointCloud<pcl::PointNormal> extract_near_line_segments(
2525

2626
// All line segments contained in a square with max_range on one side must be taken out,
2727
// so pick up those that are closer than the **diagonals** of the square.
28-
auto check_intersection = [max_range, pose_vector](const pcl::PointNormal & pn) -> bool {
28+
auto check_intersection = [sqrt_two, max_range,
29+
pose_vector](const pcl::PointNormal & pn) -> bool {
2930
const Eigen::Vector3f from = pn.getVector3fMap() - pose_vector;
3031
const Eigen::Vector3f to = pn.getNormalVector3fMap() - pose_vector;
3132

0 commit comments

Comments
 (0)