Velodyne File Reader error

3 次查看(过去 30 天)
Jacinda Page
Jacinda Page 2022-5-10
回答: Sachin Lodhi 2023-12-22
Hi guys
Im new to matlab and am trying to visualise my pcap files in matlab. I've attempted to use the following code
veloReader = velodyneFileReader('SMRTF.pcap','PuckLITE');
however i just keep getting this error message which only seems to appear on larger files
>> PointCloud_to_scan
Error using vision.internal.VelodyneFileReader/open
Error reading packet from PCAP file truncated dump file; tried to read 1248 captured bytes, only got 608.
Error in velodyneFileReader (line 234)
timeStruct = open(this.VelodyneFileReaderObj, ...
Error in PointCloud_to_scan (line 1)
veloReader = velodyneFileReader('SMRTF.pcap','PuckLITE');
Is there a way to fix this or should i just stop using matlab and try a more appropraite program.

回答(1 个)

Sachin Lodhi
Sachin Lodhi 2023-12-22
Hi Jacinda,
I understand that you are encountering an error when trying to visualize your pcap files using the 'velodyneFileReader' function. The error message you're seeing suggests that there might be an issue with the pcap file, particularly with invalid files.
I recommend verifying the pcap file first, as the error would have occurred due to the invalidity of the input pcap file.
Additionally, you can refer to the MATLAB documentation for the 'velodyneFileReader' function and try running the examples provided there to ensure that the function works correctly with a valid pcap file provided in the example:-
I hope it helps.
Thanks and regards,
Sachin.

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by