Repository navigation
[NEWTON] Fixes more xyzw issues in core - #4416
Merged
Merged
Conversation
ooctipus
requested review from
Mayankm96,
jtigue-bdai,
kellyguo11 and
pascal-roth
as code owners
January 19, 2026 07:12
ooctipus
force-pushed
the
newton/fix_xyzw
branch
from
January 19, 2026 07:15
7fb1f3d to
50b47e3
Compare
Contributor
Greptile Summary
Important Files Changed
Confidence score: 4/5
Sequence DiagramsequenceDiagram
participant User
participant InteractiveScene
participant Cloner
participant AssetBase
participant XFormPrim
participant SimulationContext
User->>InteractiveScene: "__init__(cfg)"
InteractiveScene->>InteractiveScene: "_is_scene_setup_from_cfg()"
InteractiveScene->>InteractiveScene: "_add_entities_from_cfg()"
loop For each asset in config
InteractiveScene->>AssetBase: "spawn asset (if spawn config provided)"
AssetBase->>XFormPrim: "create prim at path"
XFormPrim-->>AssetBase: "prim created"
AssetBase-->>InteractiveScene: "asset spawned"
end
InteractiveScene->>InteractiveScene: "clone_environments()"
InteractiveScene->>Cloner: "clone_from_template()"
Cloner-->>InteractiveScene: "environments cloned"
InteractiveScene->>InteractiveScene: "filter_collisions()"
InteractiveScene->>Cloner: "filter_collisions()"
Cloner-->>InteractiveScene: "collisions filtered"
User->>InteractiveScene: "reset(env_ids)"
loop For each entity type
InteractiveScene->>AssetBase: "reset(env_ids)"
AssetBase-->>InteractiveScene: "reset complete"
end
User->>InteractiveScene: "update(dt)"
loop For each entity type
InteractiveScene->>AssetBase: "update(dt)"
AssetBase-->>InteractiveScene: "update complete"
end
User->>InteractiveScene: "write_data_to_sim()"
loop For each entity type
InteractiveScene->>AssetBase: "write_data_to_sim()"
AssetBase->>SimulationContext: "write data to simulation"
SimulationContext-->>AssetBase: "data written"
AssetBase-->>InteractiveScene: "write complete"
end
|
| @@ -610,14 +610,11 @@ def _add_entities_from_cfg(self): | |||
| elif isinstance(asset_cfg, AssetBaseCfg): | |||
| # manually spawn asset | |||
| if asset_cfg.spawn is not None: | |||
| # convert quaternion from xyzw (config) to wxyz (spawner expects) | |||
| rot = asset_cfg.init_state.rot | |||
| orientation_wxyz = (rot[3], rot[0], rot[1], rot[2]) | |||
| asset_cfg.spawn.func( | |||
Contributor
There was a problem hiding this comment.
style: Comment is now outdated - spawner no longer expects wxyz format
Suggested change
| asset_cfg.spawn.func( | |
| # spawn asset at specified pose |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
ooctipus
force-pushed
the
newton/fix_xyzw
branch
from
January 19, 2026 08:51
099d55c to
3dfbb32
Compare
ooctipus
force-pushed
the
newton/fix_xyzw
branch
from
January 19, 2026 08:55
3dfbb32 to
65648f3
Compare
Collaborator
Author
|
@greptile review again |
5 of 7 tasks
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 more wxyz -> xyzw found in dev/newton.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there