This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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