https://mujoco.org/download/mujoco210-linux-x86_64.tar.gz
scp C:\Users\Owner\Downloads\mujoco210-linux-x86_64.tar.gz g7:/home/chenwenze19
mkdir ~/.mujoco
tar -zxvf mujoco210-linux-x86_64.tar.gz -C ~/.mujoco
vim ~/.zshrc
export LD_LIBRARY_PATH=~/.mujoco/mujoco210/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia
source ~/.zshrc
git clone git@github.com:openai/mujoco-py.git
cd ~/mujoco-py
pip install stable_baselines3
pip3 install -U 'mujoco-py<2.2,>=2.1'
pip3 install -r requirements.txt
pip3 install -r requirements.dev.txt
python3 setup.py install
python3
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)
sim.step()
print(sim.data.qpos)
- 参考网站:
- https://github.com/openai/mujoco-py#install-mujoco
- https://zhuanlan.zhihu.com/p/486957504
|