File: world_valid_root_reference.sdf

package info (click to toggle)
sdformat 12.3.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,980 kB
  • sloc: cpp: 54,706; python: 3,729; javascript: 704; ruby: 366; sh: 97; ansic: 30; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" ?>
<sdf version="1.8" xmlns:custom_ns="custom_ns_uri">
  <world name="world_invalid_root_reference"> 
    <model name="model1">
      <pose>1 0 0 0 0 0</pose>
      <link name="link1">
        <sensor name="sensor1" type="imu">
          <topic>__root__</topic> <!-- VALID __root__ is being used in a context where frame semantics does not apply -->
        </sensor>
      </link>
    </model>
    <frame name="frame1" custom_ns:attr1="__root__"/> <!-- VALID __root__ is being used in a custom attribute -->
    <custom_ns:elem1 name="__root__" /> <!-- VALID __root__ is being used in a custom element -->
  </world>
</sdf>