gazebosim/sdformat

Should validate the contents of <include>

Offen

#661 geöffnet am 09.08.2021

 (0 Kommentare) (1 Reaktion) (1 zugewiesene Person)C++ (122 Forks)auto 404
bughelp wanted

Repository-Metriken

Stars
 (216 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Currently, sdf::readXml is not called on the <include> element, so its contents are not validated according to the SDFormat spec. Any unknown elements are silently ignored by the parser except when using the interface API. This is different behavior than when unknown elements are encountered elsewhere (e.g. in ).

For example:

<sdf version='1.8'>
  <world name='default'>
     <include>
        <uri>test_model</uri>
        <name>override_model_name</name>
         <pose>4 5 6 0 0 0</pose>
         <foo>bar</foo>
      </include>
   </world>
</sdf>

The element <foo> should trigger a warning/error depending on the configuration of the parser.

Contributor Guide