mujoco_mpc icon indicating copy to clipboard operation
mujoco_mpc copied to clipboard

How to integrate Unitree H1_2 robot into MuJoCo MPC?

Open albertoguglielmo opened this issue 4 months ago • 5 comments

Hi, I’m trying to integrate the Unitree H1_2 robot with MuJoCo MPC to adapt the control for this robot. Has anyone done this before? What are the main steps or guidelines to add a new robot/task to MuJoCo MPC? Thanks in advance!

albertoguglielmo avatar Sep 14 '25 14:09 albertoguglielmo

Hi Alberto, I have been working on this exact task recently. I ported the work from this open PR for integrating HumanoidBench for the H1 (https://github.com/google-deepmind/mujoco_mpc/pull/339) onto my fork here: https://github.com/badinkajink/mujoco_mpc/tree/humanoidbench, on the humanoidbench branch. I've tested the walking and box pushing task. I did not port all the changes from the initial PR, which are described here: https://arxiv.org/abs/2408.00342, and probably as a result the walking policy is quite poor.

Currently the H1_2 xml needs some adjusting, the hand offsets are too large.

Should build fine on 22.04 + Clang 13. Feel free to reach out to my email; the H1-2 community is quite small and I am happy to discuss problems.

badinkajink avatar Sep 25 '25 20:09 badinkajink

Thank you very much for your reply and for sharing your work , it will definitely be very useful for me. At the moment my main goal is to improve the robustness of H1’s walking and to enable it to overcome obstacles using MPC.

If I obtain interesting results, I will be more than happy to share them with the community.

albertoguglielmo avatar Oct 01 '25 08:10 albertoguglielmo

Hi, I'm working on the H1-2 robot. I have a doubt regarding the networking interface—could you please confirm once? I'm logging in only through PC4 at IP address 192.168.123.164. But everywhere I see references to 192.168.123.162, which I haven't seen or used. Also, the IPs for the robot's hands and LiDAR have changed in my setup. So could you please check once, especially if you're also using H1-2? There hasn't been much update from Unitree either—I met them last time. Thanks! @albertoguglielmo @badinkajink

Raviteja-T avatar Oct 13 '25 15:10 Raviteja-T

Yes, we use 192.168.123.164. We believe the references are just out-of-date/wrong.

badinkajink avatar Oct 13 '25 17:10 badinkajink

Yes, we use 192.168.123.164. We believe the references are just out-of-date/wrong.

Thanks for your quick reply. What about lidar and hands IP and Subnet?

Raviteja-T avatar Oct 14 '25 04:10 Raviteja-T