radiuson commited on
Commit
1cadadb
·
verified ·
1 Parent(s): df831b7

Upload dataset with 1 episodes

Browse files
README.md ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - robotics
5
+ - reinforcement-learning
6
+ tags:
7
+ - drone
8
+ - simulation
9
+ - liftoff
10
+ - imitation-learning
11
+ - robot-learning
12
+ size_categories:
13
+ - n<1K
14
+ - 1K<n<10K
15
+ - 10K<n<100K
16
+ configs:
17
+ - config_name: default
18
+ data_files:
19
+ - split: train
20
+ path: "chunk-*/data/*.parquet"
21
+ ---
22
+
23
+ # liftoff_drone_dataset
24
+
25
+ ## Dataset Description
26
+
27
+ This dataset contains telemetry and control data from the Liftoff drone simulator, recorded for robot learning and imitation learning tasks.
28
+
29
+ ### Dataset Summary
30
+
31
+ - **Robot Type**: liftoff_drone_simulator
32
+ - **Total Episodes**: 1
33
+ - **Total Frames**: 1357
34
+ - **Recording FPS**: 30.0 Hz
35
+ - **Video FPS**: 30.0 Hz
36
+ - **LeRobot Version**: v3.0
37
+ - **Chunk Size**: 100 episodes per chunk
38
+
39
+ ### Data Structure
40
+
41
+ The dataset is organized into chunks for efficient storage and retrieval:
42
+
43
+ ```
44
+ dataset/
45
+ ├── chunk-000/ # Episodes 0-99
46
+ │ ├── data/ # Parquet files with telemetry
47
+ │ ├── videos/ # MP4 videos (if available)
48
+ │ └── meta/ # Episode metadata
49
+ ├── chunk-001/ # Episodes 100-199
50
+ │ └── ...
51
+ └── meta/ # Global metadata
52
+ ├── info.json # Dataset information
53
+ └── stats.json # Statistics
54
+ ```
55
+
56
+ ## Features
57
+
58
+ ### Observation State (16 dimensions)
59
+
60
+ The observation state contains drone telemetry:
61
+
62
+ | Index | Feature | Description |
63
+ |-------|---------|-------------|
64
+ | 0-2 | pos_x, pos_y, pos_z | Position in 3D space (meters) |
65
+ | 3-6 | ori_x, ori_y, ori_z, ori_w | Orientation quaternion |
66
+ | 7-9 | vel_x, vel_y, vel_z | Linear velocity (m/s) |
67
+ | 10-12 | ang_vel_x, ang_vel_y, ang_vel_z | Angular velocity (rad/s) |
68
+ | 13-15 | acc_x, acc_y, acc_z | Linear acceleration (m/s²) |
69
+
70
+ ### Action (4 dimensions)
71
+
72
+ RC controller inputs:
73
+
74
+ | Index | Feature | Description |
75
+ |-------|---------|-------------|
76
+ | 0 | throttle | Throttle input |
77
+ | 1 | yaw | Yaw control |
78
+ | 2 | pitch | Pitch control |
79
+ | 3 | roll | Roll control |
80
+
81
+ ### Video Data
82
+
83
+ Each episode includes synchronized video at 30.0 FPS.
84
+ - **Format**: MP4
85
+ - **Codec**: mp4v
86
+ - **Location**: `chunk-XXX/videos/episode_XXXXXX_liftoff.mp4`
87
+
88
+ ## Statistics
89
+
90
+ ### Observation State Statistics
91
+
92
+ | Feature | Mean | Std | Min | Max |
93
+ |---------|------|-----|-----|-----|
94
+ | pos_x | 1108.4283 | 45.6066 | 1062.3221 | 1266.5591 |
95
+ | pos_y | -1072.1070 | 45.1135 | -1180.4570 | -1014.4241 |
96
+ | pos_z | 2.3304 | 1.5687 | 0.0495 | 8.0291 |
97
+ | ori_x | -0.1632 | 0.3821 | -0.8127 | 0.9584 |
98
+ | ori_y | 0.1264 | 0.3482 | -0.6710 | 0.7001 |
99
+ | ori_z | 0.2719 | 0.5303 | -0.8301 | 0.8648 |
100
+ | ori_w | -0.3539 | 0.4580 | -0.8651 | 0.7685 |
101
+ | vel_x | 3.1551 | 16.4758 | -31.6221 | 35.7065 |
102
+ | vel_y | -0.4859 | 20.3263 | -35.7660 | 33.6974 |
103
+ | vel_z | 0.1774 | 2.3431 | -8.8202 | 11.1492 |
104
+ | ang_vel_x | 0.2769 | 1.6505 | -8.2796 | 13.7966 |
105
+ | ang_vel_y | 0.1181 | 1.6863 | -35.1017 | 35.8174 |
106
+ | ang_vel_z | -0.1881 | 1.4257 | -7.3040 | 34.0098 |
107
+ | acc_x | 0.1231 | 34.5961 | -669.9283 | 359.1005 |
108
+ | acc_y | -0.3573 | 24.0967 | -140.9671 | 253.7777 |
109
+ | acc_z | 0.1464 | 14.7532 | -63.3092 | 382.4714 |
110
+
111
+ ### Action Statistics
112
+
113
+ | Feature | Mean | Std | Min | Max |
114
+ |---------|------|-----|-----|-----|
115
+ | throttle | 0.4076 | 0.6514 | -0.9951 | 0.9843 |
116
+ | yaw | -0.0242 | 0.0779 | -0.4100 | 0.2675 |
117
+ | pitch | -0.0541 | 0.1754 | -0.9043 | 0.5213 |
118
+ | roll | 0.0623 | 0.3170 | -0.9440 | 0.8151 |
119
+
120
+ ## Usage
121
+
122
+ ### Loading the Dataset
123
+
124
+ ```python
125
+ from datasets import load_dataset
126
+
127
+ # Load from Hugging Face Hub
128
+ dataset = load_dataset("YOUR_USERNAME/YOUR_DATASET_NAME")
129
+
130
+ # Or load locally
131
+ dataset = load_dataset("parquet", data_files="chunk-*/data/*.parquet")
132
+ ```
133
+
134
+ ### Using with LeRobot
135
+
136
+ ```python
137
+ from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
138
+
139
+ # Load dataset
140
+ dataset = LeRobotDataset("YOUR_USERNAME/YOUR_DATASET_NAME")
141
+
142
+ print(f"Total episodes: {dataset.num_episodes}")
143
+ print(f"Total frames: {len(dataset)}")
144
+
145
+ # Iterate through data
146
+ for item in dataset:
147
+ observation = item['observation.state'] # Shape: [16]
148
+ action = item['action'] # Shape: [4]
149
+ # ... use for training
150
+ ```
151
+
152
+ ### Accessing Videos
153
+
154
+ Videos are stored as MP4 files in chunk directories:
155
+
156
+ ```python
157
+ import pandas as pd
158
+ from pathlib import Path
159
+
160
+ # Load episode data
161
+ df = pd.read_parquet("chunk-000/data/episode_000000.parquet")
162
+
163
+ # Video path is stored in metadata
164
+ # Load from: chunk-000/videos/episode_000000_liftoff.mp4
165
+ ```
166
+
167
+ ## Dataset Creation
168
+
169
+ ### Recording Setup
170
+
171
+ - **Simulator**: Liftoff Drone Simulator
172
+ - **Bridge**: ROS2 Jazzy
173
+ - **Recorder**: Custom LeRobot-compatible recorder
174
+ - **Control**: RC controller or gamepad
175
+
176
+ ### Data Collection Process
177
+
178
+ 1. Start Liftoff simulator
179
+ 2. Launch ROS2 bridge (`liftoff_bridge_ros2.py`)
180
+ 3. Start recorder with gamepad control
181
+ 4. Fly manually and record episodes
182
+ 5. Data automatically organized into chunks
183
+
184
+ ### Quality Control
185
+
186
+ - Episodes with crashes or poor control are discarded using emergency stop
187
+ - Each episode includes full telemetry and synchronized video
188
+ - Statistics computed across all episodes for normalization
189
+
190
+ ## Licensing
191
+
192
+ This dataset is released under the MIT License.
193
+
194
+ ## Citation
195
+
196
+ If you use this dataset in your research, please cite:
197
+
198
+ ```bibtex
199
+ @misc{liftoff_drone_dataset,
200
+ title={Liftoff Drone Simulator Dataset},
201
+ author={Your Name},
202
+ year={2025},
203
+ publisher={Hugging Face},
204
+ howpublished={\url{https://huggingface.co/datasets/YOUR_USERNAME/YOUR_DATASET_NAME}}
205
+ }
206
+ ```
207
+
208
+ ## Contact
209
+
210
+ For questions or issues, please open an issue on the dataset repository.
211
+
212
+ ---
213
+
214
+ **Generated with [LeRobot Liftoff Bridge](https://github.com/YOUR_REPO)**
chunk-000/data/episode_000000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb01db7a8d8f10b7e33f06db55c65dd39968c23aa7f39ca006f5f613332343d0
3
+ size 86801
chunk-000/data/episode_000001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fb2e0d632ebfd545fc63e4c21915bcdf7bd41f5fe0bd42d34e2fec41a2226a4
3
+ size 138297
chunk-000/meta/episodes/episode_000000.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "episode_index": 0,
3
+ "length": 524,
4
+ "duration": 17.464615664,
5
+ "data_path": "chunk-000/data/episode_000000.parquet",
6
+ "video_path": "chunk-000/videos/episode_000000_liftoff.mp4"
7
+ }
chunk-000/meta/episodes/episode_000001.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "episode_index": 1,
3
+ "length": 833,
4
+ "duration": 27.738278500000003,
5
+ "data_path": "chunk-000/data/episode_000001.parquet",
6
+ "video_path": "chunk-000/videos/episode_000001_liftoff.mp4"
7
+ }
chunk-000/videos/episode_000000_liftoff.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e366b3e9efcb83d7d36f0d0f08c3c8635a1c1f075f86a52798f80c262508b2bd
3
+ size 63805451
chunk-000/videos/episode_000001_liftoff.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b8405bebefae6cc7b2b27edd2e53725017a83eb43f7798cd13ea8771280f19b
3
+ size 106428804
meta/info.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v3.0",
3
+ "fps": 30.0,
4
+ "video_fps": 30.0,
5
+ "robot_type": "liftoff_drone_simulator",
6
+ "total_episodes": 1,
7
+ "total_frames": 1357,
8
+ "chunk_size": 100,
9
+ "features": {
10
+ "observation.state": {
11
+ "dtype": "float32",
12
+ "shape": [
13
+ 16
14
+ ],
15
+ "names": [
16
+ "pos_x",
17
+ "pos_y",
18
+ "pos_z",
19
+ "ori_x",
20
+ "ori_y",
21
+ "ori_z",
22
+ "ori_w",
23
+ "vel_x",
24
+ "vel_y",
25
+ "vel_z",
26
+ "ang_vel_x",
27
+ "ang_vel_y",
28
+ "ang_vel_z",
29
+ "acc_x",
30
+ "acc_y",
31
+ "acc_z"
32
+ ]
33
+ },
34
+ "action": {
35
+ "dtype": "float32",
36
+ "shape": [
37
+ 4
38
+ ],
39
+ "names": [
40
+ "throttle",
41
+ "yaw",
42
+ "pitch",
43
+ "roll"
44
+ ]
45
+ },
46
+ "episode_index": {
47
+ "dtype": "int64"
48
+ },
49
+ "frame_index": {
50
+ "dtype": "int64"
51
+ },
52
+ "timestamp": {
53
+ "dtype": "float32"
54
+ },
55
+ "next.done": {
56
+ "dtype": "bool"
57
+ },
58
+ "observation.images.liftoff": {
59
+ "video_info": {
60
+ "video.fps": 30.0,
61
+ "video.codec": "mp4v",
62
+ "video.pix_fmt": "yuv420p"
63
+ }
64
+ }
65
+ }
66
+ }
meta/stats.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "observation.state": {
3
+ "mean": [
4
+ 1108.4282927319857,
5
+ -1072.1069646735532,
6
+ 2.3303521676544943,
7
+ -0.16322944986487176,
8
+ 0.12642046348951647,
9
+ 0.2718793417302828,
10
+ -0.35392113093290356,
11
+ 3.155102908619267,
12
+ -0.48586537720746514,
13
+ 0.1774124894768148,
14
+ 0.2769409404378811,
15
+ 0.11807016322556688,
16
+ -0.18806348394219674,
17
+ 0.12312999709124835,
18
+ -0.3573442511795086,
19
+ 0.14643042987022034
20
+ ],
21
+ "std": [
22
+ 45.606550631093015,
23
+ 45.11348834579694,
24
+ 1.568746690110716,
25
+ 0.3820608905092092,
26
+ 0.348224717897464,
27
+ 0.530262832654925,
28
+ 0.4580238808065006,
29
+ 16.475770973183835,
30
+ 20.326337564032432,
31
+ 2.3430848255126273,
32
+ 1.650455495983991,
33
+ 1.686317680401106,
34
+ 1.425707063173575,
35
+ 34.59610181278284,
36
+ 24.096669722996523,
37
+ 14.753170542419575
38
+ ],
39
+ "min": [
40
+ 1062.3221435546875,
41
+ -1180.45703125,
42
+ 0.04948427528142929,
43
+ -0.8126533627510071,
44
+ -0.671003520488739,
45
+ -0.8301132917404175,
46
+ -0.865094006061554,
47
+ -31.622112274169922,
48
+ -35.76601028442383,
49
+ -8.82015609741211,
50
+ -8.279586791992188,
51
+ -35.10171890258789,
52
+ -7.303985595703125,
53
+ -669.9282836914062,
54
+ -140.96710205078125,
55
+ -63.309173583984375
56
+ ],
57
+ "max": [
58
+ 1266.55908203125,
59
+ -1014.424072265625,
60
+ 8.029143333435059,
61
+ 0.9584319591522217,
62
+ 0.7000893354415894,
63
+ 0.8648200035095215,
64
+ 0.7684717178344727,
65
+ 35.70646286010742,
66
+ 33.69743728637695,
67
+ 11.149155616760254,
68
+ 13.796575546264648,
69
+ 35.817386627197266,
70
+ 34.00975799560547,
71
+ 359.10052490234375,
72
+ 253.7777099609375,
73
+ 382.4714050292969
74
+ ]
75
+ },
76
+ "action": {
77
+ "mean": [
78
+ 0.40762066603936775,
79
+ -0.024219077404855436,
80
+ -0.05413641601024702,
81
+ 0.06230883918583871
82
+ ],
83
+ "std": [
84
+ 0.6513956381242813,
85
+ 0.07785166759800959,
86
+ 0.17539452081386217,
87
+ 0.31699080409477587
88
+ ],
89
+ "min": [
90
+ -0.9950956106185913,
91
+ -0.41002950072288513,
92
+ -0.9042501449584961,
93
+ -0.9439527988433838
94
+ ],
95
+ "max": [
96
+ 0.9843060970306396,
97
+ 0.26745328307151794,
98
+ 0.5212506055831909,
99
+ 0.8151425719261169
100
+ ]
101
+ }
102
+ }