read
Acquire point clouds from velodynelidar object
buffer
Syntax
Description
Add-On Required: This feature requires the Lidar Toolbox Support Package for Velodyne LiDAR Sensors add-on.
returns a point cloud from the ptCloud = read(lidarobj)velodynelidar object
lidarobj.
If the object is streaming, then this syntax returns the oldest point cloud in the
buffer. Use start to
begin streaming point cloud data.
If the object is not streaming and there are existing point clouds in the buffer, then this syntax returns the oldest point cloud. If the object is not streaming and there are no existing point clouds in the buffer, then this syntax starts streaming for one point cloud, stops streaming, and returns it.
returns all point clouds from the ptCloud = read(lidarobj,"all")velodynelidar object
lidarobj.
If the object is streaming, then this syntax returns all existing point clouds in the buffer at the moment when the function is called. After acquiring them, it deletes them from the buffer, then continues streaming.
If the object is not streaming and there are existing point clouds in the buffer, then this syntax returns all available point clouds and deletes them from the buffer. If the object is not streaming and there are no existing point clouds in the buffer, then this syntax returns an empty array.
[
returns point clouds and their respective timestamps from the ptCloud,timestamps] = read(___)velodynelidar
object lidarobj using any of the available syntaxes listed.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b