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

Remove GetPoints #389

Merged
merged 7 commits into from
Aug 8, 2024
Merged

Conversation

tizianoGuadagnino
Copy link
Collaborator

@tizianoGuadagnino tizianoGuadagnino commented Aug 8, 2024

Hi guys, it is me again. I just removed the GetPoints function, as it is now redundant because we moved the nn search to the VoxelHashMap, which has the same performance but less code.

comparison

To follow up, move the does the voxel exist check from the NN search to the AdjacentVoxels function. This opens a lot of additional filtering that can be done on the NN search, which should (hopefully) reduce the compute.

Copy link
Collaborator

@nachovizzo nachovizzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really get why we do this, but I'm also happy to proceed. I left some comments mainly on readability.

I'd also refactor the PR description as we don't remove the GetPoints function but absorve its functionality in VoxelHashMap::GetClosestNeighbor. Also I didn't understand the comment with the GetAdjacentVoxels at all 🤣

cpp/kiss_icp/core/VoxelHashMap.cpp Show resolved Hide resolved
cpp/kiss_icp/core/VoxelHashMap.cpp Outdated Show resolved Hide resolved
cpp/kiss_icp/core/VoxelHashMap.cpp Outdated Show resolved Hide resolved
@tizianoGuadagnino
Copy link
Collaborator Author

I don't really get why we do this, but I'm also happy to proceed. I left some comments mainly on readability.

I'd also refactor the PR description as we don't remove the GetPoints function but absorve its functionality in VoxelHashMap::GetClosestNeighbor. Also I didn't understand the comment with the GetAdjacentVoxels at all 🤣

Nope bruda, I literally remove it, as it was concatenating the inner points of each voxel into a single std::vector. Now we don't copy this points, but just use a ref from the robin_map.

Thanks for the comments ❤️ I will integrate them now.

About the GetAdjacentVoxels, stay tuned we are working on something with @benemer.

@tizianoGuadagnino tizianoGuadagnino merged commit 95f6dfd into main Aug 8, 2024
19 checks passed
@tizianoGuadagnino tizianoGuadagnino deleted the tiziano/remove_redundant_copy_of_points branch August 8, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants