Skip to content

Commit

Permalink
Fix maximum episode length
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmanso committed Nov 28, 2024
1 parent 99f1ff1 commit a84125c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socnavgym/envs/socnavenv_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2596,7 +2596,7 @@ def compute_reward_and_ticks(self, action):
if collision_object:
info["COLLISION_OBJECT"] = True

if self.ticks > self.EPISODE_LENGTH:
if self.ticks >= self.EPISODE_LENGTH:
self._is_truncated = True
info["TIMEOUT"] = True

Expand Down

0 comments on commit a84125c

Please sign in to comment.