Humanoid Goalkeeper

October 22, 2025 ยท View on GitHub

arXiv Website ๐Ÿš€ License: CC BY-NC-SA 4.0 YouTube ๐ŸŽฌ

Official implementation of the paper Humanoid Goalkeeper: Learning from Position Conditioned Task-Motion Constraints by

Junli Ren*, Junfeng Long*, Tao Huang, Huayi Wang, Zirui Wang, Feiyu Jia, Wentao Zhang, Jingbo Wangโ€ , Ping Luoโ€ , Jiangmiao Pangโ€ 

Teaser image


๐Ÿ› ๏ธ Installation Instructions

Clone this repository

git clone https://github.com/InternRobotics/Goalkeeper.git
cd Goalkeeper

Create a conda environment:

conda create -n gk python=3.8
conda activate gk

Download and install Isaac Gym:

cd isaacgym/python && pip install -e .

Install rsl_rl (PPO implementation) and legged gym and other requirements:

cd rsl_rl && pip install -e . && cd .. 
cd legged_gym &&  pip install -e . && cd .. 
pip install -r requirements.txt

โ–ถ๏ธ Usage

Training:

cd legged_gym/legged_gym/scripts/
python train.py --exptid=xxx

Evaluation:

cd legged_gym/legged_gym/scripts/
python play.py --exptid=xxx

Note: Switch to the escape branch to train and evaluate the escape task.

Note: For a quick try, two reference checkpoints are available in legged_gym/resources/weight/. Copy one to your experiment log directory (e.g., logs/<EXPT_ID>/) to directly evaluate the policy.

๐Ÿงฐ Troubleshooting

ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

# Replace /path_to_conda_env_gk with your actual conda env path
sudo cp /path_to_conda_env_gk/lib/libpython3.8.so.1.0 /usr/lib/

CUDA out of memory

GPU limitation, try less environments.

๐Ÿ“ˆ Training Cost (for reference)

  • GPU: on RTX 4090 (24G)
  • Goalkeeper task: typically ~ 20k episodes to converge
  • Escape task: ~ 40k episodes for stable jump-escape motion

โœ‰๏ธ Contact

For any questions, please email junlir@connect.hku.hk. We will respond as soon as possible.

๐Ÿ“ Citation

If you find our work useful, please consider citing:

@article{ren2025humanoidgoalkeeper,
  title={Humanoid Goalkeeper: Learning from Position Conditioned Task-Motion Constraints},
  author={Ren, Junli, Long, Jungfeng, Huang, Tao and Wang, Huayi, Wang, Zirui and Jia, Feiyu, Zhang, Wentao and Wang, Jingbo, Ping Luo and Pang, Jiangmiao},
  year={2025}
}

๐Ÿ“„ License

The code is licensed under the CC BY-NC-SA 4.0 International License Creative Commons License. Commercial use is not allowed without explicit authorization.