Generate map with randomly scattered 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.
generates a 2-D occupancy map, of the default size and resolution, with a specified number
of randomly distributed obstacles, map
= mapClutter(numObst
)numObst
, of default shapes.
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.