gazebosim/sdformat

Should validate the contents of <include>

開放

#661 建立於 2021年8月9日

 (0 則留言) (1 個反應) (1 位負責人)C++ (122 個分叉)auto 404
bughelp wanted

倉庫指標

星標
 (216 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南