MuJoCo simulation for the H1_2 robot.
-
Clone the Unitree Python SDK from this repo.
-
Install python dependencies from
environment.ymlusingconda:conda env create -f environment.yml conda activate sim_env cd PATH_TO_UNITREE_SDK pip install -e .
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.