# airvlab/gcabench architecture

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

- Interactive diagram: https://gitdiagram.com/airvlab/gcabench
- Repository: https://github.com/airvlab/gcabench

## Overview

GCA-Bench is an Isaac Lab benchmark for complex robotic grasping, spanning task setup, simulated robot execution, demonstration collection/replay, and remote-policy evaluation. The main workflow selects a robot task and scene, runs grasp episodes in the environment, then records demonstrations or evaluates predicted actions and scores object lifting. The README documents the task and evaluation stages; sampled source confirms environment stepping, task-building utilities, and a GR00T policy client. Some listed task/configuration files are absent from the supplied tree, so those subsystems are represented only where paths are supported.

Main entry points: [`grasp_env/grasp_env.py`](https://github.com/airvlab/gcabench/blob/main/grasp_env/grasp_env.py) (Grasp environment), [`client`](https://github.com/airvlab/gcabench/tree/main/client) (Policy clients), [`record_demos.py`](https://github.com/airvlab/gcabench/blob/main/record_demos.py) (Demo recording), [`replay_demos.py`](https://github.com/airvlab/gcabench/blob/main/replay_demos.py) (Demo replay)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tasks["Task and robot setup"]
  node_taskbuilder["Task builder<br/>[load_utils.py]"]
  node_robotcfg["Robot configurations<br/>[franka_cfg.py]"]
  node_robotvariants["Robot task variants"]
end

subgraph group_simulation["Simulation environment"]
  node_envcfg["Environment configuration"]
  node_mdp["Grasp MDP"]
  node_environment["Grasp environment<br/>[grasp_env.py]"]
end

subgraph group_data["Demonstration data"]
  node_recorder["Demo recording<br/>[record_demos.py]"]
  node_replay["Demo replay<br/>[replay_demos.py]"]
end

subgraph group_evaluation["Policy evaluation"]
  node_policyclients["Policy clients"]
  node_gr00tclient["GR00T client<br/>[gr00t_client.py]"]
  node_gr00ttransport["GR00T transport client"]
  node_episode_score["Episode lift score"]
end

node_operator(("Benchmark user"))
node_isaac["Isaac Lab simulator"]
node_dataset[("Demonstration dataset")]
node_policyserver["Remote policy server"]

node_operator -->|"records demos"| node_recorder
node_operator -->|"replays demos"| node_replay
node_operator -->|"runs evaluation"| node_policyclients
node_taskbuilder -->|"builds task"| node_recorder
node_taskbuilder -->|"builds task"| node_replay
node_robotcfg -->|"configures robot"| node_robotvariants
node_robotvariants -->|"specializes scene"| node_envcfg
node_envcfg -->|"configures terms"| node_mdp
node_recorder -->|"steps environment"| node_environment
node_replay -->|"steps environment"| node_environment
node_policyclients -->|"executes actions"| node_environment
node_environment -->|"steps physics"| node_isaac
node_recorder -->|"writes demos"| node_dataset
node_replay -->|"reads demos"| node_dataset
node_policyclients -->|"requests actions"| node_policyserver
node_gr00tclient -->|"uses transport"| node_gr00ttransport
node_gr00ttransport -->|"sends requests"| node_policyserver
node_policyclients -->|"scores lift"| node_episode_score
node_environment -.->|"computes episode terms"| node_mdp

click node_taskbuilder "https://github.com/airvlab/gcabench/blob/main/local_utils/load_utils.py"
click node_robotcfg "https://github.com/airvlab/gcabench/blob/main/robot_assets/franka_cfg.py"
click node_robotvariants "https://github.com/airvlab/gcabench/tree/main/grasp_env"
click node_envcfg "https://github.com/airvlab/gcabench/blob/main/grasp_env/grasp_img_env_cfg.py"
click node_mdp "https://github.com/airvlab/gcabench/tree/main/grasp_env/mdp"
click node_environment "https://github.com/airvlab/gcabench/blob/main/grasp_env/grasp_env.py"
click node_recorder "https://github.com/airvlab/gcabench/blob/main/record_demos.py"
click node_replay "https://github.com/airvlab/gcabench/blob/main/replay_demos.py"
click node_policyclients "https://github.com/airvlab/gcabench/tree/main/client"
click node_gr00tclient "https://github.com/airvlab/gcabench/blob/main/client/gr00t_client.py"
click node_gr00ttransport "https://github.com/airvlab/gcabench/blob/main/local_utils/minimal_gr00t_client.py"
click node_episode_score "https://github.com/airvlab/gcabench/blob/main/client/Openpi_client_img.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_taskbuilder,node_robotcfg,node_robotvariants,node_operator toneBlue
class node_envcfg,node_mdp,node_environment,node_dataset toneAmber
class node_recorder,node_replay,node_policyserver toneMint
class node_policyclients,node_gr00tclient,node_gr00ttransport,node_episode_score toneRose
class node_isaac toneIndigo
```

## Components

### Task and robot setup

- [Task builder](https://github.com/airvlab/gcabench/blob/main/local_utils/load_utils.py): `local_utils/load_utils.py`
- [Robot configurations](https://github.com/airvlab/gcabench/blob/main/robot_assets/franka_cfg.py): `robot_assets/franka_cfg.py`
- [Robot task variants](https://github.com/airvlab/gcabench/tree/main/grasp_env): `grasp_env`

### Simulation environment

- [Environment configuration](https://github.com/airvlab/gcabench/blob/main/grasp_env/grasp_img_env_cfg.py): `grasp_env/grasp_img_env_cfg.py`
- [Grasp MDP](https://github.com/airvlab/gcabench/tree/main/grasp_env/mdp): `grasp_env/mdp`
- [Grasp environment](https://github.com/airvlab/gcabench/blob/main/grasp_env/grasp_env.py): `grasp_env/grasp_env.py`

### Demonstration data

- [Demo recording](https://github.com/airvlab/gcabench/blob/main/record_demos.py): `record_demos.py`
- [Demo replay](https://github.com/airvlab/gcabench/blob/main/replay_demos.py): `replay_demos.py`

### Policy evaluation

- [Policy clients](https://github.com/airvlab/gcabench/tree/main/client): `client`
- [GR00T client](https://github.com/airvlab/gcabench/blob/main/client/gr00t_client.py): `client/gr00t_client.py`
- [GR00T transport client](https://github.com/airvlab/gcabench/blob/main/local_utils/minimal_gr00t_client.py): `local_utils/minimal_gr00t_client.py`
- [Episode lift score](https://github.com/airvlab/gcabench/blob/main/client/Openpi_client_img.py): `client/Openpi_client_img.py`

### Other components

- **Benchmark user**
- **Isaac Lab simulator**
- **Demonstration dataset**
- **Remote policy server**

## Connections

- Benchmark user → Demo recording: records demos (evidence: `README.md`)
- Benchmark user → Demo replay: replays demos (evidence: `README.md`)
- Benchmark user → Policy clients: runs evaluation (evidence: `README.md`)
- Task builder → Demo recording: builds task (evidence: `record_demos.py`)
- Task builder → Demo replay: builds task (evidence: `replay_demos.py`)
- Robot configurations → Robot task variants: configures robot (evidence: `grasp_env/franka_robotiq_img_rel_cfg.py`)
- Robot task variants → Environment configuration: specializes scene (evidence: `grasp_env/J2N7S300_grasp_img_rel_cfg.py`)
- Environment configuration → Grasp MDP: configures terms (evidence: `grasp_env/grasp_img_env_cfg.py`)
- Demo recording → Grasp environment: steps environment (evidence: `record_demos.py`)
- Demo replay → Grasp environment: steps environment (evidence: `replay_demos.py`)
- Policy clients → Grasp environment: executes actions (evidence: `README.md`)
- Grasp environment → Isaac Lab simulator: steps physics (evidence: `grasp_env/grasp_env.py`)
- Demo recording → Demonstration dataset: writes demos (evidence: `README.md`)
- Demo replay → Demonstration dataset: reads demos (evidence: `README.md`)
- Policy clients → Remote policy server: requests actions (evidence: `README.md`)
- GR00T client → GR00T transport client: uses transport (evidence: `client/gr00t_client.py`)
- GR00T transport client → Remote policy server: sends requests (evidence: `local_utils/minimal_gr00t_client.py`)
- Policy clients → Episode lift score: scores lift (evidence: `README.md`)
- Grasp environment → Grasp MDP: computes episode terms
