2 parents e3b7185 + 97ddd08 commit 283c454Copy full SHA for 283c454
9 files changed
examples/robosuite/custom_mjcf_table.scenic
@@ -1,3 +1,4 @@
1
+# examples/robosuite/custom_mjcf_table.scenic
2
"""Test with two XML tables and XML cubes on top, positioned in front of robot."""
3
model scenic.simulators.robosuite.model
4
@@ -68,19 +69,19 @@ green_cube_xml = """
68
69
70
# Create the first table (brown) - closer to robot
71
table1 = new CustomObject on arena_floor,
- with mjcf_xml table_xml
72
+ with mjcfXml table_xml
73
74
# Create the second table (blue) - farther from robot
75
table2 = new CustomObject on arena_floor,
76
77
78
79
red_cube = new CustomObject on table1,
- with mjcf_xml red_cube_xml
80
+ with mjcfXml red_cube_xml
81
82
# Place green cube on second table
83
green_cube = new CustomObject on table2,
- with mjcf_xml green_cube_xml
84
+ with mjcfXml green_cube_xml
85
86
# Robot at origin
87
ego = new Panda at (0, 0, 0)
examples/robosuite/file_xml.scenic
@@ -12,5 +12,5 @@ table1 = new Table on arena_floor
12
13
# Load bread object from XML file
14
bread = new CustomObject on table1,
15
- with mjcf_xml "custom_object/bread.xml",
+ with mjcfXml "custom_object/bread.xml",
16
with color (0, 1, 1, 1)
examples/robosuite/four_table_workspace.scenic
examples/robosuite/full_xml_test3.scenic
@@ -66,7 +66,7 @@ arena = new CustomArena,
66
67
# Create a yellow ball using custom XML
yellow_ball = new CustomObject at (0.5, 0.0, 1.0),
- with mjcf_xml ball_object_xml
+ with mjcfXml ball_object_xml
# Create a red box using built-in Box class for comparison
red_box = new Box at (0.7, 0.2, 1.0),
examples/robosuite/mesh_test.scenic
@@ -42,7 +42,7 @@ table = new Table on arena_floor
42
43
# Create dragon - path in XML is relative to this .scenic file
44
dragon = new CustomObject on table,
45
- with mjcf_xml dragon_object_xml,
+ with mjcfXml dragon_object_xml,
46
with color (1, 0, 1, 1)
47
48
# Add a simple ball for comparison
examples/robosuite/spatial_operators_demo.scenic
@@ -57,7 +57,7 @@ custom_xml = """
57
58
# Yellow block at table surface
59
yellow_block = new CustomObject at (0.5, 0.2, 0.85),
60
- with mjcf_xml custom_xml
+ with mjcfXml custom_xml
61
62
# Complex object (Milk carton) at table surface
63
milk = new Milk at (0.8, -0.1, 0.85)
examples/robosuite/stack_lift.scenic
@@ -1,19 +1,18 @@
# examples/robosuite/stack_lift.scenic
-work_table = new Table at (0.6, 0, 0.8),
+work_table = new Table on (0.6, 0, 0.8),
5
with width 0.6,
6
with length 1.2,
7
with height 0.05
8
9
-bottom_cube = new Box at (0.6, 0, 0.83),
+bottom_cube = new Box on work_table,
10
with color (0.2, 0.3, 0.8, 1),
11
with width 0.06, with length 0.06, with height 0.06
-top_cube = new Box at (0.6, 0, 0.89),
+top_cube = new Box on bottom_cube,
with color (0.8, 0.2, 0.2, 1)
-bottle = new Bottle at (0.6, 0.3, 0.83)
17
18
pickup_object = top_cube
19
@@ -25,5 +24,7 @@ behavior StackLift():
25
24
if pickup_object.position.z > 1.0:
26
terminate simulation
27
wait
28
-ego = new UR5e at (0, 0, 0),
+ terminate simulation
+
29
+ego = new UR5e on (0, 0, 0),
30
with behavior StackLift()
0 commit comments