add scene info & scene config
This commit is contained in:
1
dining_room_scene_info.json
Normal file
1
dining_room_scene_info.json
Normal file
File diff suppressed because one or more lines are too long
1
living_room_scene_info.json
Normal file
1
living_room_scene_info.json
Normal file
File diff suppressed because one or more lines are too long
1
study_room_scene_info.json
Normal file
1
study_room_scene_info.json
Normal file
File diff suppressed because one or more lines are too long
22
workflows/simbox/core/configs/arenas/living_room_arena.yaml
Normal file
22
workflows/simbox/core/configs/arenas/living_room_arena.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: scene_arena
|
||||||
|
involved_scenes: living_room_scene_info
|
||||||
|
update_freq: 5000
|
||||||
|
fixtures:
|
||||||
|
# 001
|
||||||
|
-
|
||||||
|
name: table
|
||||||
|
path: home_scenes/tables/living_room/model_fd09d648b984fab892c78c317bf0934c_0.usd
|
||||||
|
target_class: GeometryObject
|
||||||
|
translation: [0, 0, 0.22]
|
||||||
|
scale: [0.01, 0.01, 0.01]
|
||||||
|
euler: [0.0, 0.0, 0.0]
|
||||||
|
apply_randomization: True
|
||||||
|
-
|
||||||
|
name: scene
|
||||||
|
path: home_scenes/rooms/living_room/MV7J6NIKTKJZ2AABAAAAADA8_usd_living_room_0.usd
|
||||||
|
target_class: GeometryObject
|
||||||
|
scale: [0.01, 0.01, 0.01]
|
||||||
|
translation: [2.79, -7.34, 0.0]
|
||||||
|
euler: [0.0, 0.0, 0.0]
|
||||||
|
apply_randomization: True
|
||||||
|
|
||||||
22
workflows/simbox/core/configs/arenas/study_room_arena.yaml
Normal file
22
workflows/simbox/core/configs/arenas/study_room_arena.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: scene_arena
|
||||||
|
involved_scenes: study_room_scene_info
|
||||||
|
update_freq: 5000
|
||||||
|
fixtures:
|
||||||
|
# 001
|
||||||
|
-
|
||||||
|
name: table
|
||||||
|
path: home_scenes/tables/study_room/model_d3745f1d28f11c7019c1b6b92a7a5b92_0.usd
|
||||||
|
target_class: GeometryObject
|
||||||
|
translation: [0, 0, 0.31]
|
||||||
|
scale: [0.01, 0.01, 0.01]
|
||||||
|
euler: [0.0, 0.0, 0.0]
|
||||||
|
apply_randomization: True
|
||||||
|
-
|
||||||
|
name: scene
|
||||||
|
path: home_scenes/rooms/study_room/MV7J6NIKTKJZ2AABAAAAADI8_usd_study_room_0.usd
|
||||||
|
target_class: GeometryObject
|
||||||
|
scale: [0.01, 0.01, 0.01]
|
||||||
|
translation: [0.37, -8.66, 0.0]
|
||||||
|
euler: [0.0, 0.0, 0.0]
|
||||||
|
apply_randomization: True
|
||||||
|
|
||||||
@@ -80,8 +80,8 @@ class SimBoxDualWorkFlow(NimbusWorkFlow):
|
|||||||
with open(arena_file_path, "r", encoding="utf-8") as arena_file:
|
with open(arena_file_path, "r", encoding="utf-8") as arena_file:
|
||||||
arena = yaml.load(arena_file, Loader=Loader)
|
arena = yaml.load(arena_file, Loader=Loader)
|
||||||
|
|
||||||
if "involved_scenes" in arena:
|
# if "involved_scenes" in arena:
|
||||||
arena["involved_scenes"] = self.scene_info
|
# arena["involved_scenes"] = self.scene_info
|
||||||
|
|
||||||
self.task_cfg["arena"] = arena
|
self.task_cfg["arena"] = arena
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user