rayIntersection
Syntax
Description
[
returns intersection points of rays in the specified map, intersectionPts
,isOccupied
] = rayIntersection(map3D
,sensorPose
,directions
,maxrange
)map3D
. Rays
emanate from the specified sensorPose
at the given orientations,
directions
. Intersection points are returned in the world
coordinate frame. Use 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 sensors max range and whether to ignore unknown values.
By default, the rays extend to the map boundary and unknown values are ignored.intersectionPts
,isOccupied
] = rayIntersection(map3D
,sensorPose
,directions
,maxrange
,ignoreUnknown
)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2020a