Compute cell indices along a ray
[
returns cell indices of the specifiedendpoints
,midpoints
] = raycast(map
,pose
,range
,angle
)map
for all cells traversed by a ray originating from the specifiedpose
at the specifiedangle
andrange
values.endpoints
contains all indices touched by the end of the ray, with all other points included inmidpoints
.
binaryOccupancyMap
|insertRay
|occupancyMap
(Navigation Toolbox)