MuJoCo simulation for the H1 robot
-
Install Python dependencies from environment.yml:
conda env create -f environment.yml # mamba env create -f environment.yml -
Install the Unitree Python SDK from here.
archive/contains old implementations not in use.unitree_robots/contains the robot description files.utility/contains useful scripts.h12_mujoco.pyis the main simulation program of h12 robot.mujoco_env.pyprovides utilities for MuJoCo simulation.pv_interface.pyprovides visualization in pyvista is needed.unitree_interface.pycontains wrappers for the Unitree SDK.
- Run
python h12_mujoco.pyto simulate the robot in Mujoco, subscribe tort/lowcmdand publish tort/lowstate. - The simulation is a good test before deploying controllers on the real robot in debug mode.