File: model_relative_to_nested_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 (52 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" ?>
<sdf version='1.8'>
  <model name="parent_model">
    <link name="L"/>
    <model name="M1">
      <pose>1 0 0 0 1.5707963267948966 0</pose>
      <link name="L1">
        <pose>0 1 0 0 0 0</pose>
      </link>
      <joint name="J1" type="fixed">
        <parent>L1</parent>
        <child>L2</child>
      </joint>
      <link name="L2">
        <pose>0 0 1 0 0 0</pose>
      </link>
      <frame name="F1">
        <pose relative_to="L2">1 0 0 0 0 0</pose>
      </frame>
      <model name="CM1">
        <pose>0 1 0 1.5707963267948966 0 0</pose>
        <link name="L">
          <pose>1 0 0 0 -1.5707963267948966 0</pose>
        </link>
      </model>
    </model>
    <model name="M2">
      <pose relative_to="M1">2 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
    <model name="M3">
      <pose relative_to="M1::L1">3 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
    <model name="M4">
      <pose relative_to="M1::J1">4 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
    <model name="M5">
      <pose relative_to="M1::F1">5 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
    <model name="M6">
      <pose relative_to="M1::CM1">6 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
    <model name="M7">
      <pose relative_to="M1::CM1::L">7 0 0 0 0 0</pose>
      <link name="L"/>
    </model>
  </model>
</sdf>