-
Notifications
You must be signed in to change notification settings - Fork 932
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
Fixes grid origins in TerrainImporter to match Isaac Sim cloner #300
Conversation
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Can you please also update the changelog and version in extension.toml of the affected extensions? Would it be possible to include a unit test as well to make sure if Isaac Sim changes behavior, we are up to speed with that. Thanks a lot! |
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Adds unit test that checks if the env_origins generated by the grid cloner of IsaacSim and that generated by TerrainImporter match. Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
…lict in changelog
Hi @Mayankm96 , |
Looks good. Thanks a lot! :) |
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Ah @shafeef901 can you please also update the extension.toml file with the version update? Thanks a lot for the test and the fix! |
Signed-off-by: Shafeef Omar <shafeef901@gmail.com>
Done! |
source/extensions/omni.isaac.orbit/omni/isaac/orbit/terrains/terrain_importer.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes #287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes #287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Thanks a lot for the MR. Merged with some small fixes to the test. Mainly, instead of |
The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes #287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes #287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
…c-sim#300) The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes isaac-sim#287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
…c-sim#300) The logic for grid cloning in Isaac Sim GridCloner (func: `get_clone_transforms()`) and in TerrainImporter.py (func: `_compute_env_origins_grid()`) are different. Consequently, they give inconsistent values. This PR fixes the TerrainImporter by updating the logic of `_compute_env_origins_grid()` to make it consistent with IsaacSim. Fixes isaac-sim#287 - Bug fix (non-breaking change which fixes an issue) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] 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 run all the tests with `./orbit.sh --test` and they pass - [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: Shafeef Omar <shafeef901@gmail.com> Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Description
The logic for grid cloning in grid_cloner.py (func:
get_clone_transforms()
) and in terrain_importer.py (func:_compute_env_origins_grid()
) are different, consequently they give inconsistent values. This PR fixes it by updating the logic of_compute_env_origins_grid()
to make it consistent with IsaacSim.Fixes #287
Type of change
Checklist
pre-commit
checks with./orbit.sh --format
./orbit.sh --test
and they passconfig/extension.toml
fileCONTRIBUTORS.md
or my name already exists there