Skip to content

Commit 7e87e7e

Browse files
committed
implement border height for corridor turn config
1 parent 2ca11b4 commit 7e87e7e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

exts/nav_tasks/nav_tasks/terrains/corridor_turn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def corridor_turn_terrain(difficulty: float, cfg: corridor_turn_cfg.CorridorTurn
5050
# obtain a list of meshes for the border
5151
border_center = [0.5 * cfg.size[0], 0.5 * cfg.size[1], 0]
5252
border_inner_size = (cfg.size[0] - 2 * cfg.border_width, cfg.size[1] - 2 * cfg.border_width)
53-
make_borders = make_border(cfg.size, border_inner_size, 0.1, border_center)
53+
make_borders = make_border(cfg.size, border_inner_size, cfg.border_height, border_center)
5454
# add the border meshes to the list of meshes
5555
meshes_list += make_borders
5656

exts/nav_tasks/nav_tasks/terrains/corridor_turn_cfg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ class CorridorTurnTerrainCfg(SubTerrainBaseCfg):
4040
The border is a flat terrain with the same height as the terrain.
4141
"""
4242

43+
border_height: float = 2.5
44+
"""The height of the border around the terrain (in m).
45+
"""
46+
4347
# Optionally, add more parameters as needed

0 commit comments

Comments
 (0)