Repository navigation
Fixes FrameTransformer to handle same body names at different hierarchy levels - #4168
Merged
Mayankm96 merged 9 commits intoJan 4, 2026
Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryFixes critical bug where Key changes:
Impact:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant FrameTransformerCfg
participant FrameTransformer
participant PhysicsView
participant BodyDict as body_names_to_frames Dict
User->>FrameTransformerCfg: Configure target frames<br/>(Robot/LF_SHANK, Robot_1/LF_SHANK)
User->>FrameTransformer: Initialize sensor
Note over FrameTransformer: _initialize_impl()
FrameTransformer->>FrameTransformer: Iterate through target frames
FrameTransformer->>FrameTransformer: Resolve prim path<br/>/World/envs/env_0/Robot/LF_SHANK
FrameTransformer->>FrameTransformer: Extract relative path using regex<br/>env_\d+/(.*)
Note over FrameTransformer: OLD: body_name = "LF_SHANK"<br/>NEW: body_name = "Robot/LF_SHANK"
FrameTransformer->>BodyDict: Store body_name → {frames, prim_path, type}
FrameTransformer->>FrameTransformer: Resolve prim path<br/>/World/envs/env_0/Robot_1/LF_SHANK
FrameTransformer->>FrameTransformer: Extract relative path<br/>env_\d+/(.*)
Note over FrameTransformer: OLD: body_name = "LF_SHANK" (COLLISION!)<br/>NEW: body_name = "Robot_1/LF_SHANK" (UNIQUE)
FrameTransformer->>BodyDict: Store body_name → {frames, prim_path, type}
Note over BodyDict: OLD: Only 1 entry (collision)<br/>NEW: 2 separate entries
FrameTransformer->>FrameTransformer: Build target frame body names list<br/>using _get_rel_path()
FrameTransformer->>PhysicsView: Create view with tracked_body_names<br/>["Robot/LF_SHANK", "Robot_1/LF_SHANK"]
Note over PhysicsView: Both bodies tracked separately
FrameTransformer->>User: Returns distinct transforms<br/>for each body
|
bikcrum
force-pushed
the
bugfix/frame-transformer-body-name
branch
3 times, most recently
from
December 13, 2025 21:04
231526e to
03def46
Compare
jtigue-bdai
reviewed
Dec 16, 2025
jtigue-bdai
left a comment
Collaborator
There was a problem hiding this comment.
Hey thanks for the feature. Some minor stuff with the test.
bikcrum
force-pushed
the
bugfix/frame-transformer-body-name
branch
from
December 18, 2025 06:52
2266636 to
b382b4d
Compare
jtigue-bdai
approved these changes
Dec 18, 2025
jtigue-bdai
left a comment
Collaborator
There was a problem hiding this comment.
NIT in the test, but thanks for the added functionality.
Mayankm96
reviewed
Dec 28, 2025
Mayankm96
reviewed
Dec 28, 2025
Mayankm96
reviewed
Dec 28, 2025
Mayankm96
requested changes
Dec 28, 2025
Mayankm96
left a comment
Contributor
There was a problem hiding this comment.
Thank you for this feature. Added some comments related to backwards compatibility and non-environment prim spaces.
bikcrum
force-pushed
the
bugfix/frame-transformer-body-name
branch
3 times, most recently
from
January 3, 2026 00:36
25692b1 to
ca60546
Compare
… hierarchical paths (e.g., Robot/LF_SHANK vs Robot_1/LF_SHANK) are tracked separately and return distinct transforms.
Co-authored-by: James Tigue <[email protected]> Signed-off-by: Bikram Pandit <[email protected]>
bikcrum
force-pushed
the
bugfix/frame-transformer-body-name
branch
from
January 4, 2026 12:18
ca60546 to
acbc939
Compare
Mayankm96
approved these changes
Jan 4, 2026
thiagolages
pushed a commit
to thiagolages/isaac-lab
that referenced
this pull request
Jan 6, 2026
…hy levels (isaac-sim#4168) # Description **Bug:** `FrameTransformer` uses only the body name (last component of the prim path) as the unique key to identify bodies. This causes target frames with the same body name but different hierarchical paths to collide, resulting in only one body being tracked. **Example:** When tracking both `Robot/left_hand` and `Robot_1/left_hand`: - Both resolve to `body_name = "left_hand"` - Only the first one registered gets tracked - Both `left_hand` and `left_hand_1` target frames return identical (incorrect) transforms **Use cases affected:** - Multi-robot scenarios (e.g., `Robot/left_hand` vs `Robot_1/left_hand`) - Single articulation with duplicate body names at different hierarchy levels (e.g., `arm/link` vs `leg/link`) **Fix:** Use the relative prim path (path after `env_X/`) as the unique body identifier instead of just the body name. For example: - `/World/envs/env_0/Robot/left_hand` -> key: `Robot/left_hand` - `/World/envs/env_0/Robot_1/left_hand` -> key: `Robot_1/left_hand` Fixes isaac-sim#4167 > Note: While users could work around this by creating separate FrameTransformer instances, this is not an acceptable solution because: > 1. The current behavior silently returns incorrect data without any warning > 2. The API contract (specifying explicit prim_paths) implies distinct bodies should be tracked > 3. The workaround adds unnecessary complexity and memory overhead ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots N/A - Internal data structure fix. No visual changes. ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] 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 --------- Signed-off-by: Bikram Pandit <[email protected]>
Edify0991
pushed a commit
to Edify0991/IsaacLab
that referenced
this pull request
Jan 14, 2026
…hy levels (isaac-sim#4168) # Description **Bug:** `FrameTransformer` uses only the body name (last component of the prim path) as the unique key to identify bodies. This causes target frames with the same body name but different hierarchical paths to collide, resulting in only one body being tracked. **Example:** When tracking both `Robot/left_hand` and `Robot_1/left_hand`: - Both resolve to `body_name = "left_hand"` - Only the first one registered gets tracked - Both `left_hand` and `left_hand_1` target frames return identical (incorrect) transforms **Use cases affected:** - Multi-robot scenarios (e.g., `Robot/left_hand` vs `Robot_1/left_hand`) - Single articulation with duplicate body names at different hierarchy levels (e.g., `arm/link` vs `leg/link`) **Fix:** Use the relative prim path (path after `env_X/`) as the unique body identifier instead of just the body name. For example: - `/World/envs/env_0/Robot/left_hand` -> key: `Robot/left_hand` - `/World/envs/env_0/Robot_1/left_hand` -> key: `Robot_1/left_hand` Fixes isaac-sim#4167 > Note: While users could work around this by creating separate FrameTransformer instances, this is not an acceptable solution because: > 1. The current behavior silently returns incorrect data without any warning > 2. The API contract (specifying explicit prim_paths) implies distinct bodies should be tracked > 3. The workaround adds unnecessary complexity and memory overhead ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots N/A - Internal data structure fix. No visual changes. ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] 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 --------- Signed-off-by: Bikram Pandit <[email protected]>
nitesh-subedi
pushed a commit
to nitesh-subedi/IsaacLab
that referenced
this pull request
Feb 5, 2026
…hy levels (isaac-sim#4168) # Description **Bug:** `FrameTransformer` uses only the body name (last component of the prim path) as the unique key to identify bodies. This causes target frames with the same body name but different hierarchical paths to collide, resulting in only one body being tracked. **Example:** When tracking both `Robot/left_hand` and `Robot_1/left_hand`: - Both resolve to `body_name = "left_hand"` - Only the first one registered gets tracked - Both `left_hand` and `left_hand_1` target frames return identical (incorrect) transforms **Use cases affected:** - Multi-robot scenarios (e.g., `Robot/left_hand` vs `Robot_1/left_hand`) - Single articulation with duplicate body names at different hierarchy levels (e.g., `arm/link` vs `leg/link`) **Fix:** Use the relative prim path (path after `env_X/`) as the unique body identifier instead of just the body name. For example: - `/World/envs/env_0/Robot/left_hand` -> key: `Robot/left_hand` - `/World/envs/env_0/Robot_1/left_hand` -> key: `Robot_1/left_hand` Fixes isaac-sim#4167 > Note: While users could work around this by creating separate FrameTransformer instances, this is not an acceptable solution because: > 1. The current behavior silently returns incorrect data without any warning > 2. The API contract (specifying explicit prim_paths) implies distinct bodies should be tracked > 3. The workaround adds unnecessary complexity and memory overhead ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots N/A - Internal data structure fix. No visual changes. ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] 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 --------- Signed-off-by: Bikram Pandit <[email protected]>
csj-275
pushed a commit
to csj-275/IsaacLab
that referenced
this pull request
Jul 8, 2026
…hy levels (isaac-sim#4168) # Description **Bug:** `FrameTransformer` uses only the body name (last component of the prim path) as the unique key to identify bodies. This causes target frames with the same body name but different hierarchical paths to collide, resulting in only one body being tracked. **Example:** When tracking both `Robot/left_hand` and `Robot_1/left_hand`: - Both resolve to `body_name = "left_hand"` - Only the first one registered gets tracked - Both `left_hand` and `left_hand_1` target frames return identical (incorrect) transforms **Use cases affected:** - Multi-robot scenarios (e.g., `Robot/left_hand` vs `Robot_1/left_hand`) - Single articulation with duplicate body names at different hierarchy levels (e.g., `arm/link` vs `leg/link`) **Fix:** Use the relative prim path (path after `env_X/`) as the unique body identifier instead of just the body name. For example: - `/World/envs/env_0/Robot/left_hand` -> key: `Robot/left_hand` - `/World/envs/env_0/Robot_1/left_hand` -> key: `Robot_1/left_hand` Fixes isaac-sim#4167 > Note: While users could work around this by creating separate FrameTransformer instances, this is not an acceptable solution because: > 1. The current behavior silently returns incorrect data without any warning > 2. The API contract (specifying explicit prim_paths) implies distinct bodies should be tracked > 3. The workaround adds unnecessary complexity and memory overhead ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Screenshots N/A - Internal data structure fix. No visual changes. ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] 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 --------- Signed-off-by: Bikram Pandit <[email protected]>
2 of 6 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
Bug:
FrameTransformeruses only the body name (last component of the prim path) as the unique key to identify bodies. This causes target frames with the same body name but different hierarchical paths to collide, resulting in only one body being tracked.Example: When tracking both
Robot/left_handandRobot_1/left_hand:body_name = "left_hand"left_handandleft_hand_1target frames return identical (incorrect) transformsUse cases affected:
Robot/left_handvsRobot_1/left_hand)arm/linkvsleg/link)Fix: Use the relative prim path (path after
env_X/) as the unique body identifier instead of just the body name. For example:/World/envs/env_0/Robot/left_hand-> key:Robot/left_hand/World/envs/env_0/Robot_1/left_hand-> key:Robot_1/left_handFixes #4167
Type of change
Screenshots
N/A - Internal data structure fix. No visual changes.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there