rayIntersection
Syntax
Description
[
returns the points at which rays, originating from a sensor pose and extending in
specified directions, intersect with occupied map cells within the 3D occupancy map, and
also determines the occupancy status of the cells at those intersection points.
Intersection points are returned in the world coordinate frame. Use
intersectionPts
,isOccupied
] = rayIntersection(map3D
,sensorPose
,directions
)isOccupied
to determine if the intersection point is at the sensor
max range or if it intersects an obstacle.
[
additionally accepts optional arguments for the max range of the sensor and whether to
ignore unknown values. By default, the rays extend to the map boundary and unknown values
are ignored.intersectionPts
,isOccupied
] = rayIntersection(___,maxrange
,ignoreUnknown
)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2020a