Skip to content

Commit

Permalink
add termination only for chase task
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio-Caggiano authored Oct 5, 2023
1 parent c3f12cb commit 37e6f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myosuite/envs/myo/myochallenge/chasetag_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def _win_condition(self):

def _lose_condition(self):
# falling on knees is always termination
if self._get_fallen_condition():
if self._get_fallen_condition() and self.current_task == 'chase':
return 1
if self.current_task == 'chase':
return self._chase_lose_condition()
Expand Down

0 comments on commit 37e6f8e

Please sign in to comment.