Repository navigation
Refresh RTX sensors after visualizer resets - #9086
AntoineRichard wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (3). Other reviewed categories look good.
- PR description: The title and body match the four-file reset-refresh scope, reported CPU validation, and pending RTX validation; no measurable performance claim requires additional evidence.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The new test and local callbacks omit annotations required by the typing guidance; annotate known inputs and returns.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 3 inline findings.
Automated review; human maintainers own approval decisions.
| if len(manual_reset_ids) > 0: | ||
| index_fill_(self.reset_terminated, manual_reset_ids, True) | ||
| self._reset_idx(manual_reset_ids) | ||
| if ( |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Match adjacent rerender guard formatting
Both new guards split an expression that fits on one line beside the identical automatic-reset guard. Keep each guard on one line so the reset conditions remain directly comparable.
| torch.testing.assert_close(env._compute_observations()["policy"], policy) | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("env_type", [DirectRLEnv, ManagerBasedRLEnv]) |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Describe the expanded test scope
This row adds manager-based coverage to a module described as testing direct environments. Broaden the module docstring to describe both implementations.
|
|
||
| @pytest.mark.parametrize("env_type", [DirectRLEnv, ManagerBasedRLEnv]) | ||
| @pytest.mark.kitless | ||
| def test_ui_resets_rerender_before_observations_and_recording(env_type): |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Annotate the new test functions
The new test and its local callbacks omit parameter and return annotations required by the typing guidance. Annotate their known inputs and add return annotations.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (2). Other reviewed categories look good.
- PR description: The title and body match the four-file reset fix, explain recorder ordering, and distinguish reported CPU validation from pending RTX hardware validation; no measurable performance claim requires benchmarking.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The new test and callbacks lack signature annotations required by contribution guidance and demonstrated by the adjacent test; annotate their parameters and returns.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 2 inline findings.
Automated review; human maintainers own approval decisions.
| torch.testing.assert_close(env._compute_observations()["policy"], policy) | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("env_type", [DirectRLEnv, ManagerBasedRLEnv]) |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Update the module description
Adding a manager-based case makes the module docstring’s direct-only description inaccurate. Describe both environment implementations.
|
|
||
| @pytest.mark.parametrize("env_type", [DirectRLEnv, ManagerBasedRLEnv]) | ||
| @pytest.mark.kitless | ||
| def test_ui_resets_rerender_before_observations_and_recording(env_type): |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Annotate the new test callables
The test and its local callbacks omit parameter and return annotations, unlike the adjacent test and the type-hinting guidance. Annotate their signatures.
[Medium impact] The PR appears safe to merge; RTX hardware validation is still pending. SummaryRefreshes RTX sensor data after visualizer-requested resets in direct and manager-based RL environments.
No actionable issues found. RTX hardware validation remains pending, as noted in the PR. Reviews (1) · Last reviewed commit: "Refresh RTX sensors after visualizer res..." · Reviewed by Greptile |
Description
A reset requested from the visualizer can return an observation with camera data from before the reset. Automatic resets run the configured RTX rerenders, but environments reset by the visualizer miss that refresh.
Apply the same RTX rerender conditions after resetting the remaining environments in
DirectRLEnvandManagerBasedRLEnv. In manager-based environments, refresh the camera before the post-reset recorder hook as well as before the returned observation. The two reset phases still process disjoint environment IDs when a visualizer request coincides with automatic resets.Split from #8868.
Validation
Type of change
Checklist
pre-commitchecks withuv run isaaclab --formatCONTRIBUTORS.md