rosReadCartesian
Read laser scan ranges in Cartesian coordinates from ROS or ROS 2 message structure
Since R2021a
Syntax
Description
converts the polar measurements of the ROS or ROS 2 laser scan message
structure, cart
= rosReadCartesian(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
= rosReadCartesian(___,Name,Value)Name,Value
pair arguments. You can specify several
name-value pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a