traversabilityMap
Create traversability map using elevation data and semantic cost of terrain
Since R2025a
Description
Add-On Required: This feature requires the Robotics System Toolbox Offroad Autonomy Library add-on.
The traversabilityMap object creates a traversability map using
elevation data and semantic cost data of an uneven terrain. The traversability is a
combination of geometric traversability, computed using elevation data, and semantic
traversability, which you specify as semantic cost. You can specify thresholds and relative
cost weights for these properties and visualize the resulting traversability map using the
show
function.
The traversability map estimates the navigability of an offroad terrain by calculating traversability costs based on elevation model of the terrain at specific grid locations using point cloud data.
Creation
Syntax
Description
creates a
traversabilityMap for a flat terrain of length and width equal to 100 meters and default
resolution of 1 cell per meter.map = traversabilityMap
map = traversabilityMap( creates a
elevmodel)traversabilityMap object from a 2-D matrix,
elevmodel, containing the elevation of a terrain with default
resolution of 1 cell per meter. The first dimension of elevmodel
matrix corresponds to the y-axis and second dimension to the x-axis.
map = traversabilityMap(
creates a elevmodel,res)traversabilityMap object from a 2-D matrix,
elevmodel, containing the digital elevation model for a terrain
with the Resolution
property, specified as cells per meter.
map = traversabilityMap(
creates a elevmodel,semanticCost,res)traversabilityMap object from a 2-D matrix,
elevmodel, containing the digital elevation model for a terrain
with the SemanticThreshold and Resolution
properties, specified as cells per meter.
map = traversabilityMap( creates a
mapData)traversabilityMap object from mapData, which is a
cell array of two 2-D matrices of equal size, containing elevation data and semantic
cost.
map = traversabilityMap(
creates a mapData,res)traversabilityMap object from mapData,
which is a cell array of two 2-D matrices of equal size, containing elevation data and
semantic cost, with the Resolution
property, specified as cells per meter.
map = traversabilityMap(___,Name=Value) specifies
properties using one or more name-value arguments.
Input Arguments
Properties
Object Functions
copy | Create copy of traversability map |
cost | Retrieve data from traversability map layer |
setMapData | Assign data to traversability map layer |
show | Display terrain traversability map layer |
Examples
References
[1] Chilian, Annett, and Heiko Hirschmuller. “Stereo Camera Based Navigation of Mobile Robots on Rough Terrain.” In 2009 IEEE/RSJ International Conference on Intelligent Robots and Systems, 4571–76. St. Louis, MO: IEEE, 2009. https://doi.org/10.1109/IROS.2009.5354535.
[2] Guan, Tianrui, Zhenpeng He, Ruitao Song, Dinesh Manocha, and Liangjun Zhang. “TNS: Terrain Traversability Mapping and Navigation System for Autonomous Excavators.” In Robotics: Science and Systems XVIII. Robotics: Science and Systems Foundation, 2022. https://doi.org/10.15607/RSS.2022.XVIII.049.





![Figure contains an axes object. The axes object with title Digital Elevation Model, xlabel X [m], ylabel Z [m] contains an object of type surface.](../../examples/offroad_autonomy/win64/EstimateTerrainTraversabilityWithSemanticCostInformationExample_01.png)
![Figure contains an axes object. The axes object with title Traversability Map (geometric), xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/offroad_autonomy/win64/EstimateTerrainTraversabilityWithSemanticCostInformationExample_02.png)

![Figure contains an axes object. The axes object with title Traversability map (geometric + semantic), xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/offroad_autonomy/win64/EstimateTerrainTraversabilityWithSemanticCostInformationExample_04.png)