-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add support for spawning meshes from obj and stl files #2379
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
Open
han-xudong
wants to merge
11
commits into
isaac-sim:main
Choose a base branch
from
han-xudong:spawn_mesh_from_file
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+168
−4
Conversation
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
modified: source/isaaclab/isaaclab/sim/spawners/meshes/meshes.py modified: source/isaaclab/isaaclab/sim/spawners/meshes/meshes_cfg.py
…ports. Added corresponding changes to the documentation. Added tests that prove the function works. Updated contributors.
…IsaacLab into spawn_mesh_from_file
Mayankm96
reviewed
May 9, 2025
@@ -230,6 +230,43 @@ def spawn_mesh_cone( | |||
return prim_utils.get_prim_at_path(prim_path) | |||
|
|||
|
|||
@clone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm from original design, this spawning function should be inside the from_files.py
sub-module. Could you please move it there?
Moved `MeshFileCfg` to `from_files_cfg.py` # modified: source/isaaclab/isaaclab/sim/spawners/from_files/__init__.py # modified: source/isaaclab/isaaclab/sim/spawners/from_files/from_files.py # modified: source/isaaclab/isaaclab/sim/spawners/from_files/from_files_cfg.py # modified: source/isaaclab/isaaclab/sim/spawners/meshes/__init__.py # modified: source/isaaclab/isaaclab/sim/spawners/meshes/meshes.py # modified: source/isaaclab/isaaclab/sim/spawners/meshes/meshes_cfg.py
modified: source/isaaclab/isaaclab/sim/spawners/from_files/from_files.py modified: source/isaaclab/isaaclab/sim/spawners/from_files/from_files_cfg.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adding support for spawning meshes from OBJ or STL files since current version only supports basic geometries. The required dependency is
trimesh
which is already included.Fixes #2378
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there