Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码问题 #4

Closed
wwruiiii opened this issue Dec 21, 2023 · 2 comments
Closed

代码问题 #4

wwruiiii opened this issue Dec 21, 2023 · 2 comments

Comments

@wwruiiii
Copy link

尊敬的作者您好,我在阅读代码的过程中,发现laserMapping.cpp文件中的“Nearest_Points“变量没有被赋值但是多处被用到,请问这是正确做法么?若您看到给我回复,我万分感谢。

@YWL0720
Copy link
Owner

YWL0720 commented Dec 21, 2023

laserMapping.cpp中的第687行,创建了一个引用points_near,其直接引用Nearest_Points[i]

auto &points_near = Nearest_Points[i];

其值随后在第692行中被修改

ikdtree.Nearest_Search(point_world, NUM_MATCH_POINTS, points_near, pointSearchSqDis);

@wwruiiii
Copy link
Author

哇,好及时,谢谢!是我看的不仔细了

@YWL0720 YWL0720 closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants