Skip to content

Commit 92f8930

Browse files
authored
Fixes reset of sensor drift inside the RayCaster sensor (#1821)
## Description The drift in raycaster didn't update when reset. This MR now updates it correctly: before: ```python self.drift[env_ids].uniform_(*self.cfg.drift_range) ``` now: ```python self.drift[env_ids] = self.drift[env_ids].uniform_(*self.cfg.drift_range) ``` Fixes #1820 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [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 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 62d1de9 commit 92f8930

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

source/isaaclab/config/extension.toml

+1-1
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.33.14"
4+
version = "0.33.15"
55

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

source/isaaclab/docs/CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
---------
33

4+
0.33.15 (2025-02-09)
5+
~~~~~~~~~~~~~~~~~~~~
6+
7+
Fixed
8+
^^^^^
9+
10+
* Fixed not updating the ``drift`` when calling :func:`~isaaclab.sensors.RayCaster.reset`
11+
12+
413
0.33.14 (2025-02-01)
514
~~~~~~~~~~~~~~~~~~~~
615

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def reset(self, env_ids: Sequence[int] | None = None):
110110
if env_ids is None:
111111
env_ids = slice(None)
112112
# resample the drift
113-
self.drift[env_ids].uniform_(*self.cfg.drift_range)
113+
self.drift[env_ids] = self.drift[env_ids].uniform_(*self.cfg.drift_range)
114114

115115
"""
116116
Implementation.

0 commit comments

Comments
 (0)