This is the official PyTorch implementation of the paper "Towards Professional Tennis Styles for Humanoid Robots with Adaptive Motion Planning and Tracking" by
Tao Huang, Ruofei Liu, Xuchen Tang, Xinyin Zhang, Junli Ren, Huayi Wang, Feiyu Jia, Yukai Qi, Kangning Yin, Weishuai Zeng, Lipeng Chen, Xi Li, Ting Wu, Kailin Li, Ruoli Dai, Jingbo Wang, Lei Han, Jiangmiao Pang
- 🔥 News
- 🛠️ Installation Instructions
- 🤖 Run AdaPT on Unitree G1
- ✉️ Contact
- 🏷️ License
- 🎉 Acknowledgments
- 📝 Citation
- [2026-08] We release the training code for the first stage of our adaptive serve tracking.
- [2026-08] We release the paper and demos of AdaPT.
Clone this repository:
git clone https://github.com/noitom-robotics/AdaPT
cd AdaPTCreate the virtual environment and install dependencies with uv:
If uv is not installed yet, run one of the following:
# Recommended (Linux / macOS)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or via pip
pip install uvThen create the project environment and install all dependencies:
uv syncThis creates a .venv directory in the project root and resolves packages from uv.lock. On Linux, PyTorch is installed with CUDA 12.x support by default.
Regarding potential installation errors, please refer to this document for solutions.
uv run train Mjlab-ServeTracking-Flat-Unitree-G1-Stage1-RandomDt \
--env.scene.num-envs 4096 \
--env.commands.motion.motion-file dataset/player1/p1_serve.npz \
--agent.run_name adapt_stage1_p1 \
--agent.save-interval 2000 \
--agent.max-iterations 28000After training, you may play the resulted checkpoints, and we also provide the pretrained checkpoint:
uv run play Mjlab-ServeTracking-Flat-Unitree-G1-Stage1-RandomDt \
--checkpoint-file ckpts/player1/model_24000.pt \
--motion-file dataset/player1/p1_serve.npz \
--racket-hand left--racket-hand: Useleftforplayer1(left-handed athlete) andrightforplayer2(right-handed athlete). This selects the racket MJCF and hit-arm reward terms.- Hit-arm keyframes: Tune
HIT_ARM_KEYFRAME_TIMES_Sinstage1_tracking_env_cfg.pyto match your motion clip (e.g.,3.4s forplayer1,1.84s forplayer2).
For any questions, please feel free to email liurf23@mail2.sysu.edu.cn or taou.cs13@gmail.com. We will respond to it as soon as possible.
This repository is released under the Apache-2.0 license. See LICENSE for additional details.
This repository is built upon the support and contributions of the following open-source projects. Special thanks to:
- mjlab: The foundation for training and visualizing codes.
- AdaMimic: Motion speed adaptive and keyframe tracking algorithm implementation.
If you find our work useful, please consider citing:
@article{huang2026adapt,
title={Towards Professional Tennis Styles for Humanoid Robots with Adaptive Motion Planning and Tracking},
author={Tao Huang, Ruofei Liu, Xuchen Tang, Xinyin Zhang, Junli Ren, Huayi Wang, Feiyu Jia, Yukai Qi, Kangning Yin, Weishuai Zeng, Lipeng Chen, Xi Li, Ting Wu, Kailin Li, Ruoli Dai, Jingbo Wang, Lei Han, Jiangmiao Pang},
journal={arXiv preprint arXiv:2608.20087},
year={2026},
url={https://arxiv.org/abs/2608.20087}
}
