Skip to content

Updates to ray caster ray alignment and more customizable drift sampling - #2556

Merged
kellyguo11 merged 5 commits into
mainfrom
feature/ray_caster_updates_and_fixes
Jul 9, 2025
Merged

kellyguo11 merged 5 commits into
mainfrom
feature/ray_caster_updates_and_fixes

Conversation

@jsmith-bdai

@jsmith-bdai jsmith-bdai commented May 23, 2025 •

Copy link
Copy Markdown
Contributor

This PR pushes some changes from our internal RAI fork of Isaac Lab.

The 2 main changes are:

Adds a new ray_alignment parameter to replace the previous yaw_only arg.

Now the ray alignment can be aligned to world, yaw, or `base.

Improves drift height sampling

At the moment, the RayCasterCfg hosts a parameter called drift_range. It allows to randomize the position of the sensor in world frame, which comes with a couple of downsides:

  • If the projection is done along the gravity vector, the z-component drift term cannot be visualized (it is implicitly given in the pose, and added to the height scan in the observation term).
  • The perturbation is applied in world frame, i.e., if the ray cast is yaw aligned, then the drift varies with the yaw angle
  • The drift is applied to all (x,y,z) components equally

This PR adds a new parameter ray_cast_drift_range. It gives more freedom in choosing the drift ranges as x, y and z components can be treated separately. It also applies the drift after projecting and rotating the ray cast points, i.e. the drift is now invariant under the yaw angle and the drift in z is can be visualized

I've added Fabian Jenelten and Jeonghwan Kim to this PR as they worked on these changes within RAI - I'm simply helping to push them up 😄

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@jsmith-bdai

Copy link
Copy Markdown
Contributor Author

NOTE: It might make sense to have yaw_only flag along with ray_alignment with a deprecation warning in the meantime until we eventually deprecate it. Thoughts @Mayankm96 @kellyguo11 @jtigue-bdai @pascal-roth ?

@jsmith-bdai

Copy link
Copy Markdown
Contributor Author

Also, I likely need to fix the ray caster tests, just want to get some feedback on the feature changes before doing so

@pascal-roth

Copy link
Copy Markdown
Collaborator

NOTE: It might make sense to have yaw_only flag along with ray_alignment with a deprecation warning in the meantime until we eventually deprecate it. Thoughts @Mayankm96 @kellyguo11 @jtigue-bdai @pascal-roth ?

Yes, please, let's try not to break the interface.

@jsmith-bdai

Copy link
Copy Markdown
Contributor Author

NOTE: It might make sense to have yaw_only flag along with ray_alignment with a deprecation warning in the meantime until we eventually deprecate it. Thoughts @Mayankm96 @kellyguo11 @jtigue-bdai @pascal-roth ?

Yes, please, let's try not to break the interface.

👍 I've added backwards compatibility now! Maybe we can drop support in 2 releases?

@pascal-roth

Copy link
Copy Markdown
Collaborator

NOTE: It might make sense to have yaw_only flag along with ray_alignment with a deprecation warning in the meantime until we eventually deprecate it. Thoughts @Mayankm96 @kellyguo11 @jtigue-bdai @pascal-roth ?

Yes, please, let's try not to break the interface.

👍 I've added backwards compatibility now! Maybe we can drop support in 2 releases?

Sounds good, thanks

@kellyguo11

Copy link
Copy Markdown
Contributor

We might need to update some of the environment configs, the anymal C rough locomotion environment is failing unit tests.

@jtigue-bdai

Copy link
Copy Markdown
Collaborator

We might need to update some of the environment configs, the anymal C rough locomotion environment is failing unit tests.

I will look into it.

@ooctipus
ooctipus force-pushed the feature/ray_caster_updates_and_fixes branch 2 times, most recently from a786494 to 9960cb1 Compare July 8, 2025 05:21
jsmith-bdai and others added 4 commits July 7, 2025 22:26
* Adds a new ray_alignment parameter - either world, yaw, or base
* Fixes drift height sampling
@ooctipus
ooctipus force-pushed the feature/ray_caster_updates_and_fixes branch from 9960cb1 to be344fb Compare July 8, 2025 05:26
@kellyguo11
kellyguo11 merged commit d02d3b8 into main Jul 9, 2025
@kellyguo11
kellyguo11 deleted the feature/ray_caster_updates_and_fixes branch July 9, 2025 22:56
harry-wf-cheung pushed a commit to harry-wf-cheung/IsaacLab-Harry that referenced this pull request Jul 30, 2025
…ing (isaac-sim#2556)

This PR pushes some changes from our internal RAI fork of Isaac Lab.

The 2 main changes are:

#### Adds a new `ray_alignment` parameter to replace the previous
`yaw_only` arg.

Now the ray alignment can be aligned to `world`, `yaw`, or `base.

#### Improves drift height sampling

At the moment, the `RayCasterCfg` hosts a parameter called
`drift_range`. It allows to randomize the position of the sensor in
world frame, which comes with a couple of downsides:
* If the projection is done along the gravity vector, the z-component
drift term cannot be visualized (it is implicitly given in the pose, and
added to the height scan in the observation term).
* The perturbation is applied in world frame, i.e., if the ray cast is
yaw aligned, then the drift varies with the yaw angle
* The drift is applied to all (x,y,z) components equally

This PR adds a new parameter ray_cast_drift_range. It gives more freedom
in choosing the drift ranges as x, y and z components can be treated
separately. It also applies the drift after projecting and rotating the
ray cast points, i.e. the drift is now invariant under the yaw angle and
the drift in z is can be visualized

I've added Fabian Jenelten and Jeonghwan Kim to this PR as they worked
on these changes within RAI - I'm simply helping to push them up 😄

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## 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
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: ooctipus <[email protected]>
Co-authored-by: ooctipus <[email protected]>
StephenWelch pushed a commit to StephenWelch/IsaacLab that referenced this pull request Aug 17, 2025
…ing (isaac-sim#2556)

This PR pushes some changes from our internal RAI fork of Isaac Lab.

The 2 main changes are:

#### Adds a new `ray_alignment` parameter to replace the previous
`yaw_only` arg.

Now the ray alignment can be aligned to `world`, `yaw`, or `base.

#### Improves drift height sampling

At the moment, the `RayCasterCfg` hosts a parameter called
`drift_range`. It allows to randomize the position of the sensor in
world frame, which comes with a couple of downsides:
* If the projection is done along the gravity vector, the z-component
drift term cannot be visualized (it is implicitly given in the pose, and
added to the height scan in the observation term).
* The perturbation is applied in world frame, i.e., if the ray cast is
yaw aligned, then the drift varies with the yaw angle
* The drift is applied to all (x,y,z) components equally

This PR adds a new parameter ray_cast_drift_range. It gives more freedom
in choosing the drift ranges as x, y and z components can be treated
separately. It also applies the drift after projecting and rotating the
ray cast points, i.e. the drift is now invariant under the yaw angle and
the drift in z is can be visualized

I've added Fabian Jenelten and Jeonghwan Kim to this PR as they worked
on these changes within RAI - I'm simply helping to push them up 😄

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## 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
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: ooctipus <[email protected]>
Co-authored-by: ooctipus <[email protected]>
LJones-alt pushed a commit to LJones-alt/IsaacLab-Laura that referenced this pull request Jul 1, 2026
…ing (isaac-sim#2556)

This PR pushes some changes from our internal RAI fork of Isaac Lab.

The 2 main changes are:

#### Adds a new `ray_alignment` parameter to replace the previous
`yaw_only` arg.

Now the ray alignment can be aligned to `world`, `yaw`, or `base.

#### Improves drift height sampling

At the moment, the `RayCasterCfg` hosts a parameter called
`drift_range`. It allows to randomize the position of the sensor in
world frame, which comes with a couple of downsides:
* If the projection is done along the gravity vector, the z-component
drift term cannot be visualized (it is implicitly given in the pose, and
added to the height scan in the observation term).
* The perturbation is applied in world frame, i.e., if the ray cast is
yaw aligned, then the drift varies with the yaw angle
* The drift is applied to all (x,y,z) components equally

This PR adds a new parameter ray_cast_drift_range. It gives more freedom
in choosing the drift ranges as x, y and z components can be treated
separately. It also applies the drift after projecting and rotating the
ray cast points, i.e. the drift is now invariant under the yaw angle and
the drift in z is can be visualized

I've added Fabian Jenelten and Jeonghwan Kim to this PR as they worked
on these changes within RAI - I'm simply helping to push them up 😄

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## 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
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: ooctipus <[email protected]>
Co-authored-by: ooctipus <[email protected]>
csj-275 pushed a commit to csj-275/IsaacLab that referenced this pull request Jul 8, 2026
…ing (isaac-sim#2556)

This PR pushes some changes from our internal RAI fork of Isaac Lab.

The 2 main changes are:

#### Adds a new `ray_alignment` parameter to replace the previous
`yaw_only` arg.

Now the ray alignment can be aligned to `world`, `yaw`, or `base.

#### Improves drift height sampling

At the moment, the `RayCasterCfg` hosts a parameter called
`drift_range`. It allows to randomize the position of the sensor in
world frame, which comes with a couple of downsides:
* If the projection is done along the gravity vector, the z-component
drift term cannot be visualized (it is implicitly given in the pose, and
added to the height scan in the observation term).
* The perturbation is applied in world frame, i.e., if the ray cast is
yaw aligned, then the drift varies with the yaw angle
* The drift is applied to all (x,y,z) components equally

This PR adds a new parameter ray_cast_drift_range. It gives more freedom
in choosing the drift ranges as x, y and z components can be treated
separately. It also applies the drift after projecting and rotating the
ray cast points, i.e. the drift is now invariant under the yaw angle and
the drift in z is can be visualized

I've added Fabian Jenelten and Jeonghwan Kim to this PR as they worked
on these changes within RAI - I'm simply helping to push them up 😄

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## 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
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: ooctipus <[email protected]>
Co-authored-by: ooctipus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants