-
Notifications
You must be signed in to change notification settings - Fork 100
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
Remove robot not found error when parsing fails #1290
Conversation
Signed-off-by: Marco A. Gutierrez <[email protected]>
Codecov Report
@@ Coverage Diff @@
## sdf13 #1290 +/- ##
==========================================
- Coverage 87.67% 87.59% -0.08%
==========================================
Files 128 128
Lines 16814 16826 +12
==========================================
- Hits 14741 14739 -2
- Misses 2073 2087 +14
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a much needed UX improvement, so thanks!! I've left some minor comments, but overall it looks great! Would you be able to add some tests?
Signed-off-by: Marco A. Gutierrez <[email protected]>
When adding the tests I realized that we need to check for the Added relevant changes in 029b204. |
Signed-off-by: Marco A. Gutierrez <[email protected]>
Signed-off-by: Marco A. Gutierrez <[email protected]>
a1a3ba9 adds one more test that checks the |
🦟 Bug fix
Fixes #151
Summary
When a file fails to be parsed as SDF the
parser.cc
tries to parse it as URDF generating the following error:This becomes confusing the file could just be a malformed SDF.
This PR adds a check for the
robot
tag before attempting the parse in order to avoid the misleading error. It also adds an error in case it's not found indicating that the file could not be identified as SDF nor URDF.NOTE: I'm targeting
sdf13
as I consider this a bug fix but let me know if this should go intomaster
.Checklist
codecheck
passed (See contributing)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.