-
Notifications
You must be signed in to change notification settings - Fork 678
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_universe_utils): fix bug in test #9710
fix(autoware_universe_utils): fix bug in test #9710
Conversation
Signed-off-by: veqcc <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Does anyone know why
|
I found it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9710 +/- ##
==========================================
+ Coverage 29.74% 29.79% +0.04%
==========================================
Files 1444 1445 +1
Lines 108693 108686 -7
Branches 42665 42666 +1
==========================================
+ Hits 32336 32382 +46
+ Misses 73175 73116 -59
- Partials 3182 3188 +6
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: veqcc <[email protected]>
Signed-off-by: veqcc <[email protected]>
Description
This PR fixes a bug in random float value generations in autoware_unvierse_utils.
When I was fixing clang compiler warning,
I found that the way random values are generated was wrong.
I added
std::cout << x << ' ' << y << std::end
to checkstd::rand()
is working:Then I found the values
x
andy
were constants.I replaced it with more reliable random generator
I confirmed the values are random.
Related links
Parent Issue:
How was this PR tested?
Run
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.