-
Notifications
You must be signed in to change notification settings - Fork 5
Update MIRA tutorial to match up with new assets #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
56d2de6
update scripts
yiheng-wang-nv 117d1b1
remove extra the
yiheng-wang-nv b008392
update example fig
yiheng-wang-nv 3e7e8f4
increase fig in readme
yiheng-wang-nv 9cf5b91
Merge branch 'main' into update-mira-tutorial
mingxin-zheng 06b0a8a
Merge branch 'main' into update-mira-tutorial
mingxin-zheng e1d7eb4
Merge branch 'main' into update-mira-tutorial
mingxin-zheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
tutorials/assets/bring_your_own_robot/Virtual_Incision_MIRA/mira_configs.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
|
|
||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
|
|
||
| robot_usd_root = "/World/A5_GUI_MODEL/A5_GUI_MODEL_001" | ||
|
|
||
| left_arm_base = f"{robot_usd_root}/ASM_L654321" | ||
| lj_paths = [ | ||
| f"{left_arm_base}/LJ1/LJ1_joint", | ||
| f"{left_arm_base}/ASM_L65432/LJ2/LJ2_joint", | ||
| f"{left_arm_base}/ASM_L65432/ASM_L6543/LJ3/LJ3_joint", | ||
| f"{left_arm_base}/ASM_L65432/ASM_L6543/ASM_L654/LJ4/LJ4_joint", | ||
| f"{left_arm_base}/ASM_L65432/ASM_L6543/ASM_L654/ASM_L65/LJ5/LJ5_joint", | ||
| f"{left_arm_base}/ASM_L65432/ASM_L6543/ASM_L654/ASM_L65/ASM_L61/LJ6/LJ6_1_joint", | ||
| ] | ||
|
|
||
| right_arm_base = f"{robot_usd_root}/ASM_R654321" | ||
| rj_paths = [ | ||
| f"{right_arm_base}/RJ1/RJ1_joint", | ||
| f"{right_arm_base}/ASM_R65432/RJ2/RJ2_joint", | ||
| f"{right_arm_base}/ASM_R65432/ASM_R6543/RJ3/RJ3_joint", | ||
| f"{right_arm_base}/ASM_R65432/ASM_R6543/ASM_R654/RJ4/RJ4_joint", | ||
| f"{right_arm_base}/ASM_R65432/ASM_R6543/ASM_R654/ASM_R65/RJ5/RJ5_joint", | ||
| f"{right_arm_base}/ASM_R65432/ASM_R6543/ASM_R654/ASM_R65/ASM_R6/RJ6/RJ6_joint", | ||
| ] | ||
|
|
||
| camera_base = f"{robot_usd_root}/C_ASM_6543210" | ||
| camera_paths = [ | ||
| f"{camera_base}/C_ASM_654321", | ||
| f"{camera_base}/C_ASM_654321/C_ASM_65432", | ||
| f"{camera_base}/C_ASM_654321/C_ASM_65432/C_ASM_6543", | ||
| f"{camera_base}/C_ASM_654321/C_ASM_65432/C_ASM_6543/C_ASM_654", | ||
| f"{camera_base}/C_ASM_654321/C_ASM_65432/C_ASM_6543/C_ASM_654/C_ASM_65", | ||
| f"{camera_base}/C_ASM_654321/C_ASM_65432/C_ASM_6543/C_ASM_654/C_ASM_65/C_ASM_6", | ||
| ] | ||
| camera_prim_path = f"{camera_base}/C_ASM_654321/C_ASM_65432/C_ASM_6543/C_ASM_654/C_ASM_65/C_ASM_6/Camera_Tip/Camera" | ||
| max_camera_angle = 70 | ||
|
|
||
| key_map = { | ||
| "I": (0, 0.1), | ||
| "K": (0, -0.1), | ||
| "J": (1, 0.1), | ||
| "L": (1, -0.1), | ||
| "U": (2, 0.1), | ||
| "O": (2, -0.1), | ||
| # 3: wrist pitch | ||
| "Z": (3, 0.1), | ||
| "X": (3, -0.1), | ||
| # 4: wrist rotation | ||
| "C": ("rotation", 0.1), | ||
| "V": ("rotation", -0.1), | ||
| # 5: gripper | ||
| "B": ("grasp", 10.0), | ||
| "N": ("grasp", -10.0), | ||
| } | ||
|
|
||
| camera_key_map = { | ||
| "UP": (1, 1.0), | ||
| "DOWN": (1, -1.0), | ||
| "LEFT": (0, -1.0), | ||
| "RIGHT": (0, 1.0), | ||
| } | ||
|
|
||
| switch_key = "Y" | ||
| snapshot_key = "F12" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.