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(lidar_centerpoint,image_projection_based_fusion): add guard to avoid exceeding max voxel size #5824

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

wep21
Copy link
Contributor

@wep21 wep21 commented Dec 9, 2023

Description

When voxel size exceeds max voxel size, cuda illegal memory access occurs.
This PR adds guard to avoid exceeding max voxel size.

🤖[deprecated] Generated by Copilot at 38887d0

This pull request adds a new parameter max_voxel_size to the generateBaseFeatures_kernel function and its related functions in the perception/image_projection_based_fusion and perception/lidar_centerpoint modules. The parameter is used to limit the number of points per voxel and filter out invalid voxels for the pointpainting fusion algorithm. The parameter value is configured in the launch files and passed to the function calls.

Tests performed

checked in tier4 internal evaluation system.

Not applicable.

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 9, 2023
@wep21 wep21 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 9, 2023
Copy link

codecov bot commented Dec 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (41e5903) 15.28% compared to head (c7ec6d2) 15.16%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5824      +/-   ##
==========================================
- Coverage   15.28%   15.16%   -0.12%     
==========================================
  Files        1739     1766      +27     
  Lines      119755   120687     +932     
  Branches    36367    36367              
==========================================
- Hits        18302    18300       -2     
- Misses      80974    81907     +933     
- Partials    20479    20480       +1     
Flag Coverage Δ *Carryforward flag
differential 0.00% <ø> (?)
total 15.28% <ø> (-0.01%) ⬇️ Carriedforward from 41e5903

*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.

Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@miursh miursh left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!
LGTM

@wep21 wep21 merged commit 32712ab into main Dec 11, 2023
23 of 27 checks passed
@wep21 wep21 deleted the avoid-exceeding-max-voxel-size branch December 11, 2023 01:16
miursh pushed a commit to tier4/autoware.universe that referenced this pull request Dec 11, 2023
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Dec 11, 2023
…oid exceeding max voxel size (#1065)

fix(lidar_centerpoint,image_projection_based_fusion): add guard to avoid exceeding max voxel size (autowarefoundation#5824)

Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com>
shmpwk pushed a commit to tier4/autoware.universe that referenced this pull request Dec 11, 2023
danielsanchezaran pushed a commit to tier4/autoware.universe that referenced this pull request Dec 15, 2023
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…oid exceeding max voxel size (autowarefoundation#5824)

Signed-off-by: karishma <karishma@interpl.ai>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Dec 19, 2023
…oid exceeding max voxel size (autowarefoundation#5824)

Signed-off-by: karishma <karishma@interpl.ai>
satoshi-ota pushed a commit to satoshi-ota/autoware.universe that referenced this pull request Jan 14, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants