VLP16のデータをxml形式で保存する方法
1 view (last 30 days)
Show older comments
VLP16のデータをpcapとcsvの形式で持っているのですが,
これををxml形式にするためにはどうすればよいでしょうか?
また,VLP16のデータ(.PCAP形式で保存する前のデータ)を直接xml形式で保存するにはどうすればよいですか?
どの方式でもよいのでVLP16のデータをxml形式で保存する方法を教えてください.
0 Comments
Accepted Answer
Kenta
on 19 May 2019
close all;clear;clc
veloReader = velodyneFileReader('lidarData_ConstructionRoad.pcap','HDL32E');
framenum=1;
if hasFrame(veloReader)==true
ptCloud = readFrame(veloReader);
xyz=squeeze(ptCloud.Location(1,:,:));
for i=2:32
xyz=[xyz;squeeze(ptCloud.Location(i,:,:))];
end
% 各フレームごとに保存する場合
xlswrite(sprintf('frame%d.xlm',framenum),xyz)
framenum=framenum+1;
end
各フレームの点群の位置をxlm形式で保存したいということでしょうか?それならば、各フレームでptCloud.Locationで位置を取り出し、保存すればよいと思います。
More Answers (0)
See Also
Categories
Find more on MPSK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!