raycast
Compute cell indices along a ray
Syntax
Description
[
returns cell indices of the specified endpoints,midpoints]
= raycast(map,pose,range,angle)map for all cells
traversed by a ray originating from the specified pose at
the specified angle and range values.
endpoints contains all indices touched by the end of the
ray, with all other points included in midpoints.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/GetGridCellsAlongARayExample_01.png)
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 3 objects of type image, line. One or more of the lines displays its values using only markers](../../examples/nav/win64/GetGridCellsAlongARayExample_02.png)