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

fix(voxel_based_compare_map): temporary fix pointcloud transform lookup #10299

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

Conversation

badai-nguyen
Copy link
Contributor

@badai-nguyen badai-nguyen commented Mar 19, 2025

Description

Related links

Parent Issue:

How was this PR tested?

  • By logging_simulator on internal rosbag
Before After (a large number pc were filtered)
Screenshot from 2025-03-18 23-19-44_before Screenshot from 2025-03-18 23-13-58_after
Screenshot from 2025-03-19 11-30-35_before Screenshot from 2025-03-19 11-30-43_after
Screencast from 2025年03月19日 08時33分35秒_before.webm Screencast from 2025年03月19日 08時33分35秒_before.webm
  • By internal evaluator (WIP):

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…up_time

Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) labels Mar 19, 2025
Copy link

github-actions bot commented Mar 19, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@badai-nguyen badai-nguyen self-assigned this Mar 19, 2025
@badai-nguyen badai-nguyen added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 19, 2025
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 30.43478% with 16 lines in your changes missing coverage. Please review.

Project coverage is 25.91%. Comparing base (660ae1a) to head (915a4fa).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...tation/src/voxel_based_compare_map_filter/node.cpp 30.43% 12 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10299      +/-   ##
==========================================
- Coverage   25.92%   25.91%   -0.01%     
==========================================
  Files        1382     1382              
  Lines      106811   106860      +49     
  Branches    40907    40928      +21     
==========================================
+ Hits        27690    27698       +8     
- Misses      76418    76456      +38     
- Partials     2703     2706       +3     
Flag Coverage Δ *Carryforward flag
differential 21.83% <30.43%> (?)
differential-cuda 18.86% <30.43%> (?) Carriedforward from 8a17324
total 25.92% <ø> (-0.01%) ⬇️ Carriedforward from 8a17324

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mojomex
Copy link
Contributor

mojomex commented Mar 19, 2025

@badai-nguyen There seems to be some previously non-existent misalignment in some regions now. It looks like those parts of the pointcloud have an angular offset to the map.

Before After
image image

I wonder if it is an issue with this Pr, with other bugs or delays in the inputs, or if this is a visualization issue (delay between pointclouds).

Copy link
Contributor

@mojomex mojomex left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I have a few timing-related comments 🙇

Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

LGTM and it worked within my v4.1.0 environment

@YoshiRi
Copy link
Contributor

YoshiRi commented Mar 19, 2025

Pointcloud number decreased and it looks better now. But there seems to be some part is not removed yet.

Before After
Screenshot from 2025-03-18 14-00-42 image

@badai-nguyen
Copy link
Contributor Author

There seems to be some previously non-existent misalignment in some regions now. It looks like those parts of the pointcloud have an angular offset to the map.

@mojomex
Thanks for your insight review.
I think transform back output of compare_map_filter from map -> baselink still use the default convert with latest tf
Which might cause the misalignment. I will fix it.

Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
@badai-nguyen
Copy link
Contributor Author

badai-nguyen commented Mar 19, 2025

@badai-nguyen There seems to be some previously non-existent misalignment in some regions now. It looks like those parts of the pointcloud have an angular offset to the map.

Before After
image image
I wonder if it is an issue with this Pr, with other bugs or delays in the inputs, or if this is a visualization issue (delay between pointclouds).

@mojomex
I fixed this misalignement at 15546f6
The result after update as here:
image
video:
Screencast from 2025年03月20日 00時17分53秒_after_fix_back_tf.webm

Comment on lines 25 to 29
# src/distance_based_compare_map_filter/node.cpp
# src/voxel_based_approximate_compare_map_filter/node.cpp
src/voxel_based_compare_map_filter/node.cpp
src/voxel_distance_based_compare_map_filter/node.cpp
src/compare_elevation_map_filter/node.cpp
# src/voxel_distance_based_compare_map_filter/node.cpp
# src/compare_elevation_map_filter/node.cpp
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a very temporary workaround. I think it would be better to make it unnecessary to comment out the above before merging. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or do you mean that the commented-out feature is intended to be deprecated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yukkysaito I'm sorry, it was my typo. I fixed 89523c9
By the way, we also started a discussion about deprecation of unused filters. I will open the disucssion later.

Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
@mojomex mojomex self-requested a review March 23, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

4 participants