# lipengdong/hei-rebot-lift architecture

> Architecture diagram of the GitHub repository lipengdong/hei-rebot-lift, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lipengdong/hei-rebot-lift
- Repository: https://github.com/lipengdong/hei-rebot-lift

## Overview

HEI ReBot Lift is a LeRobot-based dual-arm mobile manipulation project. Its documented workflow is teleoperation or simulation demonstrations, recording them as LeRobotDataset episodes, training ACT/VLA policies, and deploying policies in simulation or on the robot. The graph retains the robot, camera, data, policy, and rollout capabilities. Several product branches are documented in the README but their implementation is not present in the supplied tree; links between them are therefore documented workflow edges, not claims about inspected call sites.

Main entry points: [`software/lerobot-hei-rebot-lift/src/lerobot/datasets/lerobot_dataset.py`](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets/lerobot_dataset.py) (LeRobotDataset), [`software/lerobot-hei-rebot-lift/src/lerobot/robots/hei_rebot_lift/hei_rebot_lift_client.py`](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/robots/hei_rebot_lift/hei_rebot_lift_client.py) (HEI robot driver), [`software/lerobot-hei-rebot-lift/src/lerobot/datasets`](https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets) (Dataset recording), [`software/lerobot-hei-rebot-lift/src/lerobot/common/train_utils.py`](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/common/train_utils.py) (Policy training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_robot["Robot hardware"]
  node_teleop["Keyboard / VR"]
  node_simulation["MuJoCo simulation"]
  node_robot_driver["HEI robot driver"]
  node_motors["Motor buses<br/>[motors_bus.py]"]
  node_cameras["Camera drivers"]
end

subgraph group_data["Data collection"]
  node_recording["Dataset recording"]
  node_dataset[("LeRobotDataset<br/>[lerobot_dataset.py]")]
  node_visualization["Episode visualization"]
  node_processor["Data processor pipeline<br/>[pipeline.py]"]
  node_annotation["Subtask annotation"]
end

subgraph group_learning["Policy learning"]
  node_training["Policy training<br/>[train_utils.py]"]
  node_act["ACT policy<br/>[modeling_act.py]"]
  node_vla["VLA policies"]
  node_checkpoint["Trained policy<br/>[pretrained.py]"]
end

subgraph group_deployment["Policy deployment"]
  node_rollout["Policy rollout<br/>[context.py]"]
  node_async_client["Async robot client<br/>[robot_client.py]"]
end

node_builder(("Operator"))

node_builder -->|"controls"| node_teleop
node_teleop -->|"controls robot"| node_simulation
node_builder -->|"records episodes"| node_recording
node_simulation -->|"publishes demonstrations"| node_recording
node_robot_driver -.->|"controls motors"| node_motors
node_robot_driver -.->|"reads cameras"| node_cameras
node_robot_driver -->|"supplies robot data"| node_recording
node_cameras -->|"supplies views"| node_recording
node_recording -->|"writes episodes"| node_dataset
node_dataset -->|"visualizes episodes"| node_visualization
node_dataset -->|"provides training data"| node_training
node_dataset -->|"transforms features"| node_processor
node_processor -.->|"processes inputs"| node_training
node_training -->|"trains"| node_act
node_training -->|"trains"| node_vla
node_act -.->|"saves policy"| node_checkpoint
node_vla -.->|"saves policy"| node_checkpoint
node_checkpoint -->|"loads policy"| node_rollout
node_rollout -->|"runs policy"| node_simulation
node_rollout -.->|"commands robot"| node_robot_driver
node_async_client -.->|"dispatches actions"| node_robot_driver
node_dataset -.->|"annotates episodes"| node_annotation

click node_robot_driver "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/robots/hei_rebot_lift/hei_rebot_lift_client.py"
click node_motors "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/motors/motors_bus.py"
click node_cameras "https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/cameras"
click node_recording "https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets"
click node_dataset "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets/lerobot_dataset.py"
click node_visualization "https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets"
click node_processor "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/processor/pipeline.py"
click node_training "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/common/train_utils.py"
click node_act "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/policies/act/modeling_act.py"
click node_vla "https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/policies"
click node_checkpoint "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/policies/pretrained.py"
click node_rollout "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/rollout/context.py"
click node_async_client "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/async_inference/robot_client.py"
click node_annotation "https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/annotations/steerable_pipeline/modules/plan_subtasks_memory.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_teleop,node_simulation,node_robot_driver,node_motors,node_cameras toneBlue
class node_recording,node_dataset,node_visualization,node_processor,node_annotation toneAmber
class node_training,node_act,node_vla,node_checkpoint toneMint
class node_rollout,node_async_client toneRose
class node_builder toneIndigo
```

## Components

### Robot hardware

- **Keyboard / VR**
- **MuJoCo simulation**
- [HEI robot driver](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/robots/hei_rebot_lift/hei_rebot_lift_client.py): `software/lerobot-hei-rebot-lift/src/lerobot/robots/hei_rebot_lift/hei_rebot_lift_client.py`
- [Motor buses](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/motors/motors_bus.py): `software/lerobot-hei-rebot-lift/src/lerobot/motors/motors_bus.py`
- [Camera drivers](https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/cameras): `software/lerobot-hei-rebot-lift/src/lerobot/cameras`

### Data collection

- [Dataset recording](https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets): `software/lerobot-hei-rebot-lift/src/lerobot/datasets`
- [LeRobotDataset](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets/lerobot_dataset.py): `software/lerobot-hei-rebot-lift/src/lerobot/datasets/lerobot_dataset.py`
- [Episode visualization](https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/datasets): `software/lerobot-hei-rebot-lift/src/lerobot/datasets`
- [Data processor pipeline](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/processor/pipeline.py): `software/lerobot-hei-rebot-lift/src/lerobot/processor/pipeline.py`
- [Subtask annotation](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/annotations/steerable_pipeline/modules/plan_subtasks_memory.py): `software/lerobot-hei-rebot-lift/src/lerobot/annotations/steerable_pipeline/modules/plan_subtasks_memory.py`

### Policy learning

- [Policy training](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/common/train_utils.py): `software/lerobot-hei-rebot-lift/src/lerobot/common/train_utils.py`
- [ACT policy](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/policies/act/modeling_act.py): `software/lerobot-hei-rebot-lift/src/lerobot/policies/act/modeling_act.py`
- [VLA policies](https://github.com/lipengdong/hei-rebot-lift/tree/main/software/lerobot-hei-rebot-lift/src/lerobot/policies): `software/lerobot-hei-rebot-lift/src/lerobot/policies`
- [Trained policy](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/policies/pretrained.py): `software/lerobot-hei-rebot-lift/src/lerobot/policies/pretrained.py`

### Policy deployment

- [Policy rollout](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/rollout/context.py): `software/lerobot-hei-rebot-lift/src/lerobot/rollout/context.py`
- [Async robot client](https://github.com/lipengdong/hei-rebot-lift/blob/main/software/lerobot-hei-rebot-lift/src/lerobot/async_inference/robot_client.py): `software/lerobot-hei-rebot-lift/src/lerobot/async_inference/robot_client.py`

### Other components

- **Operator**

## Connections

- Operator → Keyboard / VR: controls (evidence: `README.md`)
- Keyboard / VR → MuJoCo simulation: controls robot (evidence: `README.md`)
- Operator → Dataset recording: records episodes (evidence: `README.md`)
- MuJoCo simulation → Dataset recording: publishes demonstrations (evidence: `README.md`)
- HEI robot driver → Motor buses: controls motors
- HEI robot driver → Camera drivers: reads cameras
- HEI robot driver → Dataset recording: supplies robot data (evidence: `README.md`)
- Camera drivers → Dataset recording: supplies views (evidence: `README.md`)
- Dataset recording → LeRobotDataset: writes episodes (evidence: `README.md`)
- LeRobotDataset → Episode visualization: visualizes episodes (evidence: `README.md`)
- LeRobotDataset → Policy training: provides training data (evidence: `README.md`)
- LeRobotDataset → Data processor pipeline: transforms features
- Data processor pipeline → Policy training: processes inputs
- Policy training → ACT policy: trains (evidence: `README.md`)
- Policy training → VLA policies: trains (evidence: `README.md`)
- ACT policy → Trained policy: saves policy
- VLA policies → Trained policy: saves policy (evidence: `software/lerobot-hei-rebot-lift/src/lerobot/policies/molmoact2/modeling_molmoact2.py`)
- Trained policy → Policy rollout: loads policy (evidence: `software/lerobot-hei-rebot-lift/src/lerobot/rollout/context.py`)
- Policy rollout → MuJoCo simulation: runs policy (evidence: `README.md`)
- Policy rollout → HEI robot driver: commands robot
- Async robot client → HEI robot driver: dispatches actions
- LeRobotDataset → Subtask annotation: annotates episodes
