File size: 4,250 Bytes
6a62639
 
 
 
 
 
 
3d2e7f6
 
 
 
6a62639
f838d12
27c027b
3d2e7f6
 
 
6a62639
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
task_categories:
- robotics
language:
- en
tags:
- LeRobot
- ALOHA
- Robotics
- Manipulation
- tsfile
- timeseries
- format:tsfile
modality:
- tabular
- timeseries
pretty_name: ALOHA Dining Table TsFile
size_categories:
- 10K<n<100K
configs:
- config_name: default
  data_files:
  - split: train
    path: data/aloha_dining_table.tsfile
---

# ALOHA Dining Table TsFile

This dataset is a TsFile conversion of the Hugging Face dataset
[`htrbao/aloha-dining-table`](https://huggingface.co/datasets/htrbao/aloha-dining-table),
which uses the LeRobot v2.1 format.

Modalities: Time-series. The original dataset also includes three video streams,
`observation.images.color.high`, `observation.images.color.wrist_right`, and
`observation.images.color.wrist_left`; those videos are not included in this
repository and remain available in the source dataset.

## Source Dataset

- Original dataset: [`htrbao/aloha-dining-table`](https://huggingface.co/datasets/htrbao/aloha-dining-table)
- License: MIT
- Format: LeRobot v2.1
- Robot type: `ALOHA`
- Task: `Spread the dining mat on the table, place the plate at the center of the mat, put the spoon to the left of the plate, and place the chopsticks to the right of the plate.`
- Split: single `train` split (`0:99`)
- Scale: 99 episodes, 80,041 frames, 1 task, 1 data chunk
- Sampling rate: 15 fps
- Original video features:
- `observation.images.color.high` at 480x640x3
- `observation.images.color.wrist_right` at 480x640x3
- `observation.images.color.wrist_left` at 480x640x3

## Converted Files

- TsFile: `data/aloha_dining_table.tsfile`
- Rows: 80,041
- Episodes: 99
- Tasks: 1 (`task_index = 0`)
- Table name: `aloha_dining_table`
- Time precision: milliseconds
- Metadata: `meta/` is mirrored from the source dataset, with `meta/info.json`
  rewritten to describe the TsFile artifact and conversion mapping.

## Schema

| Column | Role | Type | Notes |
|---|---|---|---|
| `Time` | TIME | INT64 | `round(timestamp * 1000)`, in milliseconds; restarts per episode |
| `episode_index` | TAG | INT64 | Source episode identifier |
| `task_index` | TAG | INT64 | Source task identifier |
| `frame_index` | FIELD | INT64 | Source frame index, preserved |
| `sample_index` | FIELD | INT64 | Renamed from source `index` |
| `action_0` ... `action_13` | FIELD | FLOAT | Flattened from `action[14]` |
| `observation_state_0` ... `observation_state_13` | FIELD | FLOAT | Flattened from `observation.state[14]` |
| `observation_velocity_0` ... `observation_velocity_13` | FIELD | FLOAT | Flattened from `observation.velocity[14]` |
| `observation_effort_0` ... `observation_effort_13` | FIELD | FLOAT | Flattened from `observation.effort[14]` |

The 14 action and observation state elements correspond to the ALOHA joint
displacements named in the source metadata: `left_waist`, `left_shoulder`,
`left_elbow`, `left_forearm_roll`, `left_wrist_angle`, `left_wrist_rotate`,
`left_gripper`, `right_waist`, `right_shoulder`, `right_elbow`,
`right_forearm_roll`, `right_wrist_angle`, `right_wrist_rotate`, and
`right_gripper`.

`episode_index` and `task_index` are TAG columns, so they form the TsFile device
dimension. To read one episode, filter by `episode_index`.

## Conversion Notes

- The LeRobot frame Parquet files under `data/chunk-000/` were merged into one
  TsFile for the `train` split.
- Vector columns were flattened by preserving the source column name, replacing
  `.` with `_`, and appending the element index.
- The source `timestamp` column is dropped because it is redundant with
  `Time / 1000` seconds.
- The source `index` column is renamed to `sample_index`.
- Videos are not uploaded here. Use the original dataset videos:
  https://huggingface.co/datasets/htrbao/aloha-dining-table/tree/main/videos

## Read Example

```python
from tsfile import TsFileReader

path = "data/aloha_dining_table.tsfile"
table = "aloha_dining_table"

with TsFileReader(path) as reader:
    columns = [
        "episode_index",
        "task_index",
        "frame_index",
        "sample_index",
        "action_0",
        "observation_state_0",
    ]
    with reader.query_table(table, columns, batch_size=4096) as result:
        batch = result.read_arrow_batch()
        print(batch)
```