Skip to content

Adds option for terrain border to above or below the ground #2394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/isaaclab/config/extension.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

# Note: Semantic Versioning is used: https://semver.org/
version = "0.36.23"
version = "0.36.24"

# Description
title = "Isaac Lab framework for Robot Learning"
Expand Down
10 changes: 10 additions & 0 deletions source/isaaclab/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
---------

0.36.24 (2025-04-28)
~~~~~~~~~~~~~~~~~~~~

Added
^^^^^

* Adds option to add terrain border as "wall" above the ground or as terrain extension below the ground in
:class:`~isaaclab.terrains.terrain_generator.TerrainGeneratorCfg`.


0.36.23 (2025-04-24)
~~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 3 additions & 1 deletion source/isaaclab/isaaclab/terrains/terrain_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ def _add_terrain_border(self):
border_center = (
self.cfg.num_rows * self.cfg.size[0] / 2,
self.cfg.num_cols * self.cfg.size[1] / 2,
-self.cfg.border_height / 2,
self.cfg.border_height / 2,
)
if self.cfg.border_below_ground:
border_center[2] *= -1
# border mesh
border_meshes = make_border(border_size, inner_size, height=self.cfg.border_height, position=border_center)
border = trimesh.util.concatenate(border_meshes)
Expand Down
9 changes: 9 additions & 0 deletions source/isaaclab/isaaclab/terrains/terrain_generator_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ class TerrainGeneratorCfg:
border_height: float = 1.0
"""The height of the border around the terrain (in m). Defaults to 1.0."""

border_below_ground: bool = True
"""Whether to place the border below the ground. Defaults to True.

If True, the highest point of the border is at the height 0.0. This extends the terrain and is typically used in
locomotion tasks.
If False, the lowest point of the border is at the height 0.0. This is typically used in navigation tasks and acts
as a wall to prevent the robot from falling off the terrain.
"""

num_rows: int = 1
"""Number of rows of sub-terrains to generate. Defaults to 1."""

Expand Down