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
See Also
binaryOccupancyMap | insertRay | occupancyMap
Topics
- Occupancy Grids (Robotics System Toolbox)
- Occupancy Grids
![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_robotics/win64/ComputeGridCellIndicesAlongARayExample_01.png)
![Figure contains an axes object. The axes object with title Binary 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_robotics/win64/ComputeGridCellIndicesAlongARayExample_02.png)