Skip to content

Commit 551c0aa

Browse files
committed
add white floor and walls for ioai test scenario
1 parent d157088 commit 551c0aa

2 files changed

Lines changed: 260 additions & 10 deletions

File tree

assets/synthnova_assets/scenarios/ioai_test_scenario.json

Lines changed: 200 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "ioai_test_scenario",
33
"description": "Exported scenario from SynthNova Physics Simulator",
4-
"uuid": "088d7eed_a398_4f3b_a218_a55afd73b72e",
4+
"uuid": "9369cc3d_6f6b_4101_bed5_934719663fb3",
55
"robots": [
66
{
77
"prim_path": "/World/Galbot",
88
"name": "galbot_one_foxtrot",
9-
"uuid": "1561dafc_4ba2_492f_8cc2_7fb6d1fe35d9",
9+
"uuid": "07edcb57_d8d6_4fc9_8b43_99c87f321c0c",
1010
"usd_path": null,
1111
"mjcf_path": "synthnova_assets/robots/galbot_one_foxtrot_description_simplified/galbot_one_foxtrot.xml",
1212
"urdf_path": null,
@@ -41,7 +41,7 @@
4141
"prim_path": "/World/Shelf",
4242
"type": "mesh",
4343
"name": "shelf",
44-
"uuid": "ad0cc8b4_4d59_4798_bc23_f9689bfdb14b",
44+
"uuid": "b58ea66c_b955_42db_856a_e28ec155ed7b",
4545
"usd_path": null,
4646
"obj_path": null,
4747
"mjcf_path": "synthnova_assets/objects_aigc/shelf/shelf.xml",
@@ -74,7 +74,7 @@
7474
"prim_path": "/World/Table",
7575
"type": "mesh",
7676
"name": "table",
77-
"uuid": "54ee2176_6705_4ea6_bcb7_0f5f0990339c",
77+
"uuid": "e6780d96_5f2f_4c98_bf4d_202e5d049ffe",
7878
"usd_path": null,
7979
"obj_path": null,
8080
"mjcf_path": "synthnova_assets/objects_aigc/table/table.xml",
@@ -107,7 +107,7 @@
107107
"prim_path": "/World/Mug",
108108
"type": "mesh",
109109
"name": "mug",
110-
"uuid": "158db2d5_32c0_48d8_9798_f80570ee8f1c",
110+
"uuid": "00a3b559_f326_46b6_9661_3b796db71c62",
111111
"usd_path": null,
112112
"obj_path": null,
113113
"mjcf_path": "synthnova_assets/objects/mug/mug.xml",
@@ -140,7 +140,7 @@
140140
"prim_path": "/World/Power_drill",
141141
"type": "mesh",
142142
"name": "power_drill",
143-
"uuid": "ad48b526_cd11_4156_83f2_7c720fd22ae5",
143+
"uuid": "215a8ff0_bcf7_43b6_851b_70ff203a185a",
144144
"usd_path": null,
145145
"obj_path": null,
146146
"mjcf_path": "synthnova_assets/objects/power_drill/power_drill.xml",
@@ -173,7 +173,7 @@
173173
"prim_path": "/World/cone_1",
174174
"type": "mesh",
175175
"name": "cone_1",
176-
"uuid": "eb8b9fcd_908b_4bb9_bd51_7e61f94cee57",
176+
"uuid": "94681e0d_f5e8_47dc_acf4_a663375bbcb1",
177177
"usd_path": null,
178178
"obj_path": null,
179179
"mjcf_path": "synthnova_assets/objects_aigc/cone/cone.xml",
@@ -206,7 +206,7 @@
206206
"prim_path": "/World/cone_2",
207207
"type": "mesh",
208208
"name": "cone_2",
209-
"uuid": "d70e82b0_3c24_43fe_801f_7f340dc991ff",
209+
"uuid": "f2dff16d_c4c3_4d52_ab3d_a7ab84e37b18",
210210
"usd_path": null,
211211
"obj_path": null,
212212
"mjcf_path": "synthnova_assets/objects_aigc/cone/cone.xml",
@@ -239,7 +239,7 @@
239239
"prim_path": "/World/cone_3",
240240
"type": "mesh",
241241
"name": "cone_3",
242-
"uuid": "e439652f_0622_48b8_91f1_449dbe4c9f69",
242+
"uuid": "dc2714af_568b_40da_86ab_564362188165",
243243
"usd_path": null,
244244
"obj_path": null,
245245
"mjcf_path": "synthnova_assets/objects_aigc/cone/cone.xml",
@@ -272,7 +272,7 @@
272272
"prim_path": "/World/bucket_1",
273273
"type": "mesh",
274274
"name": "bucket_1",
275-
"uuid": "89c6b02f_5471_4397_9dfc_8affbe3c0574",
275+
"uuid": "6785312f_ce0f_491d_8071_db9976277f3a",
276276
"usd_path": null,
277277
"obj_path": null,
278278
"mjcf_path": "synthnova_assets/objects_aigc/bucket/bucket.xml",
@@ -300,6 +300,196 @@
300300
"semantic_type": "class",
301301
"attributes": null,
302302
"collision_type": "convex_decomposition"
303+
},
304+
{
305+
"prim_path": "/World/Wall_Left",
306+
"type": "cuboid",
307+
"name": "wall_left",
308+
"uuid": "bbcab49e_2575_4c28_a1cf_f06155b4a072",
309+
"usd_path": null,
310+
"obj_path": null,
311+
"mjcf_path": null,
312+
"urdf_path": null,
313+
"position": [
314+
-5.0,
315+
-2.5,
316+
1.0
317+
],
318+
"orientation": [
319+
0.0,
320+
0.0,
321+
0.0,
322+
1.0
323+
],
324+
"translation": null,
325+
"rotation": null,
326+
"scale": [
327+
0.1,
328+
5.0,
329+
2.0
330+
],
331+
"interaction_type": "static",
332+
"semantic_label": null,
333+
"semantic_type": "class",
334+
"attributes": null,
335+
"size": 1.0,
336+
"color": [
337+
1.0,
338+
1.0,
339+
1.0
340+
]
341+
},
342+
{
343+
"prim_path": "/World/Wall_Right",
344+
"type": "cuboid",
345+
"name": "wall_right",
346+
"uuid": "d1f99031_cce3_4b20_bca4_4d6880eebfdd",
347+
"usd_path": null,
348+
"obj_path": null,
349+
"mjcf_path": null,
350+
"urdf_path": null,
351+
"position": [
352+
0.0,
353+
-2.5,
354+
1.0
355+
],
356+
"orientation": [
357+
0.0,
358+
0.0,
359+
0.0,
360+
1.0
361+
],
362+
"translation": null,
363+
"rotation": null,
364+
"scale": [
365+
0.1,
366+
5.0,
367+
2.0
368+
],
369+
"interaction_type": "static",
370+
"semantic_label": null,
371+
"semantic_type": "class",
372+
"attributes": null,
373+
"size": 1.0,
374+
"color": [
375+
1.0,
376+
1.0,
377+
1.0
378+
]
379+
},
380+
{
381+
"prim_path": "/World/Wall_Bottom",
382+
"type": "cuboid",
383+
"name": "wall_bottom",
384+
"uuid": "3953c811_4a8e_47bf_aa8a_064840767394",
385+
"usd_path": null,
386+
"obj_path": null,
387+
"mjcf_path": null,
388+
"urdf_path": null,
389+
"position": [
390+
-2.5,
391+
-5.0,
392+
1.0
393+
],
394+
"orientation": [
395+
0.0,
396+
0.0,
397+
0.0,
398+
1.0
399+
],
400+
"translation": null,
401+
"rotation": null,
402+
"scale": [
403+
5.0,
404+
0.1,
405+
2.0
406+
],
407+
"interaction_type": "static",
408+
"semantic_label": null,
409+
"semantic_type": "class",
410+
"attributes": null,
411+
"size": 1.0,
412+
"color": [
413+
1.0,
414+
1.0,
415+
1.0
416+
]
417+
},
418+
{
419+
"prim_path": "/World/Wall_Top",
420+
"type": "cuboid",
421+
"name": "wall_top",
422+
"uuid": "e0af895e_09a1_42f4_9ae1_cec6e498889a",
423+
"usd_path": null,
424+
"obj_path": null,
425+
"mjcf_path": null,
426+
"urdf_path": null,
427+
"position": [
428+
-2.5,
429+
0.0,
430+
1.0
431+
],
432+
"orientation": [
433+
0.0,
434+
0.0,
435+
0.0,
436+
1.0
437+
],
438+
"translation": null,
439+
"rotation": null,
440+
"scale": [
441+
5.0,
442+
0.1,
443+
2.0
444+
],
445+
"interaction_type": "static",
446+
"semantic_label": null,
447+
"semantic_type": "class",
448+
"attributes": null,
449+
"size": 1.0,
450+
"color": [
451+
1.0,
452+
1.0,
453+
1.0
454+
]
455+
},
456+
{
457+
"prim_path": "/World/Floor",
458+
"type": "cuboid",
459+
"name": "floor",
460+
"uuid": "427d4068_b456_415b_9b1c_ba908179451c",
461+
"usd_path": null,
462+
"obj_path": null,
463+
"mjcf_path": null,
464+
"urdf_path": null,
465+
"position": [
466+
-2.5,
467+
-2.5,
468+
-0.001
469+
],
470+
"orientation": [
471+
0.0,
472+
0.0,
473+
0.0,
474+
1.0
475+
],
476+
"translation": null,
477+
"rotation": null,
478+
"scale": [
479+
5.0,
480+
5.0,
481+
0.002
482+
],
483+
"interaction_type": "static",
484+
"semantic_label": null,
485+
"semantic_type": "class",
486+
"attributes": null,
487+
"size": 1.0,
488+
"color": [
489+
1.0,
490+
1.0,
491+
1.0
492+
]
303493
}
304494
],
305495
"sensors": [],

tests/export_ioai_test_scenario.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,66 @@ def main():
185185
)
186186
bucket_1_path = synthnova_physics_simulator.add_object(bucket_1_config)
187187

188+
# Add left wall (x=-5)
189+
wall_left_config = CuboidConfig(
190+
name="wall_left",
191+
prim_path="/World/Wall_Left",
192+
position=[-5, -2.5, 1],
193+
orientation=[0, 0, 0, 1],
194+
scale=[0.1, 5, 2],
195+
color=[1.0, 1.0, 1.0],
196+
interaction_type="static",
197+
)
198+
synthnova_physics_simulator.add_object(wall_left_config)
199+
200+
# Add right wall (x=0)
201+
wall_right_config = CuboidConfig(
202+
name="wall_right",
203+
prim_path="/World/Wall_Right",
204+
position=[0, -2.5, 1],
205+
orientation=[0, 0, 0, 1],
206+
scale=[0.1, 5, 2],
207+
color=[1.0, 1.0, 1.0],
208+
interaction_type="static",
209+
)
210+
synthnova_physics_simulator.add_object(wall_right_config)
211+
212+
# Add bottom wall (y=-5)
213+
wall_bottom_config = CuboidConfig(
214+
name="wall_bottom",
215+
prim_path="/World/Wall_Bottom",
216+
position=[-2.5, -5, 1],
217+
orientation=[0, 0, 0, 1],
218+
scale=[5, 0.1, 2],
219+
color=[1.0, 1.0, 1.0],
220+
interaction_type="static",
221+
)
222+
synthnova_physics_simulator.add_object(wall_bottom_config)
223+
224+
# Add top wall (y=0)
225+
wall_top_config = CuboidConfig(
226+
name="wall_top",
227+
prim_path="/World/Wall_Top",
228+
position=[-2.5, 0, 1],
229+
orientation=[0, 0, 0, 1],
230+
scale=[5, 0.1, 2],
231+
color=[1.0, 1.0, 1.0],
232+
interaction_type="static",
233+
)
234+
synthnova_physics_simulator.add_object(wall_top_config)
235+
236+
# Add floot
237+
floor_config = CuboidConfig(
238+
name="floor",
239+
prim_path="/World/Floor",
240+
position=[-2.5, -2.5, -0.001],
241+
orientation=[0, 0, 0, 1],
242+
scale=[5, 5, 0.002],
243+
color=[1.0, 1.0, 1.0],
244+
interaction_type="static",
245+
)
246+
synthnova_physics_simulator.add_object(floor_config)
247+
188248
# Initialize the simulator
189249
synthnova_physics_simulator.initialize()
190250

0 commit comments

Comments
 (0)