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(autoware_qp_interface): incorrect parameter passing in delegating constructor #147

Conversation

NorahXiong
Copy link
Contributor

@NorahXiong NorahXiong commented Jan 2, 2025

Description

Class OSQPInterface delegating constructor is misused in the delegator. Variable eps_abs which is always a very tiny value is passed to max_iteration and then segment fault will appear when setting osqp workspace.

Related links

Should be merged after #146.

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Copy link

github-actions bot commented Jan 2, 2025

Thank you for contributing to the Autoware project!

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

Please ensure:

@NorahXiong NorahXiong force-pushed the porting/fix_bugs/autoware_qp_interface branch 2 times, most recently from b2df0a5 to 25274f6 Compare January 7, 2025 02:45
@youtalk youtalk self-requested a review January 8, 2025 08:28
@youtalk
Copy link
Member

youtalk commented Jan 8, 2025

I will review this after merging #146.

Copy link
Member

@youtalk youtalk left a comment

Choose a reason for hiding this comment

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

Please use the constant variable instead of the magic numbers.

@NorahXiong NorahXiong force-pushed the porting/fix_bugs/autoware_qp_interface branch from bad0eac to 2a5dcfb Compare January 22, 2025 06:07
@NorahXiong
Copy link
Contributor Author

Please use the constant variable instead of the magic numbers.

@youtalk Adapted to the style now.

Copy link
Member

@youtalk youtalk left a comment

Choose a reason for hiding this comment

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

LGTM

@youtalk youtalk enabled auto-merge (squash) January 24, 2025 03:38
@youtalk
Copy link
Member

youtalk commented Jan 24, 2025

Since this is fix PR, I will merge it after CI checks are alright.

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

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

Project coverage is 61.26%. Comparing base (4cb18f5) to head (5db3c68).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
...ommon/autoware_qp_interface/src/osqp_interface.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #147       +/-   ##
===========================================
- Coverage   78.75%   61.26%   -17.50%     
===========================================
  Files          11       20        +9     
  Lines         193      759      +566     
  Branches       73      412      +339     
===========================================
+ Hits          152      465      +313     
- Misses         11      137      +126     
- Partials       30      157      +127     
Flag Coverage Δ *Carryforward flag
differential 55.30% <0.00%> (?)
total 78.75% <ø> (ø) Carriedforward from 4cb18f5

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

@youtalk youtalk merged commit 45ead1c into autowarefoundation:main Jan 24, 2025
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants