Repository navigation
Clears object names list on initialization of RigidObjectCollection - #4259
Merged
Merged
Conversation
tkgaolol
requested review from
Mayankm96,
jtigue-bdai and
kellyguo11
as code owners
December 19, 2025 06:39
2 tasks done
Mayankm96
approved these changes
Dec 28, 2025
Mayankm96
approved these changes
Dec 28, 2025
Mayankm96
left a comment
Contributor
There was a problem hiding this comment.
Thank you for the fix! Nice catch!
thiagolages
pushed a commit
to thiagolages/isaac-lab
that referenced
this pull request
Jan 6, 2026
…saac-sim#4259) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> This PR fixes a bug in RigidObjectCollection where _object_names_list accumulates duplicate entries when the simulation resets multiple times, leading to incorrect object counts. Fixes [# (4258)](isaac-sim#4258) **Problem:** When using workflows that trigger multiple simulation resets (e.g., `record_demos.py`), the `_initialize_impl()` method gets called multiple times without clearing the existing `_object_names_list`, causing duplicate object names to be appended. **Solution:** Added `self._object_names_list.clear()` at the beginning of `_initialize_impl()` to ensure the list is reset before repopulating it, making the initialization process idempotent. **Test Command:** ```bash python scripts/tools/record_demos.py --task Isaac-Stack-Cube-Instance-Randomize-Franka-IK-Rel-v0 --teleop_device keyboard ``` ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots <img width="1492" height="403" alt="image" src="https://github.com/user-attachments/assets/4402d016-85b3-43e6-8830-dcb862bcd8b7" /> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
Edify0991
pushed a commit
to Edify0991/IsaacLab
that referenced
this pull request
Jan 14, 2026
…saac-sim#4259) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> This PR fixes a bug in RigidObjectCollection where _object_names_list accumulates duplicate entries when the simulation resets multiple times, leading to incorrect object counts. Fixes [# (4258)](isaac-sim#4258) **Problem:** When using workflows that trigger multiple simulation resets (e.g., `record_demos.py`), the `_initialize_impl()` method gets called multiple times without clearing the existing `_object_names_list`, causing duplicate object names to be appended. **Solution:** Added `self._object_names_list.clear()` at the beginning of `_initialize_impl()` to ensure the list is reset before repopulating it, making the initialization process idempotent. **Test Command:** ```bash python scripts/tools/record_demos.py --task Isaac-Stack-Cube-Instance-Randomize-Franka-IK-Rel-v0 --teleop_device keyboard ``` ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots <img width="1492" height="403" alt="image" src="https://github.com/user-attachments/assets/4402d016-85b3-43e6-8830-dcb862bcd8b7" /> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
nitesh-subedi
pushed a commit
to nitesh-subedi/IsaacLab
that referenced
this pull request
Feb 5, 2026
…saac-sim#4259) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> This PR fixes a bug in RigidObjectCollection where _object_names_list accumulates duplicate entries when the simulation resets multiple times, leading to incorrect object counts. Fixes [# (4258)](isaac-sim#4258) **Problem:** When using workflows that trigger multiple simulation resets (e.g., `record_demos.py`), the `_initialize_impl()` method gets called multiple times without clearing the existing `_object_names_list`, causing duplicate object names to be appended. **Solution:** Added `self._object_names_list.clear()` at the beginning of `_initialize_impl()` to ensure the list is reset before repopulating it, making the initialization process idempotent. **Test Command:** ```bash python scripts/tools/record_demos.py --task Isaac-Stack-Cube-Instance-Randomize-Franka-IK-Rel-v0 --teleop_device keyboard ``` ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots <img width="1492" height="403" alt="image" src="https://github.com/user-attachments/assets/4402d016-85b3-43e6-8830-dcb862bcd8b7" /> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
csj-275
pushed a commit
to csj-275/IsaacLab
that referenced
this pull request
Jul 8, 2026
…saac-sim#4259) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> This PR fixes a bug in RigidObjectCollection where _object_names_list accumulates duplicate entries when the simulation resets multiple times, leading to incorrect object counts. Fixes [# (4258)](isaac-sim#4258) **Problem:** When using workflows that trigger multiple simulation resets (e.g., `record_demos.py`), the `_initialize_impl()` method gets called multiple times without clearing the existing `_object_names_list`, causing duplicate object names to be appended. **Solution:** Added `self._object_names_list.clear()` at the beginning of `_initialize_impl()` to ensure the list is reset before repopulating it, making the initialization process idempotent. **Test Command:** ```bash python scripts/tools/record_demos.py --task Isaac-Stack-Cube-Instance-Randomize-Franka-IK-Rel-v0 --teleop_device keyboard ``` ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Screenshots <img width="1492" height="403" alt="image" src="https://github.com/user-attachments/assets/4402d016-85b3-43e6-8830-dcb862bcd8b7" /> ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
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
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
This PR fixes a bug in RigidObjectCollection where _object_names_list accumulates duplicate entries when the simulation resets multiple times, leading to incorrect object counts.
Fixes # (4258)
Problem:
When using workflows that trigger multiple simulation resets (e.g.,
record_demos.py), the_initialize_impl()method gets called multiple times without clearing the existing_object_names_list, causing duplicate object names to be appended.Solution:
Added
self._object_names_list.clear()at the beginning of_initialize_impl()to ensure the list is reset before repopulating it, making the initialization process idempotent.Test Command:
Type of change
Screenshots
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there