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

Noise: update calls to use sdf::Errors parameters #1151

Merged
merged 6 commits into from
Mar 28, 2023

Conversation

marcoag
Copy link
Member

@marcoag marcoag commented Sep 19, 2022

Signed-off-by: Marco A. Gutierrez marco@openrobotics.org

🎉 New feature

Work towards #820.

Depends on: #1141.

Summary

Adds missing Errors structure parameters in a few methods of the Noise class.

Test it

Using the Noise class should report all errors through sdf::Errors if the errors parameter is used, it should print them otherwise.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Marco A. Gutierrez added 2 commits October 3, 2022 16:06
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@marcoag marcoag changed the base branch from main to sdf13 October 3, 2022 16:07
Marco A. Gutierrez added 2 commits March 22, 2023 12:43
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Copy link
Collaborator

@aaronchongth aaronchongth 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
Collaborator

@aaronchongth aaronchongth left a comment

Choose a reason for hiding this comment

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

Just noticed that there is Noise_TEST.cc, could you a few minimal tests for the function overload? Perhaps something similar to TEST(DOMNoise, ToElement), and another where an expected error is returned

Copy link
Collaborator

@aaronchongth aaronchongth left a comment

Choose a reason for hiding this comment

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

Per DM, changes are small enough, more tests not required. LGTM!

@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Merging #1151 (2b32fcc) into sdf13 (9d83fe5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 2b32fcc differs from pull request most recent head d5c657f. Consider uploading reports for the commit d5c657f to get more accurate results

@@           Coverage Diff           @@
##            sdf13    #1151   +/-   ##
=======================================
  Coverage   87.44%   87.44%           
=======================================
  Files         126      126           
  Lines       16341    16349    +8     
=======================================
+ Hits        14289    14297    +8     
  Misses       2052     2052           
Impacted Files Coverage Δ
src/Noise.cc 96.09% <100.00%> (+0.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@marcoag
Copy link
Member Author

marcoag commented Mar 27, 2023

Per DM, changes are small enough, more tests not required. LGTM!

Just went ahead and added a test, since the workload was not very heavy.

Copy link
Collaborator

@aaronchongth aaronchongth 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 adding the test!

@aaronchongth aaronchongth merged commit 5e97862 into sdf13 Mar 28, 2023
@aaronchongth aaronchongth deleted the marcoag/sdf_error_noise branch March 28, 2023 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants