File size: 2,043 Bytes
ebe3522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
tags:
  - robotics
  - manipulation
  - simulation
  - pybullet
---

# A2 Environment Assets

Assets for the A2 tabletop manipulation environment (PyBullet simulation).

## Contents

### 3D Objects

- `simplified_objects/`: 66 simplified YCB objects for training
- `unseen_objects/`: 17 unseen objects for testing

### Robot

- `ur5e/`: UR5e robot URDF and meshes
- `workspace/`: Workspace table and fixtures

### Testing Cases

Pre-defined test scenarios for benchmark evaluation:

- `testing_cases/grasp_testing_cases/`: Grasp task test cases
  - `seen/`: 10 cases with training objects
  - `unseen/`: 5 cases with test objects
- `testing_cases/place_testing_cases/`: Place task test cases
  - `seen/`: 20 cases
  - `unseen/`: 10 cases
- `testing_cases/pp_testing_cases/`: Pick-and-place test cases
  - `seen/`: 8 cases
  - `unseen/`: 4 cases

## Usage

Assets are automatically downloaded when using the A2 environment:

```python
from lerobot.envs.a2 import A2Env

# Assets are downloaded to ~/.cache/a2_assets/
env = A2Env(task="grasp", num_objects=8)
```

### Manual Download

```python
from huggingface_hub import snapshot_download

# Download all assets
snapshot_download(
    repo_id="dgrachev/a2_assets",
    repo_type="dataset",
    local_dir="~/.cache/a2_assets"
)
```

## Test Case Format

Each test case file contains:
- Line 1: Language instruction (e.g., "grasp a round object")
- Line 2: Target object indices (space-separated)
- Lines 3+: Object URDF path and 6D pose (x, y, z, rx, ry, rz)

Example (`case00-round.txt`):
```
grasp a round object
0 1 2
assets/simplified_objects/005.urdf 0.61 0.04 0.2 4.22 0.45 1.39
assets/simplified_objects/012.urdf 0.53 -0.11 0.2 6.15 3.49 5.06
...
```

## Related Resources

- [a2_pretrained](https://huggingface.co/dgrachev/a2_pretrained) - Pretrained A2 policy
- [lerobot_policy_a2](https://github.com/dgrachev/lerobot_policy_a2) - Policy package
- [lerobot_grach0v](https://github.com/grach0v/lerobot) - LeRobot fork with A2 environment

## License

Apache-2.0