resources¶
resources
¶
Modules:
| Name | Description |
|---|---|
generate_user_asset_library_index |
Script to generate an asset index for a user-provided asset library. |
generate_user_grasp_library_index |
Script to generate a grasp index for a user-provided grasp library. |
generate_user_asset_library_index
¶
Script to generate an asset index for a user-provided asset library. Optionally, the script can also compute some unprovided metadata for the assets.
The asset library can have any directory structure, but asset XMLs should be named
Functions:
| Name | Description |
|---|---|
build_asset_index |
|
hydrate_asset_metadata |
|
main |
|
build_asset_index
¶
build_asset_index(source_dir: Path, args) -> dict[str, UserAssetLibraryIndexEntry]
Source code in molmo_spaces/resources/generate_user_asset_library_index.py
hydrate_asset_metadata
¶
Source code in molmo_spaces/resources/generate_user_asset_library_index.py
main
¶
Source code in molmo_spaces/resources/generate_user_asset_library_index.py
generate_user_grasp_library_index
¶
Script to generate a grasp index for a user-provided grasp library.
Assumes the following conventions:
- Nonarticulated grasp files are of the form
Where
is the asset ID of the object the grasp is for is the name of the robot/gripper the grasp is for (i.e. what it was collected with) is the name of the joint the grasp is for, for articulated grasps
These conventions are required for this indexing script, but not by the rest of MolmoSpaces.
Functions:
| Name | Description |
|---|---|
build_grasp_index |
|
get_articulated_grasp_paths |
|
get_grasp_paths |
|
main |
|
build_grasp_index
¶
build_grasp_index(source_dir: Path) -> UserGraspLibraryIndex