read
Add-On Required: This feature requires the Lidar Toolbox Support Package for Ouster Lidar Sensors add-on.
Syntax
Description
The read
function reads point cloud data from the
ousterlidar
object buffer. The function then deletes the read point
clouds and any point clouds older than them from the buffer.
If the object is streaming, then the function returns only the point cloud data available in the buffer at the time of the function call, then continues streaming.
If the object is not streaming and there are existing point clouds in the buffer, the function returns the point clouds available in the buffer. If there are no existing point clouds, the function starts streaming to obtain point cloud data, returns the data, and then stops streaming.
reads a point cloud from the ptCloud
= read(ousterObj
)ousterlidar
object ousterObj
. This syntax returns the
oldest point cloud in the buffer.
reads the number of point clouds specified by ptCloud
= read(ousterObj
,numPC
)numPC
from the ousterlidar
object ousterObj
.
specifies the mode in which to read point clouds from the ptCloud
= read(ousterObj
,mode
)ousterlidar
object ousterObj
starting with the oldest
point cloud in the buffer.
[
returns point clouds and their respective timestamps from the ptCloud
,timestamps
] = read(___)ousterlidar
object ousterObj
using any combination of
input arguments from the previous syntaxes.
[___,
returns a structure, pcAttributes
] = read(___)pcAttributes
, containing attributes for each point
in the point cloud using any combination of input arguments from previous syntaxes.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022aSee Also
ousterlidar
| preview
| start
| stop