Skip to content

Commit

Permalink
robosuite_env: remove extra condition in get_observation
Browse files Browse the repository at this point in the history
  • Loading branch information
snasiriany authored Feb 5, 2022
1 parent c666dc0 commit d203aeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions robomimic/envs/env_robosuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ def get_observation(self, di=None):
# ensures that we don't accidentally add robot wrist images a second time
pf = robot.robot_model.naming_prefix
for k in di:
if k.startswith(pf) and (k not in ret) and \
(not k.endswith("proprio-state")) and (k in ObsUtils.OBS_KEYS_TO_MODALITIES):
if k.startswith(pf) and (k not in ret) and (not k.endswith("proprio-state")):
ret[k] = np.array(di[k])
else:
# minimal proprioception for older versions of robosuite
Expand Down

0 comments on commit d203aeb

Please sign in to comment.