Main Content


Display lidar scan or point cloud from ROS message structures


scans = rosReadLidarScan(scanMsg) creates a lidarScan object from a LaserScan ROS message structure

Input Arguments

collapse all

ROS laser scan message with type sensor_msgs/LaserScan, specified as a LaserScan message structure.


collapse all

Lidar scan readings, returned as a lidarScan object.

Extended Capabilities

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

Introduced in R2021a