Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
reginald-mclean committed Jan 13, 2024
2 parents 979a23a + e9da213 commit a8144aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metaworld/envs/mujoco/sawyer_xyz/sawyer_xyz_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def step(self, action):
raise ValueError("You must reset the env manually once truncate==True")
self.do_simulation([action[-1], -action[-1]], n_frames=self.frame_skip)
self.curr_path_length += 1

# Running the simulator can sometimes mess up site positions, so
# re-position them here to make sure they're accurate
for site in self._target_site_config:
Expand All @@ -488,9 +488,7 @@ def step(self, action):
"unscaled_reward": 0.0,
},
)

mujoco.mj_forward(self.model, self.data)

self._last_stable_obs = self._get_obs()

self._last_stable_obs = np.clip(
Expand Down

0 comments on commit a8144aa

Please sign in to comment.