Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .agents/skills/hf-cli/SKILL.md +174 -0
- .gitattributes +0 -0
- README.md +0 -0
- grippers/franka_panda/.thumbs/256x256/franka_panda.usd.png +0 -0
- grippers/franka_panda/.thumbs/256x256/instanceable_meshes.usd.png +0 -0
- grippers/franka_panda/controller_info.json +6 -0
- grippers/franka_panda/franka_panda.usd +3 -0
- grippers/franka_panda/gripper_info.json +8 -0
- grippers/franka_panda/instanceable_meshes.usd +3 -0
- grippers/franka_panda/materials/colors.png +0 -0
- objects/00616c9c-da96-42d6-8f84-4f2d7e94f267/object.usd +3 -0
- objects/00aff23a-2075-44d5-a4eb-da6d5998a409/object.usd +3 -0
- objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_diffuse.png +3 -0
- objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_metallic-texture_roughness.png +3 -0
- objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_normal.png +3 -0
- objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/object.usd +3 -0
- objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_0.png +3 -0
- objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_1.png +3 -0
- objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_2.png +3 -0
- objects/00da075b-1fec-4ca0-9ef5-9a8b6d004105/object.usd +3 -0
- objects/00da075b-1fec-4ca0-9ef5-9a8b6d004105/textures/T_j_cups_BC001.png +0 -0
- objects/00e0cb65-d493-4123-8352-042b3c890d20/object.usd +3 -0
- objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_diffuse.png +3 -0
- objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_metallic-texture_roughness.png +3 -0
- objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_normal.png +3 -0
- objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/object.usd +3 -0
- objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_diffuse.png +3 -0
- objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_metallic-texture_roughness.png +3 -0
- objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_normal.png +3 -0
- objects/01237be2-356a-4a66-8084-337fba056eb3/object.usd +3 -0
- objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_0.png +3 -0
- objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_1.png +3 -0
- objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_2.png +3 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/.asset_hash +1 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/config.yaml +13 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_base.usd +3 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_physics.usd +0 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_robot.usd +0 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_sensor.usd +0 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/materials/living_room_table_texture.png +3 -0
- objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/object.usd +0 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/Isaac Sim 4.5/isaac-sim-assets/Materials/2023_2_1/Base/Glass/Clear_Glass.mdl +43 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/object.usd +3 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/extensions.json +8 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/launch.json +25 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/settings.json +10 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/cabinet_control.py +185 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/img/2793a4a02bafe613e46589e794c532c3.png +3 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/img/701dc4054f66ca81257e28a1d1a1a29e.png +3 -0
- objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/material.usd +0 -0
.agents/skills/hf-cli/SKILL.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: hf-cli
|
| 3 |
+
description: "Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command."
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`.
|
| 7 |
+
|
| 8 |
+
The Hugging Face Hub CLI tool `hf` is available. IMPORTANT: The `hf` command replaces the deprecated `huggingface-cli` command.
|
| 9 |
+
|
| 10 |
+
Use `hf --help` to view available functions. Note that auth commands are now all under `hf auth` e.g. `hf auth whoami`.
|
| 11 |
+
|
| 12 |
+
Generated with `huggingface_hub v1.7.2`. Run `hf skills add --force` to regenerate.
|
| 13 |
+
|
| 14 |
+
## Commands
|
| 15 |
+
|
| 16 |
+
- `hf download REPO_ID` — Download files from the Hub. `[--type CHOICE --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --quiet --max-workers INTEGER]`
|
| 17 |
+
- `hf env` — Print information about the environment.
|
| 18 |
+
- `hf sync` — Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]`
|
| 19 |
+
- `hf upload REPO_ID` — Upload a file or a folder to the Hub. Recommended for single-commit uploads. `[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --quiet]`
|
| 20 |
+
- `hf upload-large-folder REPO_ID LOCAL_PATH` — Upload a large folder to the Hub. Recommended for resumable uploads. `[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars]`
|
| 21 |
+
- `hf version` — Print information about the hf version.
|
| 22 |
+
|
| 23 |
+
### `hf auth` — Manage authentication (login, logout, etc.).
|
| 24 |
+
|
| 25 |
+
- `hf auth list` — List all stored access tokens.
|
| 26 |
+
- `hf auth login` — Login using a token from huggingface.co/settings/tokens. `[--add-to-git-credential --force]`
|
| 27 |
+
- `hf auth logout` — Logout from a specific token. `[--token-name TEXT]`
|
| 28 |
+
- `hf auth switch` — Switch between access tokens. `[--token-name TEXT --add-to-git-credential]`
|
| 29 |
+
- `hf auth whoami` — Find out which huggingface.co account you are logged in as. `[--format CHOICE]`
|
| 30 |
+
|
| 31 |
+
### `hf buckets` — Commands to interact with buckets.
|
| 32 |
+
|
| 33 |
+
- `hf buckets cp SRC` — Copy a single file to or from a bucket. `[--quiet]`
|
| 34 |
+
- `hf buckets create BUCKET_ID` — Create a new bucket. `[--private --exist-ok --quiet]`
|
| 35 |
+
- `hf buckets delete BUCKET_ID` — Delete a bucket. `[--yes --missing-ok --quiet]`
|
| 36 |
+
- `hf buckets info BUCKET_ID` — Get info about a bucket. `[--quiet]`
|
| 37 |
+
- `hf buckets list` — List buckets or files in a bucket. `[--human-readable --tree --recursive --format CHOICE --quiet]`
|
| 38 |
+
- `hf buckets move FROM_ID TO_ID` — Move (rename) a bucket to a new name or namespace.
|
| 39 |
+
- `hf buckets remove ARGUMENT` — Remove files from a bucket. `[--recursive --yes --dry-run --include TEXT --exclude TEXT --quiet]`
|
| 40 |
+
- `hf buckets sync` — Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]`
|
| 41 |
+
|
| 42 |
+
### `hf cache` — Manage local cache directory.
|
| 43 |
+
|
| 44 |
+
- `hf cache list` — List cached repositories or revisions. `[--cache-dir TEXT --revisions --filter TEXT --format CHOICE --quiet --sort CHOICE --limit INTEGER]`
|
| 45 |
+
- `hf cache prune` — Remove detached revisions from the cache. `[--cache-dir TEXT --yes --dry-run]`
|
| 46 |
+
- `hf cache rm TARGETS` — Remove cached repositories or revisions. `[--cache-dir TEXT --yes --dry-run]`
|
| 47 |
+
- `hf cache verify REPO_ID` — Verify checksums for a single repo revision from cache or a local directory. `[--type CHOICE --revision TEXT --cache-dir TEXT --local-dir TEXT --fail-on-missing-files --fail-on-extra-files]`
|
| 48 |
+
|
| 49 |
+
### `hf collections` — Interact with collections on the Hub.
|
| 50 |
+
|
| 51 |
+
- `hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE` — Add an item to a collection. `[--note TEXT --exists-ok]`
|
| 52 |
+
- `hf collections create TITLE` — Create a new collection on the Hub. `[--namespace TEXT --description TEXT --private --exists-ok]`
|
| 53 |
+
- `hf collections delete COLLECTION_SLUG` — Delete a collection from the Hub. `[--missing-ok]`
|
| 54 |
+
- `hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID` — Delete an item from a collection. `[--missing-ok]`
|
| 55 |
+
- `hf collections info COLLECTION_SLUG` — Get info about a collection on the Hub. Output is in JSON format.
|
| 56 |
+
- `hf collections list` — List collections on the Hub. `[--owner TEXT --item TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]`
|
| 57 |
+
- `hf collections update COLLECTION_SLUG` — Update a collection's metadata on the Hub. `[--title TEXT --description TEXT --position INTEGER --private --theme TEXT]`
|
| 58 |
+
- `hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID` — Update an item in a collection. `[--note TEXT --position INTEGER]`
|
| 59 |
+
|
| 60 |
+
### `hf datasets` — Interact with datasets on the Hub.
|
| 61 |
+
|
| 62 |
+
- `hf datasets info DATASET_ID` — Get info about a dataset on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`
|
| 63 |
+
- `hf datasets list` — List datasets on the Hub. `[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]`
|
| 64 |
+
- `hf datasets parquet DATASET_ID` — List parquet file URLs available for a dataset. `[--subset TEXT --split TEXT --format CHOICE --quiet]`
|
| 65 |
+
- `hf datasets sql SQL` — Execute a raw SQL query with DuckDB against dataset parquet URLs. `[--format CHOICE]`
|
| 66 |
+
|
| 67 |
+
### `hf discussions` — Manage discussions and pull requests on the Hub.
|
| 68 |
+
|
| 69 |
+
- `hf discussions close REPO_ID NUM` — Close a discussion or pull request. `[--comment TEXT --yes --type CHOICE]`
|
| 70 |
+
- `hf discussions comment REPO_ID NUM` — Comment on a discussion or pull request. `[--body TEXT --body-file PATH --type CHOICE]`
|
| 71 |
+
- `hf discussions create REPO_ID --title TEXT` — Create a new discussion or pull request on a repo. `[--body TEXT --body-file PATH --pull-request --type CHOICE]`
|
| 72 |
+
- `hf discussions diff REPO_ID NUM` — Show the diff of a pull request. `[--type CHOICE]`
|
| 73 |
+
- `hf discussions info REPO_ID NUM` — Get info about a discussion or pull request. `[--comments --diff --no-color --type CHOICE --format CHOICE]`
|
| 74 |
+
- `hf discussions list REPO_ID` — List discussions and pull requests on a repo. `[--status CHOICE --kind CHOICE --author TEXT --limit INTEGER --type CHOICE --format CHOICE --quiet]`
|
| 75 |
+
- `hf discussions merge REPO_ID NUM` — Merge a pull request. `[--comment TEXT --yes --type CHOICE]`
|
| 76 |
+
- `hf discussions rename REPO_ID NUM NEW_TITLE` — Rename a discussion or pull request. `[--type CHOICE]`
|
| 77 |
+
- `hf discussions reopen REPO_ID NUM` — Reopen a closed discussion or pull request. `[--comment TEXT --yes --type CHOICE]`
|
| 78 |
+
|
| 79 |
+
### `hf endpoints` — Manage Hugging Face Inference Endpoints.
|
| 80 |
+
|
| 81 |
+
- `hf endpoints catalog deploy --repo TEXT` — Deploy an Inference Endpoint from the Model Catalog. `[--name TEXT --accelerator TEXT --namespace TEXT]`
|
| 82 |
+
- `hf endpoints catalog list` — List available Catalog models.
|
| 83 |
+
- `hf endpoints delete NAME` — Delete an Inference Endpoint permanently. `[--namespace TEXT --yes]`
|
| 84 |
+
- `hf endpoints deploy NAME --repo TEXT --framework TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --region TEXT --vendor TEXT` — Deploy an Inference Endpoint from a Hub repository. `[--namespace TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]`
|
| 85 |
+
- `hf endpoints describe NAME` — Get information about an existing endpoint. `[--namespace TEXT]`
|
| 86 |
+
- `hf endpoints list` — Lists all Inference Endpoints for the given namespace. `[--namespace TEXT --format CHOICE --quiet]`
|
| 87 |
+
- `hf endpoints pause NAME` — Pause an Inference Endpoint. `[--namespace TEXT]`
|
| 88 |
+
- `hf endpoints resume NAME` — Resume an Inference Endpoint. `[--namespace TEXT --fail-if-already-running]`
|
| 89 |
+
- `hf endpoints scale-to-zero NAME` — Scale an Inference Endpoint to zero. `[--namespace TEXT]`
|
| 90 |
+
- `hf endpoints update NAME` — Update an existing endpoint. `[--namespace TEXT --repo TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --framework TEXT --revision TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]`
|
| 91 |
+
|
| 92 |
+
### `hf extensions` — Manage hf CLI extensions.
|
| 93 |
+
|
| 94 |
+
- `hf extensions exec NAME` — Execute an installed extension.
|
| 95 |
+
- `hf extensions install REPO_ID` — Install an extension from a public GitHub repository. `[--force]`
|
| 96 |
+
- `hf extensions list` — List installed extension commands. `[--format CHOICE --quiet]`
|
| 97 |
+
- `hf extensions remove NAME` — Remove an installed extension.
|
| 98 |
+
- `hf extensions search` — Search extensions available on GitHub (tagged with 'hf-extension' topic). `[--format CHOICE --quiet]`
|
| 99 |
+
|
| 100 |
+
### `hf jobs` — Run and manage Jobs on the Hub.
|
| 101 |
+
|
| 102 |
+
- `hf jobs cancel JOB_ID` — Cancel a Job `[--namespace TEXT]`
|
| 103 |
+
- `hf jobs hardware` — List available hardware options for Jobs
|
| 104 |
+
- `hf jobs inspect JOB_IDS` — Display detailed information on one or more Jobs `[--namespace TEXT]`
|
| 105 |
+
- `hf jobs logs JOB_ID` — Fetch the logs of a Job. `[--follow --tail INTEGER --namespace TEXT]`
|
| 106 |
+
- `hf jobs ps` — List Jobs. `[--all --namespace TEXT --filter TEXT --format TEXT --quiet]`
|
| 107 |
+
- `hf jobs run IMAGE COMMAND` — Run a Job. `[--env TEXT --secrets TEXT --label TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --detach --namespace TEXT]`
|
| 108 |
+
- `hf jobs scheduled delete SCHEDULED_JOB_ID` — Delete a scheduled Job. `[--namespace TEXT]`
|
| 109 |
+
- `hf jobs scheduled inspect SCHEDULED_JOB_IDS` — Display detailed information on one or more scheduled Jobs `[--namespace TEXT]`
|
| 110 |
+
- `hf jobs scheduled ps` — List scheduled Jobs `[--all --namespace TEXT --filter TEXT --format TEXT --quiet]`
|
| 111 |
+
- `hf jobs scheduled resume SCHEDULED_JOB_ID` — Resume (unpause) a scheduled Job. `[--namespace TEXT]`
|
| 112 |
+
- `hf jobs scheduled run SCHEDULE IMAGE COMMAND` — Schedule a Job. `[--suspend --concurrency --env TEXT --secrets TEXT --label TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --namespace TEXT]`
|
| 113 |
+
- `hf jobs scheduled suspend SCHEDULED_JOB_ID` — Suspend (pause) a scheduled Job. `[--namespace TEXT]`
|
| 114 |
+
- `hf jobs scheduled uv run SCHEDULE SCRIPT` — Run a UV script (local file or URL) on HF infrastructure `[--suspend --concurrency --image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --namespace TEXT --with TEXT --python TEXT]`
|
| 115 |
+
- `hf jobs stats` — Fetch the resource usage statistics and metrics of Jobs `[--namespace TEXT]`
|
| 116 |
+
- `hf jobs uv run SCRIPT` — Run a UV script (local file or URL) on HF infrastructure `[--image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --detach --namespace TEXT --with TEXT --python TEXT]`
|
| 117 |
+
|
| 118 |
+
### `hf models` — Interact with models on the Hub.
|
| 119 |
+
|
| 120 |
+
- `hf models info MODEL_ID` — Get info about a model on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`
|
| 121 |
+
- `hf models list` — List models on the Hub. `[--search TEXT --author TEXT --filter TEXT --num-parameters TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]`
|
| 122 |
+
|
| 123 |
+
### `hf papers` — Interact with papers on the Hub.
|
| 124 |
+
|
| 125 |
+
- `hf papers list` — List daily papers on the Hub. `[--date TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]`
|
| 126 |
+
|
| 127 |
+
### `hf repos` — Manage repos on the Hub.
|
| 128 |
+
|
| 129 |
+
- `hf repos branch create REPO_ID BRANCH` — Create a new branch for a repo on the Hub. `[--revision TEXT --type CHOICE --exist-ok]`
|
| 130 |
+
- `hf repos branch delete REPO_ID BRANCH` — Delete a branch from a repo on the Hub. `[--type CHOICE]`
|
| 131 |
+
- `hf repos create REPO_ID` — Create a new repo on the Hub. `[--type CHOICE --space-sdk TEXT --private --exist-ok --resource-group-id TEXT]`
|
| 132 |
+
- `hf repos delete REPO_ID` — Delete a repo from the Hub. This is an irreversible operation. `[--type CHOICE --missing-ok]`
|
| 133 |
+
- `hf repos delete-files REPO_ID PATTERNS` — Delete files from a repo on the Hub. `[--type CHOICE --revision TEXT --commit-message TEXT --commit-description TEXT --create-pr]`
|
| 134 |
+
- `hf repos duplicate FROM_ID` — Duplicate a repo on the Hub (model, dataset, or Space). `[--type CHOICE --private --exist-ok]`
|
| 135 |
+
- `hf repos move FROM_ID TO_ID` — Move a repository from a namespace to another namespace. `[--type CHOICE]`
|
| 136 |
+
- `hf repos settings REPO_ID` — Update the settings of a repository. `[--gated CHOICE --private --type CHOICE]`
|
| 137 |
+
- `hf repos tag create REPO_ID TAG` — Create a tag for a repo. `[--message TEXT --revision TEXT --type CHOICE]`
|
| 138 |
+
- `hf repos tag delete REPO_ID TAG` — Delete a tag for a repo. `[--yes --type CHOICE]`
|
| 139 |
+
- `hf repos tag list REPO_ID` — List tags for a repo. `[--type CHOICE]`
|
| 140 |
+
|
| 141 |
+
### `hf skills` — Manage skills for AI assistants.
|
| 142 |
+
|
| 143 |
+
- `hf skills add` — Download a skill and install it for an AI assistant. `[--claude --codex --cursor --opencode --global --dest PATH --force]`
|
| 144 |
+
- `hf skills preview` — Print the generated SKILL.md to stdout.
|
| 145 |
+
|
| 146 |
+
### `hf spaces` — Interact with spaces on the Hub.
|
| 147 |
+
|
| 148 |
+
- `hf spaces dev-mode SPACE_ID` — Enable or disable dev mode on a Space. `[--stop]`
|
| 149 |
+
- `hf spaces hot-reload SPACE_ID` — Hot-reload any Python file of a Space without a full rebuild + restart. `[--local-file TEXT --skip-checks --skip-summary]`
|
| 150 |
+
- `hf spaces info SPACE_ID` — Get info about a space on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`
|
| 151 |
+
- `hf spaces list` — List spaces on the Hub. `[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]`
|
| 152 |
+
|
| 153 |
+
### `hf webhooks` — Manage webhooks on the Hub.
|
| 154 |
+
|
| 155 |
+
- `hf webhooks create --watch TEXT` — Create a new webhook. `[--url TEXT --job-id TEXT --domain CHOICE --secret TEXT]`
|
| 156 |
+
- `hf webhooks delete WEBHOOK_ID` — Delete a webhook permanently. `[--yes]`
|
| 157 |
+
- `hf webhooks disable WEBHOOK_ID` — Disable an active webhook.
|
| 158 |
+
- `hf webhooks enable WEBHOOK_ID` — Enable a disabled webhook.
|
| 159 |
+
- `hf webhooks info WEBHOOK_ID` — Show full details for a single webhook as JSON.
|
| 160 |
+
- `hf webhooks list` — List all webhooks for the current user. `[--format CHOICE --quiet]`
|
| 161 |
+
- `hf webhooks update WEBHOOK_ID` — Update an existing webhook. Only provided options are changed. `[--url TEXT --watch TEXT --domain CHOICE --secret TEXT]`
|
| 162 |
+
|
| 163 |
+
## Common options
|
| 164 |
+
|
| 165 |
+
- `--format` — Output format: `--format json` (or `--json`) or `--format table` (default).
|
| 166 |
+
- `-q / --quiet` — Minimal output.
|
| 167 |
+
- `--revision` — Git revision id which can be a branch name, a tag, or a commit hash.
|
| 168 |
+
- `--token` — Use a User Access Token. Prefer setting `HF_TOKEN` env var instead of passing `--token`.
|
| 169 |
+
- `--type` — The type of repository (model, dataset, or space).
|
| 170 |
+
|
| 171 |
+
## Tips
|
| 172 |
+
|
| 173 |
+
- Use `hf <command> --help` for full options, descriptions, usage, and real-world examples
|
| 174 |
+
- Authenticate with `HF_TOKEN` env var (recommended) or with `--token`
|
.gitattributes
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
ADDED
|
File without changes
|
grippers/franka_panda/.thumbs/256x256/franka_panda.usd.png
ADDED
|
|
grippers/franka_panda/.thumbs/256x256/instanceable_meshes.usd.png
ADDED
|
|
grippers/franka_panda/controller_info.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"close_dir": [-1, -1],
|
| 3 |
+
"transfer_close_dir": [-2,-2],
|
| 4 |
+
"opened_dofs": [0.04, 0.04],
|
| 5 |
+
"palm_pose": [0, 0, -0.066, 1, 0, 0, 0]
|
| 6 |
+
}
|
grippers/franka_panda/franka_panda.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9014e8759b7354c3bd7b5fdb4569fb62349a3ac223f900a6ee5ecfa6e626a7f5
|
| 3 |
+
size 770169
|
grippers/franka_panda/gripper_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"EF_axis": 3,
|
| 3 |
+
"physics_frequency": 240,
|
| 4 |
+
"contact_names": ["panda_hand", "panda_leftfinger", "panda_rightfinger"],
|
| 5 |
+
"contact_th":2,
|
| 6 |
+
"opened_dofs": [0.04, 0.04],
|
| 7 |
+
"palm_pose": [0, 0, -0.066, 1, 0, 0, 0]
|
| 8 |
+
}
|
grippers/franka_panda/instanceable_meshes.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef87768981cd2f943d5b092321830b558bc728b8247d3b13569962aa6c2e4c4b
|
| 3 |
+
size 1515739
|
grippers/franka_panda/materials/colors.png
ADDED
|
objects/00616c9c-da96-42d6-8f84-4f2d7e94f267/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6da4ec51d6f96c251b2095e76a5cbd358c43aa387716e6c3919435566cd0fc0
|
| 3 |
+
size 5841794
|
objects/00aff23a-2075-44d5-a4eb-da6d5998a409/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cdaba07a933896928a045c5bffa6735e446c97cbff584e4f990ad3727e05356a
|
| 3 |
+
size 2820644
|
objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_diffuse.png
ADDED
|
Git LFS Details
|
objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_metallic-texture_roughness.png
ADDED
|
Git LFS Details
|
objects/00aff23a-2075-44d5-a4eb-da6d5998a409/textures/texture_normal.png
ADDED
|
Git LFS Details
|
objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ea352567a36f4cefcab4d9774398bdc074f54dd6034c9c4aa73ee547d2da8f3
|
| 3 |
+
size 1446615
|
objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_0.png
ADDED
|
Git LFS Details
|
objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_1.png
ADDED
|
Git LFS Details
|
objects/00bbcdaf-fd7e-42bb-b17a-48ab081971f0/textures/Image_2.png
ADDED
|
Git LFS Details
|
objects/00da075b-1fec-4ca0-9ef5-9a8b6d004105/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:434fe6166e6dfcd0a8307eac406ee6431474934d0b2926228baa79fc630b7e9c
|
| 3 |
+
size 460763
|
objects/00da075b-1fec-4ca0-9ef5-9a8b6d004105/textures/T_j_cups_BC001.png
ADDED
|
objects/00e0cb65-d493-4123-8352-042b3c890d20/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32fe16d168f0402d7300d43a4fc35a5a66799d3e5d62bb1fb4ef4e91bb329970
|
| 3 |
+
size 4744881
|
objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_diffuse.png
ADDED
|
Git LFS Details
|
objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_metallic-texture_roughness.png
ADDED
|
Git LFS Details
|
objects/00e0cb65-d493-4123-8352-042b3c890d20/textures/texture_normal.png
ADDED
|
Git LFS Details
|
objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc58bd861f212141499b8fcfb9b0d7e34ae03ac6fc50fb31f28095623c17369a
|
| 3 |
+
size 4360897
|
objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_diffuse.png
ADDED
|
Git LFS Details
|
objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_metallic-texture_roughness.png
ADDED
|
Git LFS Details
|
objects/00f4a665-4877-4d95-ab14-5d4e6a0b1c3d/textures/texture_normal.png
ADDED
|
Git LFS Details
|
objects/01237be2-356a-4a66-8084-337fba056eb3/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e05221f00137f848a8bf2b2e6952b45b1f1c9577a7e7a0b1751785014e85ed4
|
| 3 |
+
size 1360541
|
objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_0.png
ADDED
|
Git LFS Details
|
objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_1.png
ADDED
|
Git LFS Details
|
objects/01237be2-356a-4a66-8084-337fba056eb3/textures/Image_2.png
ADDED
|
Git LFS Details
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/.asset_hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
2b221566543bcbfada3ddae3030f84fd
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/config.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
asset_path: /home/cedric/Research/IsaacLab/test/isaac/unprocesses/xml/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/libero_living_room_table.xml
|
| 2 |
+
usd_dir: /home/cedric/Research/IsaacLab/test/isaac/processes/xml/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52
|
| 3 |
+
usd_file_name: libero_living_room_table.usd
|
| 4 |
+
force_usd_conversion: true
|
| 5 |
+
make_instanceable: true
|
| 6 |
+
import_inertia_tensor: true
|
| 7 |
+
fix_base: false
|
| 8 |
+
import_sites: true
|
| 9 |
+
self_collision: false
|
| 10 |
+
link_density: 0.0
|
| 11 |
+
##
|
| 12 |
+
# Generated by MjcfConverter on 2025-12-16 at 21:06:42.
|
| 13 |
+
##
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_base.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c034c3fb985868e5f4e2912ec77ab35b6614d91324182c724f1a7e6df6369363
|
| 3 |
+
size 755257
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_physics.usd
ADDED
|
Binary file (2.76 kB). View file
|
|
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_robot.usd
ADDED
|
Binary file (1.45 kB). View file
|
|
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/libero_living_room_table_sensor.usd
ADDED
|
Binary file (664 Bytes). View file
|
|
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/configuration/materials/living_room_table_texture.png
ADDED
|
Git LFS Details
|
objects/015f2c7f-ad68-4a1b-8f79-3295ad4c6e52/object.usd
ADDED
|
Binary file (6.8 kB). View file
|
|
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/Isaac Sim 4.5/isaac-sim-assets/Materials/2023_2_1/Base/Glass/Clear_Glass.mdl
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.3;
|
| 2 |
+
|
| 3 |
+
import ::OmniGlass::OmniGlass;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Clear_Glass(*)
|
| 8 |
+
= OmniGlass::OmniGlass(
|
| 9 |
+
absorption_coeff: color(1.f, 1.f, 1.f),
|
| 10 |
+
glass_color: color(1.f, 1.f, 1.f),
|
| 11 |
+
use_glass_color_texture: false,
|
| 12 |
+
glass_color_texture: texture_2d(),
|
| 13 |
+
frosting_roughness: 0.f,
|
| 14 |
+
glass_ior: 1.52f,
|
| 15 |
+
thin_walled: true,
|
| 16 |
+
project_uvw: false,
|
| 17 |
+
world_or_object: false,
|
| 18 |
+
uv_space_index: 0,
|
| 19 |
+
texture_translate: float2(0.f),
|
| 20 |
+
texture_rotate: 0.f,
|
| 21 |
+
texture_scale: float2(1.f));
|
| 22 |
+
|
| 23 |
+
/*
|
| 24 |
+
mdl 1.5;
|
| 25 |
+
|
| 26 |
+
import ::Library::AEC::Materials::Templates::GlassWithVolume::GlassWithVolume;
|
| 27 |
+
import ::tex::gamma_mode;
|
| 28 |
+
import ::state::normal;
|
| 29 |
+
|
| 30 |
+
export material Clear_Glass(*)
|
| 31 |
+
= ::Library::AEC::Materials::Templates::GlassWithVolume::GlassWithVolume(
|
| 32 |
+
thin_walled: true,
|
| 33 |
+
transmission_color: color(1.f, 1.f, 1.f),
|
| 34 |
+
roughness_texture: texture_2d(),
|
| 35 |
+
ior: 1.52f,
|
| 36 |
+
transmission_color_texture: texture_2d(),
|
| 37 |
+
roughness_texture_influence: 0.f,
|
| 38 |
+
roughness: 0.f,
|
| 39 |
+
reflection_color_texture: texture_2d(),
|
| 40 |
+
reflection_color: color(1.f, 1.f, 1.f),
|
| 41 |
+
depth: 0.0001f,
|
| 42 |
+
normal_map_texture: texture_2d());
|
| 43 |
+
*/
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/object.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b71198a20bcaa0791a02fa9894ee58f4d655bfbc91d13002872f5c743f00517
|
| 3 |
+
size 401086
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/extensions.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
| 3 |
+
// for the documentation about the extensions.json format
|
| 4 |
+
"recommendations": [
|
| 5 |
+
"ms-python.python",
|
| 6 |
+
"ms-python.vscode-pylance"
|
| 7 |
+
],
|
| 8 |
+
}
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/launch.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
// Use IntelliSense to learn about possible attributes.
|
| 3 |
+
// Hover to view descriptions of existing attributes.
|
| 4 |
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
| 5 |
+
"version": "0.2.0",
|
| 6 |
+
"configurations": [
|
| 7 |
+
{
|
| 8 |
+
"name": "Python: Attach (windows-x86_64/linux-x86_64)",
|
| 9 |
+
"type": "python",
|
| 10 |
+
"request": "attach",
|
| 11 |
+
"pathMappings": [
|
| 12 |
+
{
|
| 13 |
+
"localRoot": "${workspaceFolder}",
|
| 14 |
+
"remoteRoot": "${workspaceFolder}"
|
| 15 |
+
}],
|
| 16 |
+
"port": 3000,
|
| 17 |
+
"host": "127.0.0.1",
|
| 18 |
+
"subProcess": true,
|
| 19 |
+
"runtimeArgs": [
|
| 20 |
+
"--preserve-symlinks",
|
| 21 |
+
"--preserve-symlinks-main"
|
| 22 |
+
]
|
| 23 |
+
}
|
| 24 |
+
]
|
| 25 |
+
}
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/.vscode/settings.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"editor.rulers": [120],
|
| 3 |
+
"python.languageServer": "Pylance",
|
| 4 |
+
"python.formatting.provider": "black",
|
| 5 |
+
"python.formatting.blackArgs": ["--line-length", "120"],
|
| 6 |
+
"python.linting.enabled": true,
|
| 7 |
+
"python.linting.pylintEnabled": false,
|
| 8 |
+
"python.linting.flake8Enabled": true,
|
| 9 |
+
"python.linting.flake8Args": ["--max-line-length=120"]
|
| 10 |
+
}
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/cabinet_control.py
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import carb
|
| 2 |
+
from omni.kit.scripting import BehaviorScript
|
| 3 |
+
from omni.isaac.dynamic_control import _dynamic_control
|
| 4 |
+
from enum import Enum
|
| 5 |
+
from pxr import Gf
|
| 6 |
+
from threading import Thread
|
| 7 |
+
import marshal,json
|
| 8 |
+
import omni.kit.commands
|
| 9 |
+
from omni.isaac.core.prims import XFormPrim
|
| 10 |
+
import numpy as np
|
| 11 |
+
from pxr import Gf, Sdf, Usd, UsdGeom
|
| 12 |
+
from omni.isaac.core import SimulationContext, World
|
| 13 |
+
import math
|
| 14 |
+
from omni.replicator.core import utils
|
| 15 |
+
from pxr import PhysxSchema, UsdGeom, UsdPhysics
|
| 16 |
+
import math
|
| 17 |
+
# import nvidia.srl.usd.prim_helper as prim_helper
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def find_prim_path_by_name(prim_name: str, root_path: str = "/") -> str:
|
| 22 |
+
"""Recursively find the full path by Prim name"""
|
| 23 |
+
stage = omni.usd.get_context().get_stage()
|
| 24 |
+
prim = stage.GetPrimAtPath(root_path)
|
| 25 |
+
|
| 26 |
+
def _find_prim(prim):
|
| 27 |
+
if prim.GetName() == prim_name:
|
| 28 |
+
return prim.GetPath().pathString
|
| 29 |
+
for child in prim.GetChildren():
|
| 30 |
+
result = _find_prim(child)
|
| 31 |
+
if result:
|
| 32 |
+
return result
|
| 33 |
+
return None
|
| 34 |
+
|
| 35 |
+
found_path = _find_prim(prim)
|
| 36 |
+
if not found_path:
|
| 37 |
+
raise RuntimeError(f"Prim '{prim_name}' not found under {root_path}")
|
| 38 |
+
return found_path
|
| 39 |
+
|
| 40 |
+
def calculate_stiffness(joint_state, joint_limit):
|
| 41 |
+
"""Calculate stiffness value based on joint angle
|
| 42 |
+
|
| 43 |
+
Args:
|
| 44 |
+
joint_state (float): Joint angle (radians)
|
| 45 |
+
joint_limit (float): Joint limit value
|
| 46 |
+
|
| 47 |
+
Returns:
|
| 48 |
+
float: Stiffness value
|
| 49 |
+
"""
|
| 50 |
+
max_stiffness = 30
|
| 51 |
+
min_stiffness = 2
|
| 52 |
+
decay_rate = 3
|
| 53 |
+
# threshold = math.radians(20)
|
| 54 |
+
# threshold = 0.3 * joint_limit
|
| 55 |
+
threshold = -0.1
|
| 56 |
+
if joint_state < threshold:
|
| 57 |
+
return min_stiffness
|
| 58 |
+
stiffness = max_stiffness * math.exp(-decay_rate * abs(joint_state))
|
| 59 |
+
return max(min_stiffness, min(stiffness, max_stiffness))
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
# 1. Articulation Root prim
|
| 63 |
+
root_articulation_prim = find_prim_path_by_name("E_body_3")
|
| 64 |
+
|
| 65 |
+
# 2. Joint names
|
| 66 |
+
joint_names = ["PrismaticJoint_cabinet_6_down" ]
|
| 67 |
+
#joint1_prim = find_prim_path_by_name(joint_names[0])
|
| 68 |
+
#joint2_prim = find_prim_path_by_name(joint_names[1])
|
| 69 |
+
stage = omni.usd.get_context().get_stage()
|
| 70 |
+
joints_info = {}
|
| 71 |
+
|
| 72 |
+
# 3. Joint information
|
| 73 |
+
for joint_name in joint_names:
|
| 74 |
+
joint_prim_path = find_prim_path_by_name(joint_name)
|
| 75 |
+
joint_prim_obj = stage.GetPrimAtPath(joint_prim_path)
|
| 76 |
+
joint = UsdPhysics.PrismaticJoint(joint_prim_obj)
|
| 77 |
+
|
| 78 |
+
joints_info[joint_name] = {
|
| 79 |
+
'prim': joint,
|
| 80 |
+
'lower_limit': joint.GetLowerLimitAttr().Get(),
|
| 81 |
+
'upper_limit': joint.GetUpperLimitAttr().Get()
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
# joint1_lower_limit = joints_info[joint_names[0]]['lower_limit']
|
| 85 |
+
# joint1_upper_limit = joints_info[joint_names[0]]['upper_limit']
|
| 86 |
+
# joint2_lower_limit = joints_info[joint_names[1]]['lower_limit']
|
| 87 |
+
# joint2_upper_limit = joints_info[joint_names[1]]['upper_limit']
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
# 4. Joint limits and limit differences
|
| 91 |
+
joint_limits = {}
|
| 92 |
+
joint_limit_diffs = {}
|
| 93 |
+
|
| 94 |
+
for i, joint_name in enumerate(joint_names):
|
| 95 |
+
joint_limits[joint_name] = {
|
| 96 |
+
'lower': joints_info[joint_name]['lower_limit'],
|
| 97 |
+
'upper': joints_info[joint_name]['upper_limit']
|
| 98 |
+
}
|
| 99 |
+
joint_limit_diffs[joint_name] = (
|
| 100 |
+
joints_info[joint_name]['upper_limit'] - joints_info[joint_name]['lower_limit']
|
| 101 |
+
)
|
| 102 |
+
# joint_limit_diff1 = joint_limit_diffs[joint_names[0]]
|
| 103 |
+
# joint_limit_diff2 = joint_limit_diffs[joint_names[1]]
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
class DampingCabinet6Control(BehaviorScript):
|
| 107 |
+
def on_init(self):
|
| 108 |
+
self.phsx_freq = 120
|
| 109 |
+
self.joint_handles = []
|
| 110 |
+
self.dc = _dynamic_control.acquire_dynamic_control_interface()
|
| 111 |
+
# Find Root
|
| 112 |
+
self.art = self.dc.get_articulation(root_articulation_prim)
|
| 113 |
+
if self.art == _dynamic_control.INVALID_HANDLE:
|
| 114 |
+
print('the prim is not an articulation')
|
| 115 |
+
|
| 116 |
+
def on_destroy(self):
|
| 117 |
+
pass
|
| 118 |
+
|
| 119 |
+
def on_play(self):
|
| 120 |
+
# Initialize simulation context
|
| 121 |
+
self.simulation_context = SimulationContext(
|
| 122 |
+
stage_units_in_meters=1.0,
|
| 123 |
+
physics_dt=1.0/120,
|
| 124 |
+
rendering_dt=1.0/120
|
| 125 |
+
)
|
| 126 |
+
|
| 127 |
+
def on_pause(self):
|
| 128 |
+
pass
|
| 129 |
+
|
| 130 |
+
def on_stop(self):
|
| 131 |
+
self.init_start=True
|
| 132 |
+
pass
|
| 133 |
+
|
| 134 |
+
def on_update(self, current_time: float, delta_time: float):
|
| 135 |
+
if delta_time <= 0:
|
| 136 |
+
return
|
| 137 |
+
self.active_art()
|
| 138 |
+
self.apply_behavior()
|
| 139 |
+
|
| 140 |
+
def active_art(self):
|
| 141 |
+
# Find Root
|
| 142 |
+
self.art = self.dc.get_articulation(root_articulation_prim)
|
| 143 |
+
if self.art == _dynamic_control.INVALID_HANDLE:
|
| 144 |
+
print('the prim is not an articulation')
|
| 145 |
+
self.dc.wake_up_articulation(self.art)
|
| 146 |
+
|
| 147 |
+
# Find joint
|
| 148 |
+
self.joint_handles = []
|
| 149 |
+
for joint_name in joint_names:
|
| 150 |
+
self.joint_handles.append( self.dc.find_articulation_dof(self.art, joint_name))
|
| 151 |
+
|
| 152 |
+
def apply_behavior(self):
|
| 153 |
+
self.target_pose_control()
|
| 154 |
+
self.damping_stiffness_change()
|
| 155 |
+
|
| 156 |
+
def damping_stiffness_change(self):
|
| 157 |
+
stage = omni.usd.get_context().get_stage()
|
| 158 |
+
# Process all joints
|
| 159 |
+
for i, joint_name in enumerate(joint_names):
|
| 160 |
+
# Get joint state
|
| 161 |
+
joint_state = self.dc.get_dof_state(self.joint_handles[i], _dynamic_control.STATE_ALL).pos
|
| 162 |
+
# Get joint drive API
|
| 163 |
+
joint_drive_path = stage.GetPrimAtPath(find_prim_path_by_name(joint_name))
|
| 164 |
+
joint_drive = UsdPhysics.DriveAPI.Get(joint_drive_path, "linear")
|
| 165 |
+
# Get joint limit difference and set stiffness
|
| 166 |
+
joint_limit_diff = joint_limit_diffs[joint_names[i]]
|
| 167 |
+
joint_drive.GetStiffnessAttr().Set(calculate_stiffness(joint_state, joint_limit_diff))
|
| 168 |
+
# stiffness = joint_drive.GetStiffnessAttr().Get()
|
| 169 |
+
# damping = joint_drive.GetDampingAttr().Get()
|
| 170 |
+
# print(f"{joint_name} - Stiffness: {stiffness}, Damping: {damping}")
|
| 171 |
+
|
| 172 |
+
def target_pose_control(self):
|
| 173 |
+
# Process all joints
|
| 174 |
+
for i, joint_handle in enumerate(self.joint_handles):
|
| 175 |
+
# Get joint state
|
| 176 |
+
joint_state = self.dc.get_dof_state(joint_handle, _dynamic_control.STATE_ALL).pos
|
| 177 |
+
# Get joint limit difference
|
| 178 |
+
joint_limit_diff = joint_limit_diffs[joint_names[i]]
|
| 179 |
+
# Set target position based on joint state
|
| 180 |
+
if joint_state > -0.1:
|
| 181 |
+
self.dc.set_dof_position_target(joint_handle, joints_info[joint_names[i]]['upper_limit'])
|
| 182 |
+
else:
|
| 183 |
+
self.dc.set_dof_position_target(joint_handle, joints_info[joint_names[i]]['lower_limit'])
|
| 184 |
+
|
| 185 |
+
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/img/2793a4a02bafe613e46589e794c532c3.png
ADDED
|
Git LFS Details
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/img/701dc4054f66ca81257e28a1d1a1a29e.png
ADDED
|
Git LFS Details
|
objects/019adad0-e6e3-756b-a4ef-d92e903c2a05/resource/material.usd
ADDED
|
Binary file (3.2 kB). View file
|
|
|