Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MujocoEnv reset_mujoco doesn't work #6

Open
henry-zhang-bohan opened this issue Dec 22, 2018 · 0 comments
Open

MujocoEnv reset_mujoco doesn't work #6

henry-zhang-bohan opened this issue Dec 22, 2018 · 0 comments

Comments

@henry-zhang-bohan
Copy link

When calling reset() on MujocoEnv, it gives the following error:

Traceback (most recent call last):
  File "garage/scripts/run_experiment.py", line 242, in <module>
    run_experiment(sys.argv)
  File "garage/scripts/run_experiment.py", line 185, in run_experiment
    method_call(variant_data)
  File "./examples/pusher_pretrain.py", line 81, in run_experiment
    env = normalize(PusherEnv(goal=variant.get('goal')))
  File "softqlearning/softqlearning/environments/pusher.py", line 37, in __init__
    super(PusherEnv, self).__init__(file_path=self.FILE_PATH)
  File "garage/garage/envs/mujoco/mujoco_env.py", line 85, in __init__
    self.reset()
  File "softqlearning/softqlearning/environments/pusher.py", line 130, in reset
    super(PusherEnv, self).reset(full_state)
  File "garage/garage/envs/mujoco/mujoco_env.py", line 134, in reset
    self.reset_mujoco(init_state)
  File "garage/garage/envs/mujoco/mujoco_env.py", line 122, in reset_mujoco
    self.sim.data.qpos = datum
AttributeError: attribute 'qpos' of 'mujoco_py.cymj.PyMjData' objects is not writable

It seems like a mujoco-py=1.50 issue: openai/mujoco-py#266

henry-zhang-bohan referenced this issue in henry-zhang-bohan/garage Dec 22, 2018
Fix error: `AttributeError: attribute 'qpos' of 'mujoco_py.cymj.PyMjData' objects is not writable` when running `reset_mujoco()` on `MujocoEnv`. See https://github.com/rlworkgroup/garage/issues/452
henry-zhang-bohan referenced this issue in henry-zhang-bohan/garage Jan 4, 2019
Fix error: `AttributeError: attribute 'qpos' of 'mujoco_py.cymj.PyMjData' objects is not writable` when running `reset_mujoco()` on `MujocoEnv`. See https://github.com/rlworkgroup/garage/issues/452
@ryanjulian ryanjulian transferred this issue from rlworkgroup/garage Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant