Skip to content

AI model

Reactive Diffusion Policy

From github.com/xiaoxiaoxh/reactive_diffusion_policy (opens in a new tab)

  • Humanoids and robot learning
  • Apache-2.0 (code)
  • MIT (weights)

A slow-fast visual-tactile policy learning system for contact-rich robot manipulation, built on diffusion policies and tested on bimanual real robots.

Facts

Code last updated
12 Apr 2026Newest commit on main
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Advanced
Hardware it needs, as the project states it
A workstation running Ubuntu 22.04 with a GPU (e.g., NVIDIA RTX 3090), plus a Meta Quest 3 headset, 2 robot arms (Flexiv Rizon 4 by default, or Franka Research 3), 1-3 RealSense cameras, and optional GelSight Mini tactile sensors; a high-performance CPU (e.g., Core i9-13900K) is required for 24 FPS

Checked on GitHub on 21 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 824c5e8 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Learns robot manipulation policies that combine visual and tactile sensing for contact-rich tasks.
  • Includes data collection tooling built around a Meta Quest 3 teleoperation app and ROS2 services.
  • Provides post-processing that converts recorded data into Zarr format for training.
  • Offers training scripts for Diffusion Policy and Reactive Diffusion Policy with configurable control frequencies.
  • Supports inference by running teleoperation, camera launcher and evaluation services in separate terminals.
  • Extends to Franka Research 3 arms and single-arm teleoperation, with a guide for customized sensors and robots.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses this model yet.
Licence
Apache-2.0 (code); MIT (weights). Commercial use: Yes. Where it was read
Load it
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 12 Apr 2026.

Use it

How to load it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 824c5e8

Robotheca never hosts the code or the weights: each link goes to the creator's own page.

The README and the model card

The creator's own README, copied as written: README.md by @xiaoxiaoxh, at commit 824c5e8, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here
Reactive Diffuison Policy:
Slow-Fast Visual-Tactile Policy Learning for Contact-Rich Manipulation
RSS 2025
Best Student Paper Award Finalist

Gu Zhang (opens in a new tab)345†, Yuan Fang2†, Guoying Gu (opens in a new tab)2, Huazhe Xu (opens in a new tab)345‡, Cewu Lu (opens in a new tab)12‡

<sup>1</sup>Shanghai Innovation Institute
<sup>2</sup>Shanghai Jiao Tong University


<sup>3</sup>Tsinghua University, IIIS
<sup>4</sup>Shanghai Qi Zhi Institute
<sup>5</sup>Shanghai AI Lab


<sup>*</sup>Equal contribution
<sup>†</sup>Equal contribution
<sup>‡</sup>Equal advising

teaser

News
TODO
⚙️ Environment Setup
📝 Use Customized Tactile / Force Sensors, Robots and Customized Tasks

Please refer to docs/customized_deployment_guide.md (opens in a new tab).

Hardware
Device List
Software
Quest 3 Setup

Build and install the TactAR APP on the Quest 3 according to the README in our Unity Repo (opens in a new tab).

You can also adopt other Teleoperation system with force feedback.

Workstation Setup
  1. Follow the official document (opens in a new tab) to install ROS2 Humble.

  2. Since ROS2 has some compatibility issues with Conda, we recommend using a virtual environment with venv.

    python3 -m venv rdp_venv
    source rdp_venv/bin/activate
    pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
    pip install -r requirements.txt
    
  3. (Optional) If you want to experiment on Franka, you can refer to docs/franka_setup_instructions.md (opens in a new tab) for configuration.

  4. (Optional) Follow third_party/mvsdk/README.md (opens in a new tab) to install MindVision SDK. This package is needed only if you want to record experiment videos with MindVision cameras.

📦 Data Collection
TactAR Setup
  1. For the workstation, the environment and the task have to be configured first and then start several services for teleoperating robots, publishing sensor data and record the data.
    1. Environment and Task Configuration.
    2. Start services. Run each command in a separate terminal. You can use tmux to split the terminal.
      # start teleoperation server
      python teleop.py task=[task_config_file_name]
      # start camera node launcher
      python camera_node_launcher.py task=[task_config_file_name]
      # start data recorder
      python record_data.py --save_to_disk --save_file_dir [task_data_dir] --save_file_name [record_seq_file_name]
      
  2. For Quest 3, follow the user guide in our Unity Repo (opens in a new tab) to run the TactAR APP.
(Important) Data Collection Tips

Please refer to docs/data_collection_tips.md (opens in a new tab).

Example Data

We provide the data we collected on (opens in a new tab).

Generate your own tactile embedding

Please refer to the tactile embedding guide (opens in a new tab) for collecting your own tactile dataset and generate tactile embedding based on this dataset. You can also directly use our pre-calculated PCA transformation matrix for tactile embedding in data/PCA_Transform_GelSight (opens in a new tab).

Data Postprocessing

Change the config in post_process_data.py (opens in a new tab) (including TAG, ACTION_DIM, TEMPORAL_DOWNSAMPLE_RATIO and SENSOR_MODE) and execute the command

python post_process_data.py

We use Zarr (opens in a new tab) to store the data. After postprocessing, you may see the following structure:

 ├── action (25710, 4) float32
 ├── external_img (25710, 240, 320, 3) uint8
 ├── left_gripper1_img (25710, 240, 320, 3) uint8
 ├── left_gripper1_initial_marker (25710, 63, 2) float32
 ├── left_gripper1_marker_offset (25710, 63, 2) float32
 ├── left_gripper1_marker_offset_emb (25710, 15) float32
 ├── left_gripper2_img (25710, 240, 320, 3) uint8
 ├── left_gripper2_initial_marker (25710, 25, 2) float32
 ├── left_gripper2_marker_offset (25710, 25, 2) float32
 ├── left_gripper2_marker_offset_emb (25710, 15) float32
 ├── left_robot_gripper_force (25710, 1) float32
 ├── left_robot_gripper_width (25710, 1) float32
 ├── left_robot_tcp_pose (25710, 9) float32
 ├── left_robot_tcp_vel (25710, 6) float32
 ├── left_robot_tcp_wrench (25710, 6) float32
 ├── left_wrist_img (25710, 240, 320, 3) uint8
 ├── right_robot_gripper_force (25710, 1) float32
 ├── right_robot_gripper_width (25710, 1) float32
 ├── right_robot_tcp_pose (25710, 9) float32
 ├── right_robot_tcp_vel (25710, 6) float32
 ├── right_robot_tcp_wrench (25710, 6) float32
 ├── target (25710, 4) float32
 └── timestamp (25710,) float32

You can also use your own data collection system to collect data and convert it to the same zarr format as ours.

📚 Training
  1. Task Configuration. In addition to the task config file used in data collection, another file is needed to configure dataset, runner, and model-related parameters such as obs and action. You can take reactive_diffusion_policy/config/task/real_peel_image_dp_absolute_12fps.yaml (opens in a new tab) as an example. Refer to docs/customized_deployment_guide.md (opens in a new tab) for more details.

    The dp, at and ldp in the config file name indicate the Diffusion policy, Asymmetric Tokenizer and Latent Diffusion Policy.

  2. Generate Dataset with Correct Frequency. The fps at the end of config file name indicates the control frequency. Make sure the control_fps in the task config file is consistent with dataset. For instance, we record 24fps data and want to train a model with 12fps control frequency, then we have to modify the TEMPORAL_DOWNSAMPLE_RATIO in post_process_data.py (opens in a new tab) to 2 to generate the correct dataset.

    We record 24fps data for experiments. We train DP with 12fps control frequency and RDP (AT + LDP) with 24fps control frequency.

  3. Run the Training Script. We provide training scripts for Diffusion Policy and Reactive Diffusion Policy. You can modify the training script to train the desired task and model.
    # config multi-gpu training
    accelerate config
    # Diffusion Policy
    ./train_dp.sh
    # Reactive Diffusion Policy
    ./train_rdp.sh
    
🚀 Inference
  1. (Optional) Refer to vcamera_server_ip and vcamera_server_port in the task config file and start the corresponding vcamera server
    # run vcamera server
    python vcamera_server.py --host_ip [host_ip] --port [port] --camera_id [camera_id]
    
  2. Modify eval.sh (opens in a new tab) to set the task and model you want to evaluate and run the command in separate terminals.
    # start teleoperation server
    python teleop.py task=[task_config_file_name]
    # start camera node launcher
    python camera_node_launcher.py task=[task_config_file_name]
    # start inference
    ./eval.sh
    
Checkpoints

We provide the checkpoints in our experiments on (opens in a new tab).

❔ Q&A

Please refer to docs/Q&A.md (opens in a new tab).

🙏 Acknowledgement

Our work is built upon Diffusion Policy (opens in a new tab), VQ-BeT (opens in a new tab), Stable Diffusion (opens in a new tab), UMI (opens in a new tab) and Data Scaling Laws (opens in a new tab). Thanks for their great work!

🔗 Citation

If you find our work useful, please consider citing:

@inproceedings{xue2025reactive,
  title     = {Reactive Diffusion Policy: Slow-Fast Visual-Tactile Policy Learning for Contact-Rich Manipulation},
  author    = {Xue, Han and Ren, Jieji and Chen, Wendi and Zhang, Gu and Fang, Yuan and Gu, Guoying and Xu, Huazhe and Lu, Cewu},
  booktitle = {Proceedings of Robotics: Science and Systems (RSS)},
  year      = {2025}
}

@article{chen2025implicitrdp,
  title     = {ImplicitRDP: An End-to-End Visual-Force Diffusion Policy with Structural Slow-Fast Learning},
  author    = {Chen, Wendi and Xue, Han and Wang, Yi and Zhou, Fangyuan and Lv, Jun and Jin, Yang and Tang, Shirun and Wen, Chuan and Lu, Cewu},
  journal   = {arXiv preprint arXiv:2512.10946},
  year      = {2025}
}

Read the model card on Hugging Face (opens in a new tab)

Robotheca lists AI models as a reference: nothing is hosted or run here, and every fact links to where it was read.