Unitree G1 BVH 动作回放
使用本教程在真实 Unitree G1 上回放离线 BVH 动作。此路径不使用 Pico 追踪。
BVH file -> retarget -> RL policy -> g1_bridge_sdk -> G1
实时 Pico 控制请使用 Pico Sim2Real。
1. 安装运行时依赖
pip install -e '.[sim2real]'
git submodule update --init --recursive
bash scripts/setup/setup_g1_bridge.sh
2. 选择网络接口
对于 wired PC-to-G1 部署,用网线连接 PC 和机器人,运行 ifconfig,并使用连接到 G1 的接口:
real_robot.network_interface=enp130s0
对于 onboard 部署,通常使用 eth0。
3. 运行 BVH 回放
python scripts/run/run_sim2real.py \
controller.policy_path=track.onnx \
real_robot.network_interface=enp130s0 \
input.bvh_file=data/sample_bvh/aiming1_subject1.bvh
默认 sim2real.yaml 使用 input.provider=bvh 和 playback.pause_on_end=true,
因此动作结束时会保持最后一帧姿态。