Repository navigation
Fixes bug where num_envs is missing Newton model - #4086
Merged
Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryThis PR fixes a bug where the Newton model instance lacked access to Key Changes:
Analysis: Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant SC as SimulationContext
participant GC as GridCloner
participant NM as NewtonManager
participant Model as Newton Model
participant Viewer as NewtonViewerGL
Note over GC,NM: Environment Setup Phase
GC->>NM: Set _num_envs = num_clones
GC->>NM: set_builder(builder)
Note over SC,Model: Simulation Initialization
SC->>NM: start_simulation()
NM->>NM: finalize builder
NM->>Model: builder.finalize(device)
Model-->>NM: return model instance
NM->>Model: model.num_envs = _num_envs
Note right of Model: This line was added<br/>to expose num_envs
NM->>NM: create states and control
Note over NM,Viewer: Rendering Phase
NM->>Viewer: render()
Viewer->>Model: Access model.num_envs
Viewer->>Viewer: Display environment count in UI
|
ooctipus
force-pushed
the
fix_num_envs
branch
from
November 26, 2025 21:32
d7121fd to
69394d1
Compare
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 the bug where the Newton._model has no access to num_envs
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there