simulo.SubTerrainConfig
Configuration for a sub-terrain type in rough terrain generation.
Sub-terrains are the building blocks of rough terrain. The terrain generator creates a grid of sub-terrains, where each cell is one of these configured types.
Attributes:
type— Sub-terrain type name. Supported types: - “flat”: Flat surface - “random_rough”: Random height variations - “pyramid_stairs”: Pyramid-shaped stairs (up and down) - “pyramid_stairs_inv”: Inverted pyramid stairs - “discrete_obstacles”: Discrete height obstacles - “wave”: Sinusoidal wave pattern - “hf_pyramid_slope”: Height-field pyramid slope - “hf_pyramid_slope_inv”: Inverted height-field pyramid slopeproportion— Proportion of terrain grid to use this type (0.0-1.0). Defaults to 1.0 — “use 100% of the grid for this single sub-terrain”. Every in-tree caller passesproportion=explicitly (Wave 0 audit verified), so the default-value change from the pre-Wave-B local default of 0.2 is safe.params— Type-specific parameters (e.g., height, step_height, etc.)
Example:
# Random rough terrain with 0.02-0.1m height variationsrough = SubTerrainConfig( type="random_rough", proportion=0.2, params={"grid_height_range": (0.02, 0.1), "grid_width": 0.15})simulo.SubTerrainConfig(type: str, proportion: float = 1.0, params: Dict[str, Any] = dict())