You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
I use mujoco-py==2.0.2.0 and af8417bfc82a3e249b4b02156518d775f29eb289 commit for the MetaWorld environments, and I have also run through following two test codes to ensure my mujoco-py and metaworld was installed successfully. mujoco-py test:
import mujoco_py
import os
mj_path, _ = mujoco_py.utils.discover_mujoco()
xml_path = os.path.join(mj_path, 'model', 'humanoid.xml')
model = mujoco_py.load_model_from_path(xml_path)
sim = mujoco_py.MjSim(model)
print(sim.data.qpos)
metaworld test:
import metaworld
import random
mt10 = metaworld.MT10() # Construct the benchmark, sampling tasks
training_envs = []
for name, env_cls in mt10.train_classes.items():
env = env_cls()
task = random.choice([task for task in mt10.train_tasks
if task.env_name == name])
env.set_task(task)
training_envs.append(env)
for env in training_envs:
obs = env.reset() # Reset environment
a = env.action_space.sample() # Sample an action
obs, reward, done, info = env.step(a) # Step the environoment with the sampled random action
Also, the full step I create my environment is here
The text was updated successfully, but these errors were encountered:
Description
I was following docs, and when I tried to use command
I kept getting
AttributeError: can't set attribute
error.How to reproduce
and the full error message is here
System information
Any other information
I use mujoco-py==2.0.2.0 and
af8417bfc82a3e249b4b02156518d775f29eb289
commit for the MetaWorld environments, and I have also run through following two test codes to ensure my mujoco-py and metaworld was installed successfully.mujoco-py test:
metaworld test:
Also, the full step I create my environment is here
The text was updated successfully, but these errors were encountered: