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): fix constexpr related bugs #7686

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

veqcc
Copy link
Contributor

@veqcc veqcc commented Jun 25, 2024

Description

These are fixes based on clang-tidy CRITICAL warnings ( = clang compile error)

For example,

constexpr variable 'detection_yaw_sin' must be initialized by a constant expression

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@veqcc veqcc requested review from knzo25 and kminoda as code owners June 25, 2024 09:48
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jun 25, 2024
Copy link

Thank you for contributing to the Autoware project!

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

Please ensure:

@veqcc veqcc added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 25, 2024
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 2.63%. Comparing base (507e3f4) to head (f847a04).
Report is 136 commits behind head on main.

Files Patch % Lines
...lidar_centerpoint/test/test_postprocess_kernel.cpp 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #7686       +/-   ##
==========================================
- Coverage   14.84%   2.63%   -12.21%     
==========================================
  Files        1999     165     -1834     
  Lines      139163   10118   -129045     
  Branches    43716    1579    -42137     
==========================================
- Hits        20661     267    -20394     
+ Misses      95731    9761    -85970     
+ Partials    22771      90    -22681     
Flag Coverage Δ
differential 2.63% <0.00%> (?)
total ?

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

Copy link
Contributor

@knzo25 knzo25 left a comment

Choose a reason for hiding this comment

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

I would have sworn that stl's math functions were compatible with constexpr 😢

LGTM

@veqcc
Copy link
Contributor Author

veqcc commented Jun 25, 2024

@knzo25
Agreed 😮‍💨
They would be constexpr from C++26

@veqcc veqcc merged commit d20d901 into autowarefoundation:main Jun 25, 2024
41 of 43 checks passed
@veqcc veqcc deleted the fix_constexpr_bugs branch June 25, 2024 13:49
simon-eisenmann-driveblocks pushed a commit to simon-eisenmann-driveblocks/autoware.universe that referenced this pull request Jun 26, 2024
mitukou1109 pushed a commit to mitukou1109/autoware.universe that referenced this pull request Jul 2, 2024
palas21 pushed a commit to palas21/autoware.universe that referenced this pull request Jul 12, 2024
tby-udel pushed a commit to tby-udel/autoware.universe that referenced this pull request Jul 14, 2024
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
knzo25 pushed a commit to tier4/autoware.universe that referenced this pull request Dec 16, 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) 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.

2 participants