sprint
Her-darling 2 weeks ago
parent e8f50eea0f
commit c9f2ff9272

@ -342,9 +342,9 @@ class sprint(gym.Env):
robot_speed = r.loc_torso_velocity[0]
direction_error = abs(self.walk_rel_orientation)
direction_error = min(direction_error, 10)
reward = robot_speed * (1 - direction_error / 10)
reward = robot_speed * (1.5 - direction_error / 10)
if self.walk_distance < 0.5:
reward += 20
reward += 10
self.generate_random_target()
if self.player.behavior.is_ready("Get_Up"):

Loading…
Cancel
Save