From 832102da5908a5e48ca75f8897300d7e711058af Mon Sep 17 00:00:00 2001 From: "hongyi.zhou" Date: Wed, 6 Sep 2023 12:56:43 +0200 Subject: [PATCH] use self.np_random for all the Quadrant --- fancy_gym/envs/mujoco/reacher/reacher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fancy_gym/envs/mujoco/reacher/reacher.py b/fancy_gym/envs/mujoco/reacher/reacher.py index ccd0073..e55f13a 100644 --- a/fancy_gym/envs/mujoco/reacher/reacher.py +++ b/fancy_gym/envs/mujoco/reacher/reacher.py @@ -79,11 +79,11 @@ class ReacherEnv(MujocoEnv, utils.EzPickle): # I Quadrant # self.goal = self.np_random.uniform(low=0, high=self.n_links / 10, size=2) # II Quadrant - # self.goal = np.random.uniform(low=[-self.n_links / 10, 0], high=[0, self.n_links / 10], size=2) + # self.goal = self.np_random.uniform(low=[-self.n_links / 10, 0], high=[0, self.n_links / 10], size=2) # II + III Quadrant - # self.goal = np.random.uniform(low=-self.n_links / 10, high=[0, self.n_links / 10], size=2) + # self.goal = self.np_random.uniform(low=-self.n_links / 10, high=[0, self.n_links / 10], size=2) # I + II Quadrant - # self.goal = np.random.uniform(low=[-self.n_links / 10, 0], high=self.n_links, size=2) + # self.goal = self.np_random.uniform(low=[-self.n_links / 10, 0], high=self.n_links, size=2) if np.linalg.norm(self.goal) < self.n_links / 10: break