Use Your Own Humanoid!
June 11, 2025 ยท View on GitHub
We support multiple humanoid robots (H1, G1, H1-2) for our benchmark. And it's easy to add your own humanoid, by following the steps below:
-
Add your humanoid assets to
resources/robots. -
In
legged_gym/legged_gym/envs, create a new folder for your humanoid. In this folder, create a subfolder for a specific skill or task, e.g.legged_gym/legged_gym/envs/yourRobot/yourRobot_something. -
In this task folder, create 2 new files: config file and environment file, e.g.
yourRobot_something_config.pyandyourRobot_something.py. You can copy-paste from existing humanoid files. -
If the 2 files are copy-pasted, you need to modify them.
- Change all the names of both files to your humanoid name, e.g.
g1 -> yourRobot. This includes class names and the default experiment name. - Search for the original humanoid name and resolve all the import errors based on the changed names.
- For config file, search for the 9
NOTEs ing1_stepping_config.pyto see what you need to modify. - For environment file, typically you only need to modify the joint indices of reward functions (e.g.
_reward_upper_body_pos, _reward_default_joint_pos, _reward_right_arm_default).
- Change all the names of both files to your humanoid name, e.g.
-
Register your environment in
legged_gym/legged_gym/envs/__init__.py.