Repository navigation
Fix replication bug to achieve skip - #6904
kellyguo11 merged 4 commits into
Conversation
Greptile SummaryThe PR changes sensor configurations to request no explicit cloning context by default, avoiding implicit USD replication in kitless runs while preserving automatic replication for spawned sensors under Kit and explicit overrides.
Confidence Score: 5/5The PR appears safe to merge, with the changed default matching the replication dispatch contract and focused tests covering the intended behavior. Spawned sensors continue to receive automatic USD replication when Kit is available, explicit overrides remain effective without Kit, and sensors that do not author prims no longer request an unnecessary USD context. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Queued sensor configuration] --> B{Explicit cloning contexts?}
B -->|Yes| C[Use explicit contexts]
B -->|No, empty tuple| D[Start with no contexts]
C --> E{Spawner present and Kit available?}
D --> E
E -->|Yes| F[Add USD replication context]
E -->|No| G[Keep selected contexts]
F --> H[Replicate queued mappings]
G --> H
Reviews (1): Last reviewed commit: "Fix replication bug to achieve skip" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The PR changes SensorBaseCfg.cloning_contexts from an explicit USD context to an empty tuple, allowing replicate() to add USD replication only for spawned sensors when Kit is available while preserving explicit kitless overrides. Documentation, changelog, and focused dispatch tests accompany the behavior change.
- Design and architecture: Context selection remains centralized in
replicate(): explicit contexts are always honored, while automaticUsdReplicateContextinsertion requires both a spawner and Kit. This removes the sensor-specific default that previously bypassed Kit availability. - API: The public default of
SensorBaseCfg.cloning_contextschanges from USD-only to no explicit context. The updated API documentation clearly describes the new automatic and explicit behavior, and existing callers can retain kitless USD replication by explicitly listingUsdReplicateContext. - Implementation: The queue-to-dispatch path, explicit-context resolution,
replicate_physics=Falsefiltering, and spawn-plus-Kit automatic insertion are consistent with the stated behavior. Tests cover the new sensor default and distinguish automatic Kit-gated replication from explicit kitless replication.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
# Description `rendering-correctness-kitless (legacy)` is red on `develop`: ``` RuntimeError: Number of camera prims in the view (1) does not match the number of environments (4). ``` Reverting #6904 to get the pipeline back to green. Then we will follow up with a fix. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [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 - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Important
Confirm the pull request base before submitting. Target
developfor allcontributions. The
release/3.0.0-beta2branch is a frozen stable landingsnapshot and is not used for ongoing maintenance.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there