Skip to content

Commit 26083c7

Browse files
authored
Imports the proper module for get_stage_id (#4087)
# Description An Isaac Sim import path changed in Isaac Lab which broke a fragile import in xr_anchor_utils. This change fixed the import. Fixes # (issue) ## 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 - [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
1 parent 4049aa8 commit 26083c7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

source/isaaclab/config/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
# Note: Semantic Versioning is used: https://semver.org/
4-
version = "0.48.6"
4+
version = "0.48.7"
55

66
# Description
77
title = "Isaac Lab framework for Robot Learning"

source/isaaclab/docs/CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
---------
33

4+
0.48.7 (2025-11-25)
5+
~~~~~~~~~~~~~~~~~~~
6+
7+
Changed
8+
^^^^^^^
9+
10+
* Changed import from ``isaaclab.sim.utils`` to ``isaaclab.sim.utils.stage`` to properly propagate the Isaac Sim stage context.
11+
412
0.48.6 (2025-11-18)
513
~~~~~~~~~~~~~~~~~~~
614

source/isaaclab/isaaclab/devices/openxr/xr_anchor_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
# import logger
1919
logger = logging.getLogger(__name__)
2020

21-
import isaaclab.sim as sim_utils
2221
from isaaclab.sim import SimulationContext
22+
from isaaclab.sim.utils.stage import get_current_stage_id
2323

2424
from .xr_cfg import XrAnchorRotationMode
2525

@@ -72,7 +72,7 @@ def sync_headset_to_anchor(self):
7272
if self._xr_cfg.anchor_prim_path is None:
7373
return
7474

75-
stage_id = sim_utils.get_current_stage_id()
75+
stage_id = get_current_stage_id()
7676
rt_stage = usdrt.Usd.Stage.Attach(stage_id)
7777
if rt_stage is None:
7878
return

0 commit comments

Comments
 (0)