Velodyne File Reader error

3 vues (au cours des 30 derniers jours)
Jacinda Page
Jacinda Page le 10 Mai 2022
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.

Réponses (1)

Sachin Lodhi
Sachin Lodhi le 22 Déc 2023
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.

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by