Skip to content

Commit

Permalink
fix InvertedPendulum
Browse files Browse the repository at this point in the history
  • Loading branch information
joschu committed May 1, 2016
1 parent 795640d commit 7b91967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym/envs/mujoco/inverted_pendulum.py
Expand Up @@ -16,8 +16,8 @@ def _step(self, a):
return ob, reward, done, {}

def reset_model(self):
qpos = self.init_qpos + np.random.uniform(size=(self.model.nq,1), low=-0.01, high=0.01)
qvel = self.init_qvel + np.random.uniform(size=(self.model.nv,1), low=-0.01, high=0.01)
qpos = self.init_qpos + np.random.uniform(size=self.model.nq, low=-0.01, high=0.01)
qvel = self.init_qvel + np.random.uniform(size=self.model.nv, low=-0.01, high=0.01)
self.set_state(qpos, qvel)
return self._get_obs()

Expand Down

0 comments on commit 7b91967

Please sign in to comment.