fix: correct unreasonable terrain level update #60
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.
Fixes an unreasonable terrain-difficulty downgrade behavior in the terrain curriculum. The community has reported similar issues where the curriculum (which measures distance from the env origin) can fail in some cases. Ref: IsaacLab discussion.
What I changed
Why
Even for flat terrains, the level never rises above 1.5, which is unreasonable and prevents normal progression.
This image shows terrain levels on flat terrain — it should reach 6, but the original function is capped at 1.5. Staying at 1.5 on flat terrain is unreasonable; reaching 6 is normal and expected.

This image shows results from my

go2experiments on mixed terrains (stairs, slopes, etc.) using fixed terrain level function. The curriculum reaches 6, which matches expected behavior.