File size: 7,397 Bytes
86b6e6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8bfc239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86b6e6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8bfc239
 
 
86b6e6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8bfc239
 
 
86b6e6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
---

license: apache-2.0
authors:
- Ajay Sridhar
task_categories:
- robotics
tags:
- tsfile
- time-series
- timeseries
- robotics
- lerobot
- arx
- teleop
- long-cable
- subtask
- dagger
- v3
modality:
- timeseries
- tabular
pretty_name: Long Cable Insertion 2 Raw Plus DAgger 2x (TsFile)
configs:
- config_name: default
  data_files:
  - split: train
    path: data/long_cable_insertion_2_raw_plus_dagger2x_train.tsfile
size_categories:
- 10K<n<100K
---


# Long Cable Insertion 2 Raw Plus DAgger 2x (TsFile)

This dataset is an Apache TsFile conversion of
[`ajaysri/long_cable_insertion_2_raw_plus_dagger2x`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x), a LeRobot v3 ARX robot-manipulation dataset for
long-cable routing subtasks.

**Modalities: Time-series.** The converted repository contains numeric robot
state, velocity, action, timing, episode/task tags, and mirrored source
metadata. Camera videos remain in the original Hugging Face dataset.

## Source Dataset and Author

- Original dataset: [`ajaysri/long_cable_insertion_2_raw_plus_dagger2x`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x)
- Pinned source revision: [`e539e4d3a54766126424675ec3abe08f2414a60b`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x/tree/e539e4d3a54766126424675ec3abe08f2414a60b)
- Original author, repository owner, and uploader: [Ajay Sridhar (`ajaysri`)](https://huggingface.co/ajaysri)
- License: Apache-2.0
- Robot type: `arx`
- LeRobot codebase version: `v3.0`
- Sampling rate: 50 fps
- Split: `train`, episodes 0 through 537
- Source scale: 538 episodes, 70,596 frames, 3 tasks
- Source frame layout: `data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet`
- Source frame shards: 538
- Source episode-metadata shards: 538
- Paper, homepage, and completed citation: not provided by the source card

The source provenance manifest reports 338 routed
subtask episodes extracted from 114
candidate raw HDF5 episodes, plus 200 DAgger
episodes made as two copies of 100 source
DAgger episodes. One raw episode was rejected during source-dataset creation
before publication because its switch sequence failed segmentation validation;
this TsFile conversion itself drops no published rows.

## Tasks and Scale

| `task_index` | Task | Episodes | Rows |
|---:|---|---:|---:|
| `0` | route the cable through the center router | 179 | 22,778 |
| `1` | route the cable through the right router | 185 | 24,715 |
| `2` | route the cable through the left router | 174 | 23,103 |

The converted train split contains 70,596 rows across 538
episode devices.

## Converted Files

- TsFile: `data/long_cable_insertion_2_raw_plus_dagger2x_train.tsfile`
- Table: `long_cable_insertion_2_raw_plus_dagger2x_train`
- Rows: 70,596
- TsFile size: 10.93 MiB
- Time precision: milliseconds
- Metadata: `meta/` is mirrored from the source, with `meta/info.json` rewritten
  to document the TsFile schema, source revision, conversion mapping, and video
  policy.

## Compact Encoding Profile

The TsFile is written with the native table writer and the following explicit
type-aware encodings to keep the binary smaller than the source frame Parquet:

- `FLOAT`, `DOUBLE`: `GORILLA` + `LZ4`
- `INT32`, `INT64`: `TS_2DIFF` + `LZ4`
- `Time`: `TS_2DIFF` + `LZ4`
- `BOOLEAN`: `RLE` + `LZ4` (no BOOLEAN FIELD occurs in this dataset)
- `TAG`: TsFile table TAG/device segments; tag values are not duplicated as
  ordinary FIELD measurements

## TsFile Schema

`Time` is an INT64 millisecond timestamp computed as
`round(timestamp * 1000)`. It restarts within each episode.

TAG columns:

- `episode_index` — source episode number, 0 through 537
- `task_index` — source task number, 0 through 2

Scalar FIELD columns:

- `frame_index` — frame number within an episode
- `sample_index` — the source global `index` column, renamed

Flattened FLOAT FIELD groups:

- `observation.state[14]` -> `observation_state_0` ... `observation_state_13`
- `observation.velocity[14]` -> `observation_velocity_0` ... `observation_velocity_13`
- `action[14]` -> `action_0` ... `action_13`

The table has 47 columns including `Time`: 2 TAG columns, 44 FIELD columns,
and the TIME column.

## Conversion Notes

- The shared config-driven `lerobot` converter is used with its native Python
  table writer; the dataset-specific Python file is a thin local orchestration
  and documentation entry point.
- All 538 source frame Parquet files in the train split are merged into one
  table-model TsFile. Filter by `episode_index` and `task_index` to select a
  trajectory or routing subtask.
- Vector columns are fully flattened into scalar fields. Full source prefixes
  are preserved and `.` is replaced with `_`.
- The source `timestamp` column is the only published numeric source column not
  stored separately. It is redundant after the exact millisecond `Time`
  mapping (`timestamp = Time / 1000` seconds at the source's 50 Hz cadence).
- The source `index` column is retained as `sample_index`; `frame_index` is
  retained unchanged.
- No published frames, episodes, tasks, state dimensions, velocity dimensions,
  or action dimensions are intentionally dropped.

## Videos

Videos are not duplicated in the converted repository. The pinned source has
1,614 frame-aligned MP4 files in three streams:

- [`videos/observation.images.video_left/`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x/tree/e539e4d3a54766126424675ec3abe08f2414a60b/videos/observation.images.video_left) — 538 MP4 files
- [`videos/observation.images.video_overhead/`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x/tree/e539e4d3a54766126424675ec3abe08f2414a60b/videos/observation.images.video_overhead) — 538 MP4 files
- [`videos/observation.images.video_right/`](https://huggingface.co/datasets/ajaysri/long_cable_insertion_2_raw_plus_dagger2x/tree/e539e4d3a54766126424675ec3abe08f2414a60b/videos/observation.images.video_right) — 538 MP4 files

The source template is
`videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4`.
Each stream contains one file for each of the 538 episodes. Numeric TsFile rows
remain aligned with the original videos through `episode_index`, `frame_index`,
and the source metadata under `meta/episodes/`.

## Validation

The generated TsFile is checked for successful native-writer completion,
non-zero size, table schema, and row-count equality with the staged Parquet. The
expected and validated row count is 70,596; the source contains no duplicate
`(episode_index, task_index, Time)` keys after millisecond conversion.

## Minimal Read Example

```python

from tsfile import TsFileReader



reader = TsFileReader("data/long_cable_insertion_2_raw_plus_dagger2x_train.tsfile")

print(reader.get_all_table_schemas()["long_cable_insertion_2_raw_plus_dagger2x_train"])

reader.close()

```

## Source and License

The source dataset is published by [Ajay Sridhar (`ajaysri`)](https://huggingface.co/ajaysri)
under the Apache License 2.0 and was created with
[LeRobot](https://github.com/huggingface/lerobot). The source card does not
provide a paper or completed citation, so none is inferred here.