I am trying to upload a csv point cloud in matlab and don't really know where to start.

5 views (last 30 days)
I am using a velodyne vlp-16 lidar and trying to use matlab to read the point cloud. I have the data saved in a csv file. Any recommendations would help.

Accepted Answer

Walter Roberson
Walter Roberson on 1 Feb 2022
xyz = readmatrix(filename);
pc = pointCloud(xyz) ;
  7 Comments
Walter Roberson
Walter Roberson on 3 Feb 2022
Edited: Walter Roberson on 3 Feb 2022
Note that if you had a PCAP file instead of a csv file then you could use https://www.mathworks.com/help/vision/ref/velodynefilereader.html
Also there is support for reading directly from those lidar systems https://www.mathworks.com/help/supportpkg/velodynelidar/lidar-sensors-data-acquisition.html
The Lidar Toolbox requires the Computer Vision Toolbox. The PCAP file reader itself is part of the Computer Vision Toolbox
Jackob Black
Jackob Black on 3 Feb 2022
i cant use the velodyne functions either but i used the scatter 3 and it ended up working thankyou for your help

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!