sdformat
sdformat copied to clipboard
Draft: Parser warning message when <gazebo> reference does not exist in URDF
🎉 New feature
Closes #1372
Summary
Added functionality to emit a warning when a reference to a link does not exists by adding a check in the InsertSDFExtensionLink
method.
Test it
I've added the ParseGazeboRefDoesntExistWarningMessage
test which adds the test case mentioned from #1372 with conflicting U+0069 and U+0456 characters.
Checklist
- [ ] Signed all commits for DCO
- [x] 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) - [x] 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.
If you check the diff, the indentation in your changes is very wierd. Do you mind to fix it ?
Hi, I took a look at it—I think there was something wrong with my text editor, it showed a different output and I hadn't noticed earlier. Let me fix it now.
Ok, sorry about the many commits—I think the formatting should be fixed now. I'll make sure everything fits with rigorously with codecheck
afterwards.
@traversaro would you be able to take a look at this?
Thanks @aagrawal05 ! I guess it could make sense to do something similar with joints as well, but even just with links this PR is already quite useful.
Thanks @aagrawal05 ! I guess it could make sense to do something similar with joints as well, but even just with links this PR is already quite useful.
Thanks @traversaro, I will take a look into it. Please let me know if anything further is to be done.
@aagrawal05 did you mean to close this PR?
@aagrawal05 did you mean to close this PR?
Whoops yeah sorry, I must have clicked the wrong button!
Ok I've added the other extensions and tests, please take a look.
Ok all the above changes should be addressed—I was mistaken about how the reference works.
This passes all the tests now and should be ready. Please let me know if anything further is needed, @azeey.
Apologies for the delay in resolving this PR. Finding a solution is taking longer than expected and I am currently traveling. I will try to push my changes by the end of this week.