File size: 4,649 Bytes
5d31775
 
 
 
 
 
 
 
 
 
 
f654a7e
5d31775
 
 
 
 
 
 
34ed02d
5d31775
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f2c0d23
 
 
 
 
5d31775
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f654a7e
5d31775
cd38137
 
 
 
 
 
 
 
 
 
 
 
 
 
5d31775
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34ed02d
f654a7e
5d31775
 
 
4ec5478
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
181
182
183
---
license: mit
task_categories:
  - robotics
tags:
  - robotics
  - manipulation
  - imitation-learning
  - mujoco
  - simulation
size_categories:
  - 1K<n<10K
---
# DR_dataset

Simulated robot manipulation dataset for imitation learning.

## Dataset Description

This dataset contains **200 episodes** of a Trossen WXAI robotic arm performing food transfer tasks in MuJoCo simulation.

### Task Description

The robot performs a scooping motion to transfer food from a source container to target bowls:

1. **HOME** - Start at home position
2. **APPROACH_CONTAINER** - Move above the source container
3. **REACH_CONTAINER** - Lower into container
4. **SCOOP** - Perform scooping motion (wrist rotation)
5. **LIFT** - Lift from container
6. **APPROACH_BOWL** - Move above target bowl
7. **LOWER_BOWL** - Lower to bowl
8. **DUMP** - Rotate wrist to dump food
9. **RETURN** - Return to home position

## Dataset Structure

```
ganatrask/DR_dataset/
├── README.md
├── manifest.json
└── data/
    ├── batch_000/
    │   ├── episode_0.hdf5
    │   ├── episode_1.hdf5
    │   ├── ...
    │   └── videos/
    │       ├── episode_0.mp4
    │       ├── episode_1.mp4
    │       └── ...
    ├── batch_001/
    └── ...
```

### HDF5 Episode Format

Each `episode_X.hdf5` file contains:

```
episode_X.hdf5
├── observations/
│   ├── images/
│   │   ├── main_view  (T, 480, 640, 3) uint8 - overhead camera
│   │   └── cam        (T, 480, 640, 3) uint8 - wrist camera
│   ├── qpos           (T, 8) float64 - joint positions
│   └── qvel           (T, 8) float64 - joint velocities
├── action             (T, 8) float64 - joint commands
├── success            bool - episode success flag
├── env_state/
│   ├── source_container  (7,) float64 - [x,y,z,qw,qx,qy,qz]
│   ├── target_container  (7,) float64 - target bowl pose
│   └── bowl_*            (7,) float64 - all bowl poses
└── attrs:
    ├── sim: True
    ├── source: "food_transfer_ik"
    ├── target: bowl name
    ├── dr_enabled: bool
    └── dr_config: JSON (if DR enabled)
```

### MP4 Videos

Each episode has a corresponding MP4 video showing both camera views side-by-side at 50 FPS.

## Robot Configuration

- **Robot**: Trossen WXAI 6-DOF robotic arm
- **End-effector**: Spoon attached to wrist
- **Joints**: 6 arm joints + 2 gripper joints
- **Action space**: 8-dimensional joint position commands
- **Cameras**: Overhead (main_view) + Wrist-mounted (cam)
- **Image resolution**: 640x480 RGB

## Domain Randomization

This dataset was generated with geometric domain randomization:

| Parameter | Value |
|-----------|-------|
| Position noise | ±3.0 cm |
| Rotation noise | ±0.10 rad |
| Container rotation | ±0.15 rad |
| Bowl count range | 1 - 8 |
| Min object spacing | 12.0 cm |
| Container randomization | Yes |
| 90-degree rotation | No |

## Visual Domain Randomization

This dataset includes visual domain randomization:

| Parameter | Value |
|-----------|-------|
| Table textures | 100 variations |
| Floor textures | 100 variations |
| Container color | Randomized |
| Bowl color | Fixed |
| Lighting | Randomized |
| Light position noise | ±0.3 m |
| Light intensity range | 0.5 - 1.2x |

## Usage

### Loading with Python

```python
import h5py
from huggingface_hub import hf_hub_download

# Download a single episode
path = hf_hub_download(
    repo_id="ganatrask/DR_dataset",
    filename="data/batch_000/episode_0.hdf5",
    repo_type="dataset"
)

# Load the episode
with h5py.File(path, "r") as f:
    images = f["/observations/images/main_view"][:]
    actions = f["/action"][:]
    qpos = f["/observations/qpos"][:]
    success = f["success"][()]

print(f"Episode length: {{len(actions)}} timesteps")
print(f"Success: {{success}}")
```

### Loading with datasets library

```python
from datasets import load_dataset

# Load manifest to get episode list
dataset = load_dataset("ganatrask/DR_dataset", split="train")
```

## Citation

If you use this dataset, please cite:

```bibtex
@misc{{{repo_id.split('/')[-1].replace('-', '_')}},
    title={{{repo_id.split('/')[-1]}}},
    author={{Trossen Robotics}},
    year={{{datetime.now().year}}},
    publisher={{HuggingFace}},
    url={{https://huggingface.co/datasets/ganatrask/DR_dataset}}
}}
```

## License

This dataset is released under the MIT License.

## Additional Information

- **Total batches**: 20
- **Failed episodes**: 0

---

*Generated on 2026-01-26 21:06:40 using trossen_arm_mujoco*