Skip to content

Commit

Permalink
use forward call from parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio-Caggiano authored and vikashplus committed Dec 3, 2023
1 parent 7c283f7 commit 15bda40
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions robohive/envs/myo/base_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,4 @@ def step(self, a, **kwargs):
realTimeSim=self.mujoco_render_frames,
render_cbk=self.mj_render if self.mujoco_render_frames else None)

# observation
obs = self.get_obs(**kwargs)

# rewards
self.expand_dims(self.obs_dict) # required for vectorized rewards calculations
self.rwd_dict = self.get_reward_dict(self.obs_dict)
self.squeeze_dims(self.rwd_dict)
self.squeeze_dims(self.obs_dict)

# finalize step
env_info = self.get_env_infos()

# returns obs(t+1), rwd(t+1), done(t+1), info(t+1)
return obs, env_info['rwd_'+self.rwd_mode], bool(env_info['done']), env_info
return self.forward(**kwargs)

0 comments on commit 15bda40

Please sign in to comment.