From 5d4fc4d52f6f8d3e22fcba4b94601ec5a4527f63 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 12 Jul 2022 14:16:20 +0200 Subject: [PATCH] ant jump seeding fix --- alr_envs/alr/mujoco/ant_jump/ant_jump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alr_envs/alr/mujoco/ant_jump/ant_jump.py b/alr_envs/alr/mujoco/ant_jump/ant_jump.py index deffcfa..eddfbe0 100644 --- a/alr_envs/alr/mujoco/ant_jump/ant_jump.py +++ b/alr_envs/alr/mujoco/ant_jump/ant_jump.py @@ -84,7 +84,7 @@ class AntJumpEnv(AntEnv): options: Optional[dict] = None, ) -> Union[ObsType, Tuple[ObsType, dict]]: self.current_step = 0 self.max_height = 0 - self.goal = np.random.uniform(1.0, 2.5, + self.goal = self.np_random.uniform(1.0, 2.5, 1) # goal heights from 1.0 to 2.5; can be increased, but didnt work well with CMORE return super().reset()