diff --git a/gymnasium_robotics/envs/adroit_hand/adroit_door.py b/gymnasium_robotics/envs/adroit_hand/adroit_door.py index 3ea6b1b6..323222ab 100644 --- a/gymnasium_robotics/envs/adroit_hand/adroit_door.py +++ b/gymnasium_robotics/envs/adroit_hand/adroit_door.py @@ -282,7 +282,7 @@ def step(self, a): # compute the sparse reward variant first goal_distance = self.data.qpos[self.door_hinge_addrs] - goal_achieved = True if goal_distance >= 1.35 else False + goal_achieved = goal_distance >= 1.35 reward = 10.0 if goal_achieved else -0.1 # override reward if not sparse reward