-
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
Joint limits silently ignored if improperly nested #473
Comments
Cookie crumb: Andres ran into this while working with Drake's usage of |
Putting this on the queue for |
It appears like the current behavior of the parser is to ignore any tags that aren't part of the spec. Is the suggested fix to start issuing warnings or errors when tags are included that don't match spec? I was planning to implement this with just warnings for now, but that makes it impossible to test. Perhaps I should also add a config option to @azeey's ParserConfig for a |
After inspecting the source more closely it looks like these conditions are already checked. They just aren't presented to the user consistently. Extra attributes in an element issue a warning: Extra child elements currently only inform with a |
see also #327 (comment) |
Ooh, thanks for the bread crumb Steve. Perhaps adding some configurability in Addisu's parser config is the way to go |
I'll let @EricCousineau-TRI chime in a with more thoughtful statement of the below once he's back online, but from Drake's perspective we have another consideration I'll attempt to describe. We offer our own custom extensions to sdformat syntax (e.g., I'd love to be able to have libsdformat produce errors for unknown elements that are written without a namespace, but then also silently defer to the calling application for any potential errors from the namespace-qualified elements. I want to let Drake do the error-checking and error-reporting for the Edit: Maybe Drake can already do this, by walking through the list of "unrecognized elements" given to us by libsdformat, and checking that all of them are in the drake namespace? |
I think those elements containing a |
Opened #481 I think my new tests show that with the pedantic setting, unrecognized elements are flagged, unless they have a namespace character. |
👍 There's also an issue to handle / provide best practices for custom namespace validation: |
If a user specifies a joint as follows
the
<limit>
element will be silently ignored, since it is not inside the<axis>
element. That silence can make it rather difficult to debug this as an end user.The text was updated successfully, but these errors were encountered: