Skip to content

Commit

Permalink
Use self.speed to compute rewards fixes duckietown#237
Browse files Browse the repository at this point in the history
  • Loading branch information
MasWag committed Aug 15, 2024
1 parent 72d4738 commit 12361eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gym_duckietown/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ def _compute_done_reward(self) -> DoneRewardInfo:
done_code = "max-steps-reached"
else:
done = False
reward = self.compute_reward(self.cur_pos, self.cur_angle, self.robot_speed)
reward = self.compute_reward(self.cur_pos, self.cur_angle, self.speed)
msg = ""
done_code = "in-progress"
return DoneRewardInfo(done=done, done_why=msg, reward=reward, done_code=done_code)
Expand Down

0 comments on commit 12361eb

Please sign in to comment.