Skip to content

Commit 48fb2e7

Browse files
committed
Update comment to include future todo
1 parent b6e1e23 commit 48fb2e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

omnigibson/tasks/behavior_task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ 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+
# 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
386389
if "agent.n." in obj_inst:
387390
idx = int(obj_inst.split("_")[-1].lstrip("0")) - 1
388391
entity = env.robots[idx]

0 commit comments

Comments
 (0)