Skip to content

Commit

Permalink
adding tworr with PID and SAC environment, dev, openai#1
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdinobar committed Mar 22, 2024
1 parent daa3244 commit 46fe545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinup/backup_gym/gym/envs/classic_control/tworr.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def __init__(self):
self.yd = np.linspace(self.yd_init, self.yd_init + deltay, MAX_TIMESTEPS + 1, endpoint=True)

# TODO CHECK
high_s = np.array([self.xd_init+1, self.yd_init+1, 1.4, 1.4, 0.2, 0.2, 1.4, 1.4, 0.2, 0.2, 1, 1])
low_s = np.array([self.xd_init-1, self.yd_init-1, -1.4, -1.4, -0.2, -0.2, -1.4, -1.4, -0.2, -0.2, -1, -1])
high_s = np.array([0.2, 0.2, 1.5, 1.5, 0.5, 0.5, 1, 1])
low_s = np.array([-0.2, -0.2, -1.5, -1.5, -0.5, -0.5, -1, -1])
self.observation_space = spaces.Box(low=low_s, high=high_s, dtype=np.float32)
high_a = np.array([0.1, 0.1])
low_a = np.array([-0.1, -0.1])
Expand Down

0 comments on commit 46fe545

Please sign in to comment.