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

Frame: update calls to use sdf::Errors output #1156

Merged
merged 7 commits into from
Mar 28, 2023
Merged

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 Frame class.

Test it

Using the Frame 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.

@marcoag marcoag changed the title Marcoag/sdf error frame Frame: update calls to use sdf::Errors parameters Sep 19, 2022
Marco A. Gutierrez added 2 commits October 3, 2022 16:32
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:32
@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Merging #1156 (900971e) into sdf13 (319ec31) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 900971e differs from pull request most recent head 4206180. Consider uploading reports for the commit 4206180 to get more accurate results

@@           Coverage Diff           @@
##            sdf13    #1156   +/-   ##
=======================================
  Coverage   87.50%   87.50%           
=======================================
  Files         126      126           
  Lines       16408    16413    +5     
=======================================
+ Hits        14358    14363    +5     
  Misses       2050     2050           
Impacted Files Coverage Δ
src/Frame.cc 96.55% <100.00%> (+0.21%) ⬆️

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

A single trivial change, but otherwise LGTM!

src/Frame.cc Outdated
@@ -219,25 +219,34 @@ sdf::ElementPtr Frame::Element() const
return this->dataPtr->sdf;
}

/////////////////////////////////////////////////
///////////////////////////////////////////////
Copy link
Collaborator

Choose a reason for hiding this comment

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

probably accidentally removed 2 characters here

Copy link
Member Author

Choose a reason for hiding this comment

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

True, maybe I'm going too fast over these changes hehe. Thanks for the catch, should be fixed now.

Marco A. Gutierrez added 2 commits March 28, 2023 04:06
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.

thanks!

@marcoag marcoag changed the title Frame: update calls to use sdf::Errors parameters Frame: update calls to use sdf::Errors output Mar 28, 2023
@marcoag marcoag merged commit 9ab7799 into sdf13 Mar 28, 2023
@marcoag marcoag deleted the marcoag/sdf_error_frame branch March 28, 2023 13:35
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