Skip to content

Conversation

@Andy-xiong6
Copy link
Contributor

Description

Enhance base_height_l2 function to support rough terrain adjustments:

  • Added an optional sensor_cfg parameter to allow dynamic target height
    adjustments based on sensor readings (e.g., RayCaster).
  • Updated the function to calculate the L2 squared penalty using adjusted
    height values for rough terrain scenarios.
  • Preserved existing behavior for flat terrain by using the fixed target_height.
  • Improved compatibility for applications involving uneven terrain.

Fixes #1524

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • [x ] I have run the pre-commit checks 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

Andy-xiong6

This comment was marked as duplicate.

@kellyguo11 kellyguo11 changed the title Feature/rough terrain base height reward Adds RayCaster rough terrain base height to reward Dec 13, 2024
@kellyguo11 kellyguo11 merged commit d8bc725 into isaac-sim:main Dec 13, 2024
5 checks passed
SevenFo pushed a commit to SevenFo/IsaacLab that referenced this pull request May 19, 2025
# Description

Enhance `base_height_l2` function to support rough terrain adjustments:

- Added an optional `sensor_cfg` parameter to allow dynamic target
height
  adjustments based on sensor readings (e.g., RayCaster).
- Updated the function to calculate the L2 squared penalty using
adjusted
  height values for rough terrain scenarios.
- Preserved existing behavior for flat terrain by using the fixed
`target_height`.
- Improved compatibility for applications involving uneven terrain.

Fixes isaac-sim#1524

## Type of change

- New feature (non-breaking change which adds functionality)

## 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
- [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: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
Co-authored-by: Kelly Guo <[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.

[Proposal] base height reward on rough terrain

2 participants