Skip to content

Commit

Permalink
Merge pull request #101 from elladyr/dev
Browse files Browse the repository at this point in the history
Merge for P2
  • Loading branch information
Vittorio-Caggiano authored Oct 6, 2023
2 parents f389938 + cdcf556 commit 24cd961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion myosuite/envs/myo/myochallenge/chasetag_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def _setup(self,
**kwargs,
):


self._setup_convenience_vars()
# check that this works everywhere and is efficient.
self.heightfield = HeightField(sim=self.sim,
Expand Down Expand Up @@ -459,7 +460,7 @@ def get_reward_dict(self, obs_dict):
score = self._get_score(float(self.obs_dict['time'])) if win_cdt else 0
self.obs_dict['time'] = self.maxTime if lose_cdt else self.obs_dict['time']
elif self.current_task == 'evade':
score = self._get_score(float(self.obs_dict['time']))
score = self._get_score(float(self.obs_dict['time'])) if (win_cdt or lose_cdt) else 0
# ----------------------

# Example reward, you should change this!
Expand Down

0 comments on commit 24cd961

Please sign in to comment.