Skip to content

Commit fc894b1

Browse files
authored
Merge pull request #1167 from StanfordVL/feat/gello-optimization
GELLO task execution optimization
2 parents b66a042 + 48fb2e7 commit fc894b1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

omnigibson/simulator.py

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def _launch_app():
213213
"Flow",
214214
"Semantics Schema Editor",
215215
"VR",
216+
"Isaac Sim Assets [Beta]",
216217
]
217218
)
218219

omnigibson/tasks/behavior_task.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,14 @@ def assign_object_scope_with_cache(self, env):
383383
)
384384
name = inst_to_name[obj_inst]
385385
is_system = name in env.scene.available_systems.keys()
386-
entity = env.scene.get_system(name) if is_system else env.scene.object_registry("name", name)
386+
# TODO: If we load a robot with a different set of configs, we will not be able to match with the
387+
# original object_scope. This is a temporary fix to handle this case. A proper fix involves
388+
# storing the robot (potentially only base pose) in the task metadata instead of as a regular object
389+
if "agent.n." in obj_inst:
390+
idx = int(obj_inst.split("_")[-1].lstrip("0")) - 1
391+
entity = env.robots[idx]
392+
else:
393+
entity = env.scene.get_system(name) if is_system else env.scene.object_registry("name", name)
387394
self.object_scope[obj_inst] = BDDLEntity(
388395
bddl_inst=obj_inst,
389396
entity=entity,

0 commit comments

Comments
 (0)