chrisjcc commited on
Commit
6c64575
·
1 Parent(s): 3c5f45f

MuJoCo XML parser does not understand Jinja-style templating (i.e. {% for ... %} or {{ ... }}), so you must replace that block with explicit, valid XML.

Browse files
Files changed (1) hide show
  1. assets/tray.xml +59 -4
assets/tray.xml CHANGED
@@ -10,12 +10,67 @@
10
 
11
  <!-- Dynamic objects (all with free joints) -->
12
  <!-- You can randomize and selectively activate them in Python -->
13
- {% for i in range(10) %}
14
- <body name="obj{{ i }}" pos="0 0 0.1">
15
- <geom type="box" size="0.015 0.015 0.015" rgba="{{ 0.1 * i }} {{ 0.2 + 0.05 * i }} {{ 0.7 - 0.05 * i }} 1" />
 
 
 
 
 
 
 
16
  <joint type="free" />
17
  </body>
18
- {% endfor %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  <!-- Pusher -->
21
  <body name="pusher" pos="0.3 -0.3 0.05">
 
10
 
11
  <!-- Dynamic objects (all with free joints) -->
12
  <!-- You can randomize and selectively activate them in Python -->
13
+
14
+ <!-- Object 0 -->
15
+ <body name="obj0" pos="0 0 0.1">
16
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.0 0.2 0.7 1.0"/>
17
+ <joint type="free" />
18
+ </body>
19
+
20
+ <!-- Object 1 -->
21
+ <body name="obj1" pos="0 0 0.1">
22
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.1 0.25 0.65 1.0"/>
23
  <joint type="free" />
24
  </body>
25
+
26
+ <!-- Object 2 -->
27
+ <body name="obj2" pos="0 0 0.1">
28
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.2 0.3 0.6 1.0"/>
29
+ <joint type="free" />
30
+ </body>
31
+
32
+ <!-- Object 3 -->
33
+ <body name="obj3" pos="0 0 0.1">
34
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.3 0.35 0.55 1.0"/>
35
+ <joint type="free" />
36
+ </body>
37
+
38
+ <!-- Object 4 -->
39
+ <body name="obj4" pos="0 0 0.1">
40
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.4 0.4 0.5 1.0"/>
41
+ <joint type="free" />
42
+ </body>
43
+
44
+ <!-- Object 5 -->
45
+ <body name="obj5" pos="0 0 0.1">
46
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.5 0.45 0.45 1.0"/>
47
+ <joint type="free" />
48
+ </body>
49
+
50
+ <!-- Object 6 -->
51
+ <body name="obj6" pos="0 0 0.1">
52
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.6 0.5 0.4 1.0"/>
53
+ <joint type="free" />
54
+ </body>
55
+
56
+ <!-- Object 7 -->
57
+ <body name="obj7" pos="0 0 0.1">
58
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.7 0.55 0.35 1.0"/>
59
+ <joint type="free" />
60
+ </body>
61
+
62
+ <!-- Object 8 -->
63
+ <body name="obj8" pos="0 0 0.1">
64
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.8 0.6 0.3 1.0"/>
65
+ <joint type="free" />
66
+ </body>
67
+
68
+ <!-- Object 9 -->
69
+ <body name="obj9" pos="0 0 0.1">
70
+ <geom type="box" size="0.015 0.015 0.015" rgba="0.9 0.65 0.25 1.0"/>
71
+ <joint type="free" />
72
+ </body>
73
+
74
 
75
  <!-- Pusher -->
76
  <body name="pusher" pos="0.3 -0.3 0.05">