openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.87k stars 813 forks source link

Can we use MjModel and MjSim of version 1.5, but use MjViewer of version 0.5? #199

Open llan-ml opened 6 years ago

llan-ml commented 6 years ago

To some extent, the design of MjSim and MjViewer should be separate. So far, we cannot render the simulation normally, and thus is there any way or workaround to use the viewer apis of version 0.5.7 to render MjSim?

tegg89 commented 6 years ago

Same issue too here. Because of the viewer methods from the version 0.5 and version 1.5 are different, I get struggled at rendering simulation. I have tested with InvertedPendulum-v2, but the mismatching attributes have occurred. Model from previous version and sim from the latest version are not matched. In the inverted_pendulum.py from the gym/envs/mujoco, the last line is still with the model attribute which is that MjViewer does not have.