harryzhang1018 commited on
Commit
440076e
·
verified ·
1 Parent(s): a153368

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +244 -0
README.md CHANGED
@@ -1,3 +1,247 @@
1
  ---
2
  license: bsd-3-clause
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: bsd-3-clause
3
+ pretty_name: NeDM Neural Reduced Dynamics Datasets
4
+ tags:
5
+ - robotics
6
+ - vehicle-dynamics
7
+ - project-chrono
8
+ - simulation
9
+ - time-series
10
+ - reduced-order-model
11
+ - reinforcement-learning
12
+ - terramechanics
13
+ task_categories:
14
+ - time-series-forecasting
15
+ - robotics
16
+ size_categories:
17
+ - 100M<n<1B
18
+ configs:
19
+ - config_name: hmmwv_flat
20
+ default: true
21
+ data_files:
22
+ - split: train
23
+ path: raw/hmmwv_flat/train/*.parquet
24
+ - split: val
25
+ path: raw/hmmwv_flat/val/*.parquet
26
+ - config_name: hmmwv_bumpy
27
+ data_files:
28
+ - split: train
29
+ path: raw/hmmwv_bumpy/train/*.parquet
30
+ - split: val
31
+ path: raw/hmmwv_bumpy/val/*.parquet
32
+ - config_name: hmmwv_crm
33
+ data_files:
34
+ - split: train
35
+ path: raw/hmmwv_crm/train/*.parquet
36
+ - split: val
37
+ path: raw/hmmwv_crm/val/*.parquet
38
+ - config_name: arm
39
+ data_files:
40
+ - split: train
41
+ path: raw/arm/train/*.parquet
42
+ - split: val
43
+ path: raw/arm/val/*.parquet
44
+ - config_name: tracked
45
+ data_files:
46
+ - split: train
47
+ path: raw/tracked/train/*.parquet
48
+ - split: val
49
+ path: raw/tracked/val/*.parquet
50
+ - config_name: hmmwv_flat_episodes
51
+ data_files: raw/hmmwv_flat/episodes.parquet
52
+ - config_name: hmmwv_bumpy_episodes
53
+ data_files: raw/hmmwv_bumpy/episodes.parquet
54
+ - config_name: hmmwv_crm_episodes
55
+ data_files: raw/hmmwv_crm/episodes.parquet
56
+ - config_name: arm_episodes
57
+ data_files: raw/arm/episodes.parquet
58
+ - config_name: tracked_episodes
59
+ data_files: raw/tracked/episodes.parquet
60
  ---
61
+
62
+ # NeDM — Neural Reduced Dynamics Datasets
63
+
64
+ High-fidelity [Project Chrono](https://projectchrono.org) trajectories used to train the
65
+ neural reduced dynamics models (NN-ROMs) in
66
+
67
+ > **Learning the Right Abstraction: Neural Reduced Dynamics for Complex Robot Control**
68
+ > Harry Zhang and Dan Negrut, 2026 (preprint).
69
+ > Project page: <https://uwsbel.github.io/NeDM/> · Code: <https://github.com/uwsbel/NeDM>
70
+
71
+ Every dataset here is exactly what the paper's models were trained and validated on. Two tiers
72
+ are published (70 GB in total):
73
+
74
+ * **`raw/`** — every recorded channel of every episode (Parquet, float32), plus a per-episode
75
+ index and the byte-exact collection metadata (driver profiles, seeds, terrain, termination
76
+ causes). This is the reusable resource: build your own reduced states from it.
77
+ * **`processed/`** — the four training caches the deployed models read (`.npy`), so the
78
+ paper's training configs run without touching the raw data.
79
+
80
+ ## Datasets
81
+
82
+ | Config | System | Terrain / task | Rate | Episodes (train / val) | Rows | Raw Parquet | Columns |
83
+ |---|---|---|---|---|---|---|---|
84
+ | `hmmwv_flat` | HMMWV (`HMMWV_Full`, TMEASY tires, SMC contact) | flat rigid, μ = 0.9, 900 × 900 m | 100 Hz | 32,768 (26,124 / 6,644) | 160,551,861 | 44.0 GB, 128 shards | 105 |
85
+ | `hmmwv_bumpy` | HMMWV (same vehicle) | rigid heightmap, 100 random 500 × 500 m fields, ±0.6 m | 100 Hz | 1,360 (1,104 / 256) | 4,511,778 | 1.3 GB, 4 shards | 105 |
86
+ | `hmmwv_crm` | HMMWV (rigid-mesh tires) | CRM deformable soil (SPH), 150 × 150 × 0.25 m | 100 Hz | 2,000 (1,582 / 418) | 2,884,961 | 0.8 GB, 4 parts | 105 |
87
+ | `arm` | 4-DOF LRV arm mounted on an M113 (base held) | free-space joint motion, PD torque control | 50 Hz | 15,000 (12,716 / 2,284) | 920,640 | 0.09 GB, 15 shards | 47 |
88
+ | `tracked` | M113 tracked vehicle, arm welded at home | flat rigid drive, 10 manoeuvre families | 50 Hz | 2,160 (1,808 / 352) | 1,683,484 | 0.2 GB, 60 shards | 42 |
89
+
90
+ Roles in the paper: `hmmwv_flat` + `hmmwv_crm` train the terrain-conditioned HMMWV NN-ROM
91
+ (Study Case I); `hmmwv_bumpy` is the zero-shot out-of-distribution test regime and never enters
92
+ training, model selection, normalisation or reward tuning; `tracked` and `arm` train the two
93
+ Study Case II NN-ROMs. All five were collected with PyChrono 10.0.0 (conda `projectchrono`
94
+ channel) using the collectors in the code repository (`src/nedm/hmmwv_data.py`,
95
+ `scripts/collection/collect_hmmwv_crm_dataset.py`, `src/nedm/arm_data.py`,
96
+ `src/nedm/tracked_vehicle_data.py`).
97
+
98
+ ### Splits
99
+
100
+ Train/val is decided **per episode at collection time** and stored in the `split` column:
101
+ `sha1(episode_id)[:8] / 0xFFFFFFFF < validation_ratio → val` (ratio 0.20 for the HMMWV sets,
102
+ 0.15 for `arm` and `tracked`). Whole episodes stay together; the assignment depends only on the
103
+ episode id, so it is stable under re-sharding. `train` and `val` files never share an episode.
104
+
105
+ ## Layout
106
+
107
+ ```
108
+ raw/<config>/train/<shard>.parquet transitions, one file per raw collection shard
109
+ raw/<config>/val/<shard>.parquet
110
+ raw/<config>/episodes.parquet one row per episode: index entry + JSON sidecar (see below)
111
+ raw/<config>/metadata.tar.gz byte-exact originals: dataset_index.json, collector_config.resolved.json,
112
+ episodes/<id>.json sidecars, shard-plan manifests
113
+ processed/<cache>/ .npy training caches + metadata.json (state layout, normalisation)
114
+ assets/bumpy_terrain/bumpy_field_NNN.bmp the 100 heightmaps behind hmmwv_bumpy (256×256, 8-bit, gray 128 = 0 m)
115
+ release_manifest.json sha256 / size / row count of every file, tool versions, source commit
116
+ ```
117
+
118
+ Rows are ordered by episode (collection order) then `sample_index`; each episode is contiguous
119
+ inside exactly one file. Column names and order are the collector's CSV columns, unchanged. All
120
+ physical channels are `float32` (`time_s` is `float64`; `sample_index`, `collision` are `int32`;
121
+ identifiers are dictionary-encoded strings). Files are zstd-compressed with BYTE_STREAM_SPLIT
122
+ float encoding and ≤ 262,144-row row groups.
123
+
124
+ ### Column groups
125
+
126
+ **HMMWV (`hmmwv_flat`, `hmmwv_bumpy`, `hmmwv_crm` — identical 105 columns).** Units are in the
127
+ names (`_m`, `_mps`, `_mps2`, `_rad`, `_radps`, `_n`, `_nm`); world frame is Chrono's ISO
128
+ (x forward, z up), body frame is the chassis frame.
129
+
130
+ | Group | Columns |
131
+ |---|---|
132
+ | identifiers | `episode_id`, `scenario_name`, `scenario_family`, `split`, `sample_index`, `time_s` |
133
+ | driver command (the action) | `driver_steering` ∈ [−1, 1], `driver_throttle` ∈ [0, 1], `driver_braking` ∈ [0, 1] |
134
+ | chassis pose | `pos_{x,y,z}_m`, `quat_e0..e3`, `roll_rad`, `pitch_rad`, `yaw_rad` |
135
+ | chassis motion | `vel_world_{x,y,z}_mps`, `vel_body_{x,y,z}_mps`, `acc_world_*`, `acc_body_*`, `ang_vel_world_{x,y,z}_radps`, `ang_vel_body_{x,y,z}_radps`, `speed_mps`, `body_slip_rad`, `roll_rate_radps`, `yaw_rate_radps` |
136
+ | per-tire block, prefix `tire_{fl,fr,rl,rr}_` (16 × 4) | `longitudinal_slip`, `slip_angle_rad`, `camber_angle_rad`, `force_world_{x,y,z}_n`, `moment_world_{x,y,z}_nm`, `force_wheel_{fx,fy,fz}_n`, `spindle_omega_radps`, `wheel_vx_mps`, `slip_ratio`, `deflection_m` |
137
+
138
+ `force_wheel_*` and `slip_ratio` are derived from spindle state and the world-frame force so they
139
+ are computed identically on rigid and CRM terrain (on CRM the tire force comes from the FSI
140
+ solver, `tire_force_source: crm_fsi`). The paper's 15-D HMMWV state is
141
+ `vel_body_x_mps, vel_body_y_mps, roll_rad, pitch_rad, roll_rate_radps, ang_vel_body_y_radps, yaw_rate_radps`
142
+ + `tire_*_force_wheel_fz_n` (4) + `tire_*_spindle_omega_radps` (4); action is the driver triple;
143
+ pose for open-loop rollout scoring is `pos_x_m, pos_y_m, yaw_rad`. Recording starts after a
144
+ settle/warm-up window (`warmup_s` 2.5 s rigid, 0.2 s CRM), so `time_s` does not start at 0.
145
+
146
+ **Arm (`arm`, 47 columns).** Each row is one 50 Hz control step written as a transition
147
+ `(s, a, s')`: `q_0..3`, `qd_0..3` (joint angle rad / rate rad/s), `qcmd_0..3` (current joint
148
+ command), `act_0..3` (Δq_cmd), `qcmd_next_0..3` (command applied over this step — the paper's
149
+ action), `q_next_0..3`, `qd_next_0..3`, end-effector position in world (`ee_{x,y,z}`,
150
+ `ee_next_*`) and in the vehicle base frame (`ee_base_{x,y,z}`, `ee_next_base_*`), plus
151
+ `collision` (0/1), `collision_kind` (`ground` / `track` / `joint_limit` / empty), `contact_force_n`.
152
+ Episodes start from the home pose with random command increments and terminate on the first
153
+ contact or joint-limit hit, so lengths are 9–500 steps (mean ≈ 58). The paper's 8-D state is
154
+ `[q, qd]` with the end effector recovered by forward kinematics.
155
+
156
+ **Tracked (`tracked`, 42 columns).** The HMMWV chassis block without `body_slip_rad` and without
157
+ tire channels, plus `left_sprocket_speed_radps`, `right_sprocket_speed_radps`. The paper's 3-D
158
+ state is `vel_body_x_mps, vel_body_y_mps, yaw_rate_radps`; action is the driver triple.
159
+
160
+ ### `episodes.parquet` and the metadata bundle
161
+
162
+ `episodes.parquet` flattens each episode's `dataset_index.json` entry and its JSON sidecar
163
+ (nested values are JSON strings): `episode_id`, `split`, `scenario_family`, `rows`,
164
+ `duration_s`, `warmup_s`, `source_shard`, `parquet_file`, and per dataset e.g.
165
+ `height_map_index` / `height_map` / `terminated_out_of_bounds` (bumpy), `terminated_near_boundary`,
166
+ `crm_particles`, `crm_force_summary`, full `driver` profile (CRM), `collision_kind`,
167
+ `collision_links`, `start_q` (arm), `diverged` (tracked), `tire_nominal_radius_m`.
168
+
169
+ `metadata.tar.gz` is the untouched original metadata: per shard `dataset_index.json` and
170
+ `collector_config.resolved.json` (every materialised scenario: driver profile, seed, family,
171
+ terrain and solver settings), every per-episode sidecar, and the shard-plan manifests. It is what
172
+ lets the release be turned back into the collectors' original directory tree (below).
173
+
174
+ ## Loading
175
+
176
+ **Streaming with 🤗 `datasets`** (no download of the 44 GB flat set required):
177
+
178
+ ```python
179
+ from datasets import load_dataset
180
+ ds = load_dataset("harryzhang1018/NeDM", "hmmwv_crm", split="val", streaming=True)
181
+ for row in ds.take(3):
182
+ print(row["episode_id"], row["time_s"], row["vel_body_x_mps"], row["tire_fl_force_wheel_fz_n"])
183
+ episodes = load_dataset("harryzhang1018/NeDM", "hmmwv_bumpy_episodes", split="train")
184
+ ```
185
+
186
+ **Arrow / DuckDB** — one shard at a time, with row-group statistics for pushdown:
187
+
188
+ ```python
189
+ import pyarrow.parquet as pq
190
+ t = pq.read_table("raw/hmmwv_flat/train/shard_017.parquet",
191
+ columns=["episode_id", "time_s", "vel_body_x_mps", "yaw_rate_radps"],
192
+ filters=[("scenario_family", "==", "chirp_steer")])
193
+ ```
194
+
195
+ **Reproducing the paper** with the code repository (`conda env create -f environment.nedm.yml`):
196
+
197
+ ```bash
198
+ # training caches -> artifacts/training_datasets/, then any config in configs/ runs verbatim
199
+ PYTHONPATH=src python scripts/release/download_nedm_datasets.py --dataset all --no-raw --processed
200
+ PYTHONPATH=src python scripts/training/train_hmmwv_dynamics.py --config configs/tracked_transformer_v1.json
201
+
202
+ # raw Parquet -> the collectors' original per-episode CSV tree under artifacts/datasets/,
203
+ # so scripts/preprocess/* and the RL reference builders run unchanged
204
+ PYTHONPATH=src python scripts/release/download_nedm_datasets.py --dataset arm --rehydrate
205
+ ```
206
+
207
+ The rehydrated CSVs carry the float32 values the trainer uses; caches rebuilt from them are
208
+ bit-identical to the ones in `processed/` (this is checked in the release validation).
209
+
210
+ ## Processed caches
211
+
212
+ | Cache | Trained model | State | Action | Transitions (train / val) | Size |
213
+ |---|---|---|---|---|---|
214
+ | `hmmwv_tire_rigid_300g_normal_force_omega_seq_v1` | terrain-conditioned HMMWV NN-ROM (flat share) | 15-D | 3-D | 128,043,338 / 32,475,755 | 23.1 GB |
215
+ | `hmmwv_crm_2000_normal_force_omega_seq_v1` | terrain-conditioned HMMWV NN-ROM (CRM share) | 15-D | 3-D | 2,280,431 / 602,530 | 0.4 GB |
216
+ | `arm_dyn_v3_8d_seq16_v1` | arm NN-ROM | 8-D `[q, q̇]` | 4-D `q_cmd` | 763,886 / 141,754 | 87 MB |
217
+ | `tracked_drive_v2_seq16_v1` | tracked-base NN-ROM | 3-D `[vx, vy, r]` | 3-D | 1,407,465 / 273,859 | 81 MB |
218
+
219
+ Each cache holds contiguous `float32` arrays `{train,val}_{states,actions,targets,rollout}.npy`
220
+ (`targets = states[t+1] − states[t]`, `rollout` = pose per recorded row), `episode_starts` /
221
+ `episode_lengths`, `{train,val}_episodes.json` (episode ids and provenance) and `metadata.json`
222
+ (`state_fields`, `action_fields`, `dt_s`, train-split mean/std used for normalisation). Values are
223
+ raw physical units; the model applies the statistics.
224
+
225
+ ## Known limitations
226
+
227
+ * `hmmwv_bumpy` episodes are short (mean 3.3 k rows) because 78 % end on the 0.9 × 500 m
228
+ keep-in guard; the regime is meant as a test set.
229
+ * The arm collection is restricted to free-space motion (episodes end at first contact) and
230
+ under-samples the lower/rear workspace.
231
+ * CRM episodes are 12–18 s long (SPH cost) and use rigid-mesh tires; the CRM tire "force" is the
232
+ fluid–solid interaction force.
233
+ * Simulation is deterministic and noise-free; there is no sensor model.
234
+
235
+ ## Citation
236
+
237
+ ```bibtex
238
+ @article{zhang2026abstraction,
239
+ title = {Learning the Right Abstraction: Neural Reduced Dynamics for Complex Robot Control},
240
+ author = {Zhang, Harry and Negrut, Dan},
241
+ journal = {Preprint},
242
+ year = {2026}
243
+ }
244
+ ```
245
+
246
+ License: BSD-3-Clause (same as the code). Simulation assets are Project Chrono's HMMWV and M113
247
+ models; the LRV arm geometry is in the code repository (`src/arm_model/`).