leesangoh commited on
Commit
b679fcf
·
verified ·
1 Parent(s): 34ce111

Update README for 2026-04-23 recollection

Browse files
Files changed (1) hide show
  1. README.md +94 -113
README.md CHANGED
@@ -1,151 +1,132 @@
1
  ---
2
  license: mit
3
  task_categories:
4
- - robotics
5
- tags:
6
- - physics
7
- - dynamics
8
- - probing
9
- - isaac-lab
10
- - manipulation
11
- - physrepa
12
- - benchmark
13
- pretty_name: Dynamics Probing Benchmark Dataset
14
  size_categories:
15
- - 10K<n<100K
 
 
 
 
 
 
 
16
  ---
17
 
18
- # Dynamics Probing Benchmark Dataset
19
-
20
- Physics-varied manipulation episodes for probing whether video encoders encode contact dynamics in their intermediate representations.
21
-
22
- ## Overview
23
 
24
- This dataset contains **12,100 episodes** across 6 manipulation tasks in Isaac Lab simulation, with **per-episode physics randomization** (friction, mass, damping, restitution). Each episode includes dual-camera RGB video (384x384), robot state/action trajectories, and dense physics ground truth annotations.
25
-
26
- **Purpose**: Dynamics probing — train linear probes on frozen video encoder features to predict physics quantities (contact force, friction coefficient, object velocity, etc.) and identify which layers encode contact dynamics.
27
 
28
  ## Tasks
29
 
30
- | Task | Episodes | Policy | Physics Params | Description |
31
- |------|----------|--------|----------------|-------------|
32
- | **Push** | 1,500 | Scripted (Step0) | mass, obj friction, surface friction | Franka pushes cube on table, random direction |
33
- | **Strike** | 3,000 | Scripted (Step0) | mass, obj friction, surface friction, damping, restitution | Franka strikes ball, random direction |
34
- | **PegInsert** | 2,500 | RL (rl_games) | held friction, fixed friction, held mass | Peg-in-hole insertion with pre-grasped peg |
35
- | **NutThread** | 2,500 | RL (rl_games) | held friction, fixed friction, held mass | Nut threading onto bolt with pre-grasped nut |
36
- | **Drawer** | 2,000 | RL (RSL-RL) | handle friction, gripper friction, drawer damping | Open cabinet drawer |
37
- | **Reach** | 600 | Scripted (Oracle) | None (negative control) | Move EE to random target position |
 
38
 
39
- ## Data Format (LeRobot V2)
40
 
41
- Each task directory contains:
42
  ```
43
- {task}/
44
- ├── data/chunk-000/
45
- │ ├── episode_000000.parquet
46
- │ ├── episode_000001.parquet
47
- │ └── ...
48
- ├── videos/chunk-000/
49
- │ ├── observation.images.image_0/ (table camera)
50
- │ └── observation.images.image_1/ (wrist camera)
51
- └── meta/
52
- ├── info.json
53
- ├── episodes.jsonl
54
- ├── tasks.jsonl
55
- └── stats.json
56
  ```
57
 
58
- ### Per-frame columns (parquet)
59
-
60
- | Column | Shape | Description |
61
- |--------|-------|-------------|
62
- | `observation.state` | (8,) | EE pose [x,y,z,r,p,y,pad,gripper] |
63
- | `action` | (7,) | IK delta [dx,dy,dz,dr,dp,dy,gripper] |
64
- | `observation.images.image_0` | video | Table camera RGB 384x384 |
65
- | `observation.images.image_1` | video | Wrist camera RGB 384x384 |
66
 
67
- ### Physics Ground Truth (per-frame, task-specific)
68
 
69
- **Common (all tasks)**:
70
- - `physics_gt.ee_position` (3), `ee_orientation` (4), `ee_velocity` (3), `ee_angular_velocity` (3), `ee_acceleration` (3)
 
 
71
 
72
- **Push/Strike**:
73
- - `physics_gt.object_position` (3), `object_velocity` (3), `object_angular_velocity` (3), `object_acceleration` (3)
74
- - `physics_gt.contact_finger_l_object_flag` (1), `contact_finger_l_object_force` (3)
75
- - `physics_gt.contact_object_surface_flag` (1), `contact_object_surface_force` (3)
76
- - `physics_gt.object_to_target_distance` (1), `object_on_surface` (1)
77
- - Strike only: `physics_gt.ball_planar_travel_distance` (1)
78
 
79
- **PegInsert**:
80
- - `physics_gt.peg_position` (3), `peg_orientation` (4), `peg_velocity` (3), `peg_angular_velocity` (3)
81
- - `physics_gt.hole_position` (3)
82
- - `physics_gt.insertion_depth` (1), `peg_hole_lateral_error` (1)
83
- - Pair contacts: `contact_finger_l_peg_*`, `contact_finger_r_peg_*`, `contact_peg_socket_*`
84
 
85
- **NutThread**:
86
- - `physics_gt.nut_position` (3), `nut_orientation` (4), `nut_velocity` (3), `nut_angular_velocity` (3)
87
- - `physics_gt.bolt_position` (3), `bolt_orientation` (4)
88
- - `physics_gt.axial_progress` (1), `nut_bolt_relative_angle` (1)
89
- - Pair contacts: `contact_finger_l_nut_*`, `contact_finger_r_nut_*`, `contact_nut_bolt_*`
 
90
 
91
- **Drawer**:
92
- - `physics_gt.drawer_joint_pos` (1), `drawer_joint_vel` (1)
93
- - `physics_gt.handle_position` (3), `handle_velocity` (3)
94
- - `physics_gt.drawer_opening_extent` (1)
95
- - Pair contacts: `contact_finger_l_handle_*`, `contact_finger_r_handle_*`
96
 
97
- **Reach** (negative control):
98
- - `physics_gt.target_position` (3), `ee_to_target_distance` (1)
99
 
100
- ### Episode Metadata (episodes.jsonl)
 
 
101
 
102
- Each episode records randomized physics parameters:
103
- - Push/Strike: `object_0_mass`, `object_0_static_friction`, `surface_static_friction`
104
- - PegInsert: `peg_static_friction`, `peg_mass`, `hole_static_friction`
105
- - NutThread: `nut_static_friction`, `nut_mass`, `bolt_static_friction`
106
- - Drawer: `drawer_joint_damping`, `handle_static_friction`
107
 
108
- ## Environment
109
 
110
- - **Simulator**: Isaac Lab v2.2.1 on Isaac Sim 4.5.0
111
- - **Robot**: Franka Panda (all tasks)
112
- - **Control**: Differential IK (position-only for Push/Strike, pose for others)
113
- - **Cameras**: 384x384 RGB, table_cam (third-person) + wrist_cam
114
- - **Physics**: PhysX GPU, dt=0.01s, decimation=2 (50Hz control)
115
 
116
- ## Design Rationale
117
 
118
- **Why physics randomization?** If a video encoder encodes physics in its intermediate layers, linear probes trained on episodes with varied friction/mass should predict these quantities from frozen features. Tasks without physics variation (Reach) serve as negative controls.
119
 
120
- **Episode count rationale**: Proportional to `(param space dim) × (dynamics complexity) / (informative frame density)`. Strike has 3,000 episodes (most) due to 5D param space and sparse impact events (~25% informative frames).
 
 
 
121
 
122
- ## Reproducibility
123
 
124
- - **Code**: [PhysREPA_Tasks](https://github.com/Leesangoh/PhysREPA_Tasks) (commit `2808943`)
125
- - **RL Checkpoints**: Included in `checkpoints/` directory of this repo
126
- - `peg_insert_rl_games.pth` — PegInsert (rl_games, reward 381)
127
- - `nut_thread_rl_games.pth` — NutThread (rl_games, reward 952)
128
- - `drawer_rsl_rl.pt` — Drawer (RSL-RL, model_4999)
129
- - **Environment**: `environment_info.json` and `pip_freeze.txt` in this repo
130
- - **Platform**: Isaac Sim 4.5.0, Isaac Lab v2.2.1, Python 3.10, CUDA 12.8, 4x NVIDIA A6000
131
 
132
- ### Reproduce collection
133
 
134
- ```bash
135
- # Clone code
136
- git clone https://github.com/Leesangoh/PhysREPA_Tasks
137
- cd PhysREPA_Tasks
 
138
 
139
- # Push (scripted, 16 parallel envs)
140
- /isaac-sim/python.sh collect_sample_data.py --task push --num_episodes 1500 --num_envs 16 --step0 --output_dir <OUT> --headless
141
 
142
- # PegInsert (RL, 200 parallel envs)
143
- /isaac-sim/python.sh collect_sample_data.py --task peg_insert --num_episodes 2500 --num_envs 200 --filter_success --rl_checkpoint checkpoints/peg_insert_rl_games.pth --output_dir <OUT> --headless
144
 
145
- # Drawer (RL, 32 parallel envs)
146
- /isaac-sim/python.sh collect_sample_data.py --task drawer --num_episodes 2000 --num_envs 32 --filter_success --rl_checkpoint checkpoints/drawer_rsl_rl.pt --output_dir <OUT> --headless
147
- ```
 
148
 
149
- ## License
150
 
151
- MIT
 
1
  ---
2
  license: mit
3
  task_categories:
4
+ - robotics
5
+ - reinforcement-learning
6
+ language:
7
+ - en
8
+ pretty_name: PhysProbe Dynamics Probing Dataset
 
 
 
 
 
9
  size_categories:
10
+ - 10K<n<100K
11
+ tags:
12
+ - robotics
13
+ - isaac-lab
14
+ - physics
15
+ - probing
16
+ - manipulation
17
+ - franka
18
  ---
19
 
20
+ # PhysProbe Dynamics Probing Dataset
 
 
 
 
21
 
22
+ Manipulation episodes from Isaac Lab collected for probing physics understanding in video world models (V-JEPA 2, VideoMAE, DINOv2). Each episode includes dual-camera RGB (384×384), robot state, scripted/RL actions, and per-timestep physics ground truth (contact forces, object kinematics, physics randomization parameters).
 
 
23
 
24
  ## Tasks
25
 
26
+ | Task | Episodes | Policy | Physics Randomization |
27
+ |------|---------:|--------|------------------------|
28
+ | Push | 1,500 | Scripted (random direction, no target — Step 0) | mass, obj_friction, surface_friction |
29
+ | Strike | 3,000 | Scripted (random direction, no target — Step 0) | mass, friction, surface_friction, restitution |
30
+ | Reach | 600 | Scripted | None (negative control) |
31
+ | Drawer | 2,000 | RL (RSL_RL) | drawer_joint_damping |
32
+ | PegInsert | 2,500 | Scripted (Factory) | held_friction, fixed_friction, held_mass |
33
+ | NutThread | 2,500 | Scripted (Factory) | held_friction, fixed_friction, held_mass |
34
+ | **Total** | **12,100** | | |
35
 
36
+ ## Format
37
 
38
+ LeRobot V2 layout. Per-task:
39
  ```
40
+ <task>/
41
+ data/chunk-000/episode_NNNNNN.parquet
42
+ videos/chunk-000/observation.images.image_0/episode_NNNNNN.mp4 # table_cam
43
+ videos/chunk-000/observation.images.image_1/episode_NNNNNN.mp4 # wrist_cam
44
+ meta/info.json
45
+ meta/episodes.jsonl
46
+ meta/tasks.jsonl
47
+ meta/stats.json
48
+ meta/modality.json
 
 
 
 
49
  ```
50
 
51
+ Per-episode parquet columns:
52
+ - `observation.state` (8D): 7 joint positions + 1 gripper
53
+ - `action` (3–8D, task-dependent)
54
+ - `next.reward`, `next.done`
55
+ - `physics_gt.*` (task-specific — see below)
56
+ - Frame index, timestep, episode index metadata
 
 
57
 
58
+ ## Physics Ground Truth (`physics_gt.*`)
59
 
60
+ ### Common across all tasks
61
+ - `ee_position` (3), `ee_orientation` (4), `ee_velocity` (3), `ee_angular_velocity` (3) — end-effector kinematics
62
+ - `joint_pos` (7), `joint_vel` (7) — arm joint state
63
+ - `phase` (1) — task phase label (task-dependent enum; 7 = idle)
64
 
65
+ ### Contact fields (per task)
 
 
 
 
 
66
 
67
+ **Push, Strike, Reach:**
68
+ - `contact_flag` (1), `contact_force` (3), `contact_point` (3) — aggregate ee↔object + object↔surface
69
+ - `contact_finger_l_object_flag/force`, `contact_finger_r_object_flag/force` — per-finger ee↔object (new in 2026-04-23)
70
+ - `contact_object_surface_flag/force` — object↔surface (new in 2026-04-23)
 
71
 
72
+ **PegInsert, NutThread:**
73
+ - `contact_flag` (1), `contact_force` (3), `contact_point` (3) — aggregate
74
+ - `contact_finger_l_peg_flag/force`, `contact_finger_r_peg_flag/force` (PegInsert) — finger↔peg
75
+ - `contact_finger_l_nut_flag/force`, `contact_finger_r_nut_flag/force` (NutThread) — finger↔nut
76
+ - `contact_peg_socket_flag/force` (PegInsert) — peg↔hole (reconstructed as residual from peg total contact minus finger reactions; direct pair filter unsupported in Factory direct env)
77
+ - `contact_nut_bolt_flag/force` (NutThread) — nut↔bolt (direct exact-pair sensor)
78
 
79
+ **Drawer:**
80
+ - `handle_position` (3), `handle_velocity` (3)
81
+ - `drawer_joint_pos` (1), `drawer_joint_vel` (1)
 
 
82
 
83
+ ### Task-specific kinematics
 
84
 
85
+ **Push/Strike/Reach (Step 0):**
86
+ - `object_position` (3), `object_orientation` (4), `object_velocity` (3), `object_angular_velocity` (3)
87
+ - `target_position` (3) — placeholder `[0, 0, 0]` (no target in Step 0)
88
 
89
+ **PegInsert/NutThread:**
90
+ - `held_position` (3), `held_orientation` (4), `held_velocity` (3), `held_angular_velocity` (3) — peg/nut kinematics
91
+ - `fixed_position` (3), `fixed_orientation` (4) — hole/bolt pose
92
+ - `insertion_depth` (1) — peg_insert only
 
93
 
94
+ ### Physics randomization parameters (per episode)
95
 
96
+ Stored in episode metadata (`physics_gt.*_{static,dynamic}_friction`, `*_mass`, etc.) — see per-task schema above for exact fields.
 
 
 
 
97
 
98
+ ## 2026-04-23 Recollection Note
99
 
100
+ The previous version of this dataset (before 2026-04-23) had a data-collection bug: contact forces were zero-filled across all tasks because the sensor configuration did not use the proper body filters / the Factory direct env does not support `get_net_contact_forces` on `ArticulationView`. This version fixes the following:
101
 
102
+ 1. **Push, Strike, Drawer, Reach**: Per-pair `ContactSensor` with `filter_prim_paths_expr` on finger/object bodies → real nonzero contact forces.
103
+ 2. **NutThread**: Direct exact-pair sensor (`contact_nut_bolt_*`) → direct nut↔bolt force.
104
+ 3. **PegInsert**: GPU pair filtering on hole is unsupported in direct Factory env. Peg↔socket contact is reconstructed as a **residual**: `F_peg_socket = F_peg_total - F_finger_l_peg - F_finger_r_peg` (Newton's 3rd law). This is sparser and noisier than a direct sensor; finger-grip force dominates and is subtracted, so pay attention when using `contact_peg_socket_*` for downstream probing.
105
+ 4. **Phase label**: Now correctly tracks scripted policy state transitions (previously always 7/idle for RL policies).
106
 
107
+ ### Known caveats (unchanged from previous release)
108
 
109
+ - Push/Strike are Step 0: no target, `success=True` for all, `target_position=[0,0,0]`.
110
+ - Drawer randomizes only `drawer_joint_damping` (Isaac Lab env limitation — handle friction/mass are fixed).
111
+ - Factory tasks (PegInsert, NutThread): collection uses scripted policy; success rate is low for unguided inserts.
 
 
 
 
112
 
113
+ ## Collection Pipeline
114
 
115
+ - Isaac Sim 4.5 / Isaac Lab v2.2.1
116
+ - Scripted oracle policies + optional RL checkpoints (`rl_games` for Factory, `rsl_rl` for Drawer)
117
+ - Dual camera rendering at 384×384, 15 fps
118
+ - `num_envs` per task: 8 (Factory), 16 (others) parallel
119
+ - Hardware: 4× NVIDIA A6000 48 GB
120
 
121
+ Collection script: [Leesangoh/PhysREPA_Tasks](https://github.com/Leesangoh/PhysREPA_Tasks) (`archive_data_collection/collect_sample_data.py`).
 
122
 
123
+ ## Intended use
 
124
 
125
+ This dataset is designed for **probing physics understanding** in pretrained video encoders:
126
+ - Linear probes from mean-pooled features onto `physics_gt.*` targets
127
+ - Temporal-aligned window-level probing (per-window features → per-window targets)
128
+ - Do NOT episode-mean aggregate features/targets for kinematic probing — that collapses temporal structure and produces misleading results.
129
 
130
+ ## Citation
131
 
132
+ TBD (paper in preparation).