Main Content

rosReadLidarScan

Display lidar scan or point cloud from ROS or ROS 2 message structure

Description

scans = rosReadLidarScan(scanMsg) creates a lidarScan object from a ROS or ROS 2 sensor_msgs/LaserScan message structure.

Input Arguments

collapse all

ROS or ROS 2 laser scan message of type sensor_msgs/LaserScan, specified as a message structure.

Outputs

collapse all

Lidar scan readings, returned as a lidarScan object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2021a