File size: 2,028 Bytes
fb5f375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Object Asset Utilities

Scripts for managing the object catalog and generating documentation.

### Generate the object catalog
Scans USD files and extracts metadata (dimensions, physics properties, etc.) into `object_catalog.json`.
```bash
python generate_catalog.py
python generate_catalog.py --objects path/to/dir   # specific directory
python generate_catalog.py --verbose               # print details
```

### List semantic labels
Lists all unique object classes from the catalog.
```bash
python generate_catalog.py --list-classes
python generate_catalog.py --list-classes --by-dataset
python generate_catalog.py --list-classes --verbose          # show objects per class
python generate_catalog.py --list-classes --by-dataset -v    # show objects per class, grouped by dataset
```

### Generate the README table
Creates the markdown table in `assets/objects/README.md` from the catalog.
```bash
python generate_readme.py
python generate_readme.py --datasets hope ycb vomp
```

### Generate screenshots
Renders preview images for objects (requires IsaacSim).
```bash
python generate_object_screenshots.py --datasets hope ycb
```

### Convert USD format
Converts between binary (.usd/.usdc) and ASCII (.usda) formats (requires IsaacSim).
```bash
python convert_usd_format.py --to-usda                       # convert all default folders to ASCII
python convert_usd_format.py ycb --to-usda                   # convert subfolder by name (resolves to assets/objects/ycb)
python convert_usd_format.py ycb hope hot3d --to-usda        # convert multiple subfolders by name
python convert_usd_format.py path/to/folder --to-usd         # convert explicit path to binary
python convert_usd_format.py path/to/file.usd --to-usda      # convert a single file
python convert_usd_format.py --to-usda --dry-run             # preview changes
python convert_usd_format.py --to-usda --overwrite           # overwrite existing output files
python convert_usd_format.py --to-usda --delete-original     # delete originals after conversion
```