From 62188b5867fae160e3c4efdf35b86b71900b6974 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Mon, 19 Apr 2021 18:42:06 +0900 Subject: [PATCH] Fix reacher link --- mujoco_maze/reacher.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mujoco_maze/reacher.py b/mujoco_maze/reacher.py index 7a97118..d94cb4a 100644 --- a/mujoco_maze/reacher.py +++ b/mujoco_maze/reacher.py @@ -1,7 +1,7 @@ """ Based on the reacher in `dm_control`_. -.. _gym: https://github.com/openai/gym +.. _dm_control: https://github.com/deepmind/dm_control """ from typing import Tuple @@ -54,10 +54,14 @@ class ReacherEnv(AgentModel): def reset_model(self) -> np.ndarray: qpos = self.init_qpos + self.np_random.uniform( - low=-0.1, high=0.1, size=self.model.nq, + low=-0.1, + high=0.1, + size=self.model.nq, ) qvel = self.init_qvel + self.np_random.uniform( - low=-0.1, high=0.1, size=self.model.nv, + low=-0.1, + high=0.1, + size=self.model.nv, ) self.set_state(qpos, qvel)