rayIntersection
Find intersection points of rays and occupied map cells
Syntax
Description
returns intersection points of rays and occupied cells in the specified
intersectionPts = rayIntersection(map,pose,angles,maxrange)map. Rays emanate from the specified
pose and angles. Intersection
points are returned in the world coordinate frame. If there is no intersection
up to the specified maxrange, [NaN NaN]
is returned. By default, the OccupiedThreshold property is
used to determine occupied cells.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
See Also
occupancyMap | raycast | updateOccupancy | binaryOccupancyMap (Robotics System Toolbox)
![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/GetRayIntersectionPointsOnOccupancyMapExample_01.png)
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 7 objects of type image, line. One or more of the lines displays its values using only markers These objects represent Collision Points, Vehicle Position, Rays.](../../examples/nav/win64/GetRayIntersectionPointsOnOccupancyMapExample_02.png)