Skip to content

Conversation

@han-xudong
Copy link

@han-xudong han-xudong commented Apr 25, 2025

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

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

	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.
return prim_utils.get_prim_at_path(prim_path)


@clone
Copy link
Contributor

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
@han-xudong han-xudong closed this by deleting the head repository Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Add support for spawning meshes from obj and stl files

2 participants