read
Syntax
Description
Add-On Required: This feature requires the Lidar Toolbox Support Package for SICK Lidar Sensors add-on.
returns the oldest point cloud from the buffer of the ptCloud = read(slObj)sicklidar object
slObj.
If the object is streaming, then the function returns the oldest point cloud data available in the buffer at the time of the function call, then continues streaming.
If the object is not streaming and the buffer contains point clouds, the function returns the oldest point cloud from the buffer. If the buffer does not contain point clouds, the function starts streaming to obtain point cloud data, returns the data, and then stops streaming.
returns all the point clouds from the buffer of the ptCloud = read(slObj,"all")sicklidar object
slObj.
If the object is streaming, then this syntax returns all existing point clouds in the buffer at the time of the function call. After acquiring them, the object deletes them from the buffer, then continues streaming.
If the object is not streaming and the buffer contains point clouds, then this syntax returns all available point clouds and the object deletes them from the buffer. If the object is not streaming and the buffer does not contain point clouds, then this syntax returns an empty array.
[
additionally returns a structure, ptCloud,timeStamp,pcAttributes] = read(___)pcAttributes, containing attributes
for each point in the point clouds.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a
See Also
sicklidar | sicklidar2d | start | preview | closePreview | flush | stop
