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

SDF.cc update calls to use sdf::Errors output #1295

Merged
merged 9 commits into from
Jun 26, 2024
Merged

Conversation

marcoag
Copy link
Member

@marcoag marcoag commented Jun 24, 2023

🎉 New feature

Work towards #820.

Summary

Adds missing sdf::Errors structure as an option to report errors on SDF. Makes sure that no errors are printed and all are reported through the structure when using the functions that include it as parameter.

Test it

Call the functions that report sdf::Errors through a parameter and no errors should be printed but only reported through the sdf structure.

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 3 commits May 9, 2023 15:17
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@github-actions github-actions bot added 🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic labels Jun 24, 2023
Signed-off-by: Marco A. Gutierrez <marco@openrobotics.org>
@marcoag
Copy link
Member Author

marcoag commented Jun 24, 2023

This PR depends on #1294 for the tests to pass since they check nothing is printed.

@marcoag
Copy link
Member Author

marcoag commented Jun 27, 2023

This function signature was kept (even though is not public) because otherwise it would involve further changes in parser_urdf.cc and we are leaving those files for future updates.

@azeey azeey added the beta Targeting beta release of upcoming collection label Jul 31, 2023
@azeey azeey removed 🎵 harmonic Gazebo Harmonic beta Targeting beta release of upcoming collection labels Aug 26, 2023
@@ -179,6 +179,9 @@ namespace sdf

/// \brief Generic error during parsing.
PARSING_ERROR,

/// \brief File not found error.
FILE_NOT_FOUND,
Copy link
Member

Choose a reason for hiding this comment

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

a review thread in #1296 (comment) recommends using FILE_READ instead of adding a new enum for this

Copy link
Member

Choose a reason for hiding this comment

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

I've opened #1442 targeting this branch to use FILE_READ instead of a new enum

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters and others added 2 commits June 25, 2024 21:53
include/sdf/SDFImpl.hh Outdated Show resolved Hide resolved
include/sdf/SDFImpl.hh Show resolved Hide resolved
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Copy link
Collaborator

@azeey azeey left a comment

Choose a reason for hiding this comment

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

Thanks @scpeters!!

@azeey azeey merged commit 4053695 into sdf13 Jun 26, 2024
11 checks passed
@azeey azeey deleted the marcoag/sdf_error_SDF branch June 26, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants