Skip to content

Removes storage of meshes inside the TerrainImporter class - #1987

Merged
kellyguo11 merged 11 commits into
mainfrom
fix/remove-warp-meshes-terrain
Mar 9, 2025
Merged

kellyguo11 merged 11 commits into
mainfrom
fix/remove-warp-meshes-terrain

Conversation

@Mayankm96

@Mayankm96 Mayankm96 commented Mar 2, 2025 •

Copy link
Copy Markdown
Contributor

Description

Sometimes users want to import a USD file which doesn't have any collider meshes. This MR allows having such USD files in the terrain importer for visualization purposes.

Additionally, the MR removes the storage of warp and tri-mesh based meshes inside the class. These are stored into the USD and are read directly from there whenever needed. Their intended use-case for having them inside the terrain class is not needed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change

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

@Mayankm96

Copy link
Copy Markdown
Contributor Author

@pascal-roth I was wondering : Since the Raycaster anyway parses over the mesh prims on its own, do we really need the terrain importer to store a copy of the mesh and warp mesh? It seems to consume unnecessary memory honestly.

@Mayankm96 Mayankm96 changed the title Avoids crashing of the imported USD does not have a collider mesh Avoids crashing of USD terrain import when prim has no mesh colliders Mar 2, 2025
@Mayankm96 Mayankm96 added the bug Something isn't working label Mar 2, 2025
@pascal-roth

Copy link
Copy Markdown
Collaborator

@pascal-roth I was wondering : Since the Raycaster anyway parses over the mesh prims on its own, do we really need the terrain importer to store a copy of the mesh and warp mesh? It seems to consume unnecessary memory honestly.

I don't believe so, would be in favor of removing them. Actually already removed that part in my code haha

@Mayankm96
Mayankm96 requested a review from jsmith-bdai as a code owner March 3, 2025 15:52
@Mayankm96 Mayankm96 changed the title Avoids crashing of USD terrain import when prim has no mesh colliders Removes storage of meshes inside the TerrainImporter class Mar 3, 2025
@kellyguo11

Copy link
Copy Markdown
Contributor

Looks like some tests are failing.

@Mayankm96

Copy link
Copy Markdown
Contributor Author

Fixed the test and modified changelog.

@kellyguo11
kellyguo11 merged commit 17fbff5 into main Mar 9, 2025
@kellyguo11
kellyguo11 deleted the fix/remove-warp-meshes-terrain branch March 9, 2025 05:47
jtigue-bdai pushed a commit that referenced this pull request Apr 14, 2025
# Description

Sometimes users want to import a USD file which doesn't have any
collider meshes. This MR allows having such USD files in the terrain
importer for visualization purposes.

Additionally, the MR removes the storage of warp and tri-mesh based
meshes inside the class. These are stored into the USD and are read
directly from there whenever needed. Their intended use-case for having
them inside the terrain class is not needed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change

## Checklist

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

---------

Signed-off-by: Mayank Mittal <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
ToxicNS pushed a commit to ToxicNS/IsaacLab that referenced this pull request Apr 24, 2025
…#1987)

# Description

Sometimes users want to import a USD file which doesn't have any
collider meshes. This MR allows having such USD files in the terrain
importer for visualization purposes.

Additionally, the MR removes the storage of warp and tri-mesh based
meshes inside the class. These are stored into the USD and are read
directly from there whenever needed. Their intended use-case for having
them inside the terrain class is not needed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change

## Checklist

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

---------

Signed-off-by: Mayank Mittal <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
LJones-alt pushed a commit to LJones-alt/IsaacLab-Laura that referenced this pull request Jul 1, 2026
…#1987)

# Description

Sometimes users want to import a USD file which doesn't have any
collider meshes. This MR allows having such USD files in the terrain
importer for visualization purposes.

Additionally, the MR removes the storage of warp and tri-mesh based
meshes inside the class. These are stored into the USD and are read
directly from there whenever needed. Their intended use-case for having
them inside the terrain class is not needed.

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change

## Checklist

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

---------

Signed-off-by: Mayank Mittal <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants