--- license: apache-2.0 authors: - "Ishan Shah (Ishan-Axibo)" task_categories: - robotics tags: - tsfile - timeseries - tabular - robotics - lerobot - manipulation - bimanual - cube-stacking modality: - timeseries - tabular pretty_name: "Piper Stacking EE TsFile" configs: - config_name: default data_files: - split: train path: data/piper_stacking_ee_train.tsfile size_categories: - 10K `observation_state_0` ... `observation_state_19` - `action[20]` -> `action_0` ... `action_19` The source uses the same 20-dimensional order for state and action: | Index | Source dimension | State FIELD | Action FIELD | |---:|---|---|---| | 0 | `left_x` | `observation_state_0` | `action_0` | | 1 | `left_y` | `observation_state_1` | `action_1` | | 2 | `left_z` | `observation_state_2` | `action_2` | | 3 | `left_rot6d_0` | `observation_state_3` | `action_3` | | 4 | `left_rot6d_1` | `observation_state_4` | `action_4` | | 5 | `left_rot6d_2` | `observation_state_5` | `action_5` | | 6 | `left_rot6d_3` | `observation_state_6` | `action_6` | | 7 | `left_rot6d_4` | `observation_state_7` | `action_7` | | 8 | `left_rot6d_5` | `observation_state_8` | `action_8` | | 9 | `left_gripper` | `observation_state_9` | `action_9` | | 10 | `right_x` | `observation_state_10` | `action_10` | | 11 | `right_y` | `observation_state_11` | `action_11` | | 12 | `right_z` | `observation_state_12` | `action_12` | | 13 | `right_rot6d_0` | `observation_state_13` | `action_13` | | 14 | `right_rot6d_1` | `observation_state_14` | `action_14` | | 15 | `right_rot6d_2` | `observation_state_15` | `action_15` | | 16 | `right_rot6d_3` | `observation_state_16` | `action_16` | | 17 | `right_rot6d_4` | `observation_state_17` | `action_17` | | 18 | `right_rot6d_5` | `observation_state_18` | `action_18` | | 19 | `right_gripper` | `observation_state_19` | `action_19` | ## Conversion Notes - The shared config-driven `lerobot` converter is used; the dataset-specific script is a thin local orchestration and validation entry point and is not part of the dataset upload; the conversion script is retained locally. - The train split is merged into one table-model TsFile. Filter by `episode_index` and `task_index` to select an episode or task. - Vector columns are flattened to scalar TsFile fields. Full source prefixes are preserved, with `.` replaced by `_`. - The source `timestamp` column is dropped after Time synthesis because it is redundant with `Time / 1000` seconds. - Source `index` is renamed to `sample_index`; `frame_index` is retained. - All 155 source Parquet schemas are identical, both vector widths are exactly 20, and no numeric row, episode, task, state dimension, or action dimension is dropped. - FLOAT fields use GORILLA + LZ4; INT64 fields and Time use TS_2DIFF + LZ4. The config also requires RLE + LZ4 for BOOLEAN fields (none occur in this source). ## Videos Videos are not duplicated in this converted repository. They remain under the original source revision's `videos/chunk-000/` tree in three frame-aligned streams: - [`observation.images.cam_front`](https://huggingface.co/datasets/axiboai/piper_stacking_ee/tree/7f79b7c26d815766cf0f6d041edde20e7033e573/videos/chunk-000/observation.images.cam_front): 155 MP4 files, 652,759,687 bytes - [`observation.images.cam_left_wrist`](https://huggingface.co/datasets/axiboai/piper_stacking_ee/tree/7f79b7c26d815766cf0f6d041edde20e7033e573/videos/chunk-000/observation.images.cam_left_wrist): 155 MP4 files, 585,180,346 bytes - [`observation.images.cam_right_wrist`](https://huggingface.co/datasets/axiboai/piper_stacking_ee/tree/7f79b7c26d815766cf0f6d041edde20e7033e573/videos/chunk-000/observation.images.cam_right_wrist): 155 MP4 files, 459,890,635 bytes Together, the source contains 465 MP4 files totaling 1,697,830,668 bytes (about 1.58 GiB). Each stream contains one `episode_XXXXXX.mp4` file per episode. Numeric rows remain aligned through `episode_index`, `frame_index`, and the source episode metadata. The source metadata describes 640x480 AV1 video at 30 fps without audio. ## Validation The generated TsFile was opened and fully queried with the Apache TsFile Java reader bundled with the conversion tools. Source, staged-Parquet, and TsFile readback row counts all equal 60,656. The file contains one table, 155 episode/task devices, 2 TAG columns, and 42 FIELD columns. The detailed `VALIDATION.md` and `validation_report.json` checks are retained locally and are intentionally not included in the dataset upload. ## Usage ```python from tsfile import TsFileReader reader = TsFileReader("data/piper_stacking_ee_train.tsfile") table_name = "piper_stacking_ee_train" columns = [ "episode_index", "task_index", "frame_index", "sample_index", "action_0", "observation_state_0", ] with reader.query_table(table_name, columns, batch_size=65536) as result: batch = result.read_arrow_batch() print(batch.to_pandas().head()) ```