Skip to content

Commit

Permalink
Update pusher_v5.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas authored Dec 9, 2023
1 parent b1f7fb4 commit 5ac1bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gymnasium/envs/mujoco/pusher_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,14 @@ def __init__(
}

def step(self, action):
reward, reward_info = self._get_rew(action)
self.do_simulation(action, self.frame_skip)

observation = self._get_obs()
reward, reward_info = self._get_rew(action)
info = reward_info
if self.render_mode == "human":
self.render()

return observation, reward, False, False, info

def _get_rew(self, action):
Expand Down

0 comments on commit 5ac1bb2

Please sign in to comment.