Delete point clouds in
velodynelidar object buffer
Delete Point Clouds from Velodyne LiDAR
You can delete point cloud data stored in the buffer at any time.
v = velodynelidar('HDL32E'); start(v)
View the number of point clouds currently in the buffer. This value increases while point clouds are streaming.
ans = 40
Delete the point clouds that are currently in the buffer. Then view the number of point clouds in the buffer.
ans = 0
There will be 0 point clouds in the buffer immediately after you delete them all. But because the object is currently in streaming mode, it continues streaming after you delete the existing point clouds and this value increases again.
Stop streaming when you are finished.
Introduced in R2020b