mapClutter
Generate map with randomly scattered obstacles
Syntax
Description
The mapClutter function generates a 2-D occupancy map as a
binaryOccupancyMap object with randomly distributed obstacles.
generates a 2-D occupancy map
as a map = mapClutterbinaryOccupancyMap object map, with a width and
height of 50 meters and a resolution of 5 cells per meter. The map contains 20 randomly
distributed obstacles of types Box and Circle.
Generated obstacles have random sizes.
specifies options using one or more name-value pair arguments in addition to any combination
of input arguments from previous syntaxes. For example, map = mapClutter(___,Name,Value)'MapSize',[50 30]
generates a randomly distributed obstacle map with a width of 50 meters and height of 30
meters.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2020b
![Figure contains an axes object. The axes object with title Binary Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/GenerateRandomlyDistributedObstacleMapExample_01.png)