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

ros2 build and warnings fixes. #31

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ewak
Copy link

@ewak ewak commented Mar 3, 2025

I was exploring and decided to help fix some warnings. I note that newer versions of nanoflann fix the templates so that you can better choose the type that is used to store indexes. I changed it from size_t to uint32_t in this pull request. That may save some memory.
I also got brought run_kiss_matcher.cpp into kiss_matcher_ros.
Some of these changes may be useful to you.
I tried to keep them isolated and logical.

ewak added 7 commits March 3, 2025 12:16
This is similar to the mechanism used by kiss-icp

Signed-off-by: Mike Wake <[email protected]>
Signed-off-by: Mike Wake <[email protected]>
Add required pcl headers
Take colorize function from quatro_utils.h
Add roll_aug_angle
Avoid segfault on ubuntu22.04 by just calling spin() on pcl viewer

Signed-off-by: Mike Wake <[email protected]>
Compared with NANOFLANN_VERSION 0x170

Signed-off-by: Mike Wake <[email protected]>
@LimHyungTae
Copy link
Member

Whoa, Mike, really appreciate it, and that's what I needed! But now, I'm trying to submit a paper to ICCV, so could you give me a week? I'll check the codes this Sunday. Thanks!

ewak added 6 commits March 4, 2025 16:22
When use_ratio_test is true, need more space
allocated to accomodate for it.

Also avoid invalid read by testing ji != -1
before attempting to use it in i_to_j_multi_flann

Signed-off-by: Mike Wake <[email protected]>
…D_OPERATOR_NEW

address sanitizer is currently giving allocation alignment errors.
Using c++17 to attempt to avoid them but there appears to be
a mix of built libraries mixing eigen alignment preventing
address sanitzer from working

Signed-off-by: Mike Wake <[email protected]>
Keep default of CMAKE_BUILD_TYPE=Release but
allow it to be overriden for debugging purposes

Signed-off-by: Mike Wake <[email protected]>
@ewak
Copy link
Author

ewak commented Mar 4, 2025

Here are some more fixes. Its now valgrind and address sanitizer clean with a stress test to solve #30

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

Successfully merging this pull request may close these issues.

2 participants