inflate

Class: robotics.BinaryOccupancyGrid
Package: robotics

Inflate each occupied grid location

Syntax

inflate(map,radius)
inflate(map,gridradius,'grid')

Description

inflate(map,radius) inflates each occupied position of the map by the radius given in meters. radius is rounded up to the nearest cell equivalent based on the resolution of the map. Every cell within the radius is set to true (1).

inflate(map,gridradius,'grid') inflates each occupied position by the radius given in number of cells.

Input Arguments

expand all

Map representation, specified as a robotics.BinaryOccupancyGrid object. This object represents the environment of the robot. The object contains a matrix grid with binary values indicating obstacles as true (1) and free locations as false (0).

Dimension that defines how much to inflate occupied locations, specified as a scalar. radius is rounded up to the nearest cell value.

Data Types: double

Dimension that defines how much to inflate occupied locations, specified as a positive scalar. gridradius is the number of cells to inflate the occupied locations.

Data Types: double

Introduced in R2015a