readCartesian
(To be removed) Read laser scan ranges in Cartesian coordinates
readCartesian will be removed in a future release. Use rosReadCartesian
instead. For more information, see ROS Message Structure Functions.
Syntax
Description
converts the polar measurements of the laser scan object,
cart
= readCartesian(scan
)scan
, into Cartesian coordinates,
cart
. This function uses the metadata in the message,
such as angular resolution and opening angle of the laser scanner, to perform
the conversion. Invalid range readings, usually represented as
NaN
, are ignored in this conversion.
provides additional options specified by one or more
cart
= readCartesian(___,Name,Value)Name,Value
pair arguments. Name must appear inside single
quotes ('')
. You can specify several name-value pair
arguments in any order as
Name1,Value1,...,NameN,ValueN
.