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

接收点云的代码中对blind的处理有误 #77

Open
PanNeng-ZJU opened this issue May 8, 2024 · 0 comments
Open

接收点云的代码中对blind的处理有误 #77

PanNeng-ZJU opened this issue May 8, 2024 · 0 comments

Comments

@PanNeng-ZJU
Copy link

src/pointcloud_preprocess.cc文件的第62行处:

            if ((abs(cloud_full_[i].x - cloud_full_[i - 1].x) > 1e-7) ||
                (abs(cloud_full_[i].y - cloud_full_[i - 1].y) > 1e-7) ||
                (abs(cloud_full_[i].z - cloud_full_[i - 1].z) > 1e-7) &&
                    (cloud_full_[i].x * cloud_full_[i].x + cloud_full_[i].y * cloud_full_[i].y +
                         cloud_full_[i].z * cloud_full_[i].z >
                     (blind_ * blind_))) {
                is_valid_pt[i] = true;
            }

if语句的前三个条件缺少一个括号,导致第四个条件(blind)不起作用,正确的应为:

            if (((abs(cloud_full_[i].x - cloud_full_[i - 1].x) > 1e-7) ||
                (abs(cloud_full_[i].y - cloud_full_[i - 1].y) > 1e-7) ||
                (abs(cloud_full_[i].z - cloud_full_[i - 1].z) > 1e-7)) &&
                    (cloud_full_[i].x * cloud_full_[i].x + cloud_full_[i].y * cloud_full_[i].y +
                         cloud_full_[i].z * cloud_full_[i].z >
                     (blind_ * blind_))) {
                is_valid_pt[i] = true;
            }
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

1 participant