how to convert pcap to ply

11 次查看(过去 30 天)
Pavan Kumar B N
Pavan Kumar B N 2021-8-6
编辑: Gerald 2025-1-14
Hello All,
I have velodyne lidar data in .pcap format. How to convert .pcap data into ply file?

回答(2 个)

Bipratim Saha
Bipratim Saha 2022-12-29
编辑:Bipratim Saha 2022-12-29
Hello Pavan,
As per my understanding you are trying to convert a .pcap file to a .ply file.
  • To read point cloud data from “.pcap” format, use 'velodyneFileReader' function
  • To write point cloud data as “.ply” format, use 'pcwrite' function.
As an example, you can execute following commands
veloReader = velodyneFileReader('lidarData_ConstructionRoad.pcap','HDL32E');
ptCld = readFrame(veloReader);
pcwrite(ptCld,'lidarData_ConstructionRoad.ply')
You can refer to the following documentation for more information:
Alternatively, you can try to import the pcap file in Lidar Viewer app and export to ply format.
Hope this helps :)

Gerald
Gerald 2025-1-14
编辑:Gerald 2025-1-14
Converting .pcap data to a ply file can be done in several ways. Use the 'velodyneFileReader' or 'pcwrite' function in the “.ply” format.

类别

Help CenterFile Exchange 中查找有关 Preprocessing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by