Unitree Go2 walking demo using MuJoCo and the Walk-These-Ways pretrained policy. The demo runs on ubuntu, but also MacOS natively without vms or containerization.
A flat scene is added to the unitree_mujoco package (see copy stage) to provide a simple demo for the Go2 to move.
With thanks to Teddy Liao for the pretrained policy in the walk-these-ways-go2 repository.
You will need cyclonedds installed if you do not have it already. We suggest to install outside of this project.
cd ~
git clone https://github.com/eclipse-cyclonedds/cyclonedds -b releases/0.10.x
cd cyclonedds && mkdir build install && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
cmake --build . --target installcd ~/go2-mujoco-artefacts
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Clone required repos
mkdir -p src
git clone --depth=1 -b high-level-direct https://github.com/art-e-fact/unitree_mujoco.git src/unitree_mujoco
git clone --depth=1 https://github.com/unitreerobotics/unitree_sdk2_python.git src/unitree_sdk2_python
# Install the sdk
cd src/unitree_sdk2_python
export CYCLONEDDS_HOME=~/cyclonedds/install
pip install -e .
# Back to root of repository
cd ../..
# Download WTW policy checkpoints (3 files only, no full repo clone)
bash scripts/fetch_wtw_checkpoints.sh
# Install dependencies
pip install -r requirements.txtsource venv/bin/activate # if not already
python go2_wtw_demo.pysource venv/bin/activate # if not already
mjpython go2_wtw_demo.pyThe robot will walk forward and turn left in a loop.
- Create a project at app.artefacts.com
- Rename
project:in theartefacts.yamlfile to your `<org_name>/<project_name> - Run
artefacts config add <org_name>/<project_name>, create the ApiKey, and paste into the terminal - Select
Nwhen you are prompted to whether you would like a newartefacts.yamlfile
You will be able to run the test with the following command
artefacts run basic_test
Once the test has finished, test result (and a video) will be uploaded to your project page on the artefacts dashboard
Rail scene based on work from sBjamms https://sketchfab.com/3d-models/train-track-dff84793ce2f4d7ca19e67b5194eeca2