Skip to content

Commit

Permalink
fix bug with wrong object sizes after changing a scene
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashermann committed Aug 29, 2022
1 parent d517115 commit 6e7ceaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calvin_env/envs/play_table_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def get_env(dataset_path, obs_space=None, show_gui=True, **kwargs):
del render_conf.cameras[k]
if "scene" in kwargs:
scene_cfg = OmegaConf.load(Path(calvin_env.__file__).parents[1] / "conf/scene" / f"{kwargs['scene']}.yaml")
OmegaConf.merge(render_conf, scene_cfg)
render_conf.scene = scene_cfg
if not hydra.core.global_hydra.GlobalHydra.instance().is_initialized():
hydra.initialize(".")
env = hydra.utils.instantiate(render_conf.env, show_gui=show_gui, use_vr=False, use_scene_info=True)
Expand All @@ -292,7 +292,7 @@ def run_env(cfg):

env.reset()
while True:
env.step(np.array((0.0, 0, 0, 0, 0, 1)))
env.step(np.array((0.0, 0, 0, 0, 0, 0, 1)))
# env.render()
time.sleep(0.01)

Expand Down

0 comments on commit 6e7ceaa

Please sign in to comment.