validScan = removeInvalidData(scan)returns
a new lidarScan object with all Inf
and NaN values from the input scan removed.
The corresponding angle readings are also removed.
Lidar scan readings, specified as a lidarScan object.
Name-Value Pair Arguments
Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example: ["RangeLimits",[0.05 2]
'RangeLimits' — Range reading limits two-element vector
Range reading limits, specified as a two-element vector,
[minRange maxRange], in meters. All range
readings and corresponding angles outside these range limits are
removed
Data Types: single | double
'AngleLimits' — Angle limits two-element vector
Angle limits, specified as a two-element vector, [minAngle
maxAngle] in radians. All angles and corresponding range
readings outside these angle limits are removed.
Angles are measured counter-clockwise around the
positivez-axis.