Velodyne Lidar

Hi. I did deploy an .elf for a Velodyne LIDAR code on MATLAB, I deployed it from MATLAB to Jetson Nano Developer Kit. Now when I run the ./readPointCloudFrame.elf, nothing happens. A new line in the terminal just pops up, what should I do?

This is my MATLAB code:
outStruct = readPointCloudFrame(mdlName,calibFile,port)
%#codegen

% Create hwobj
hwobj = jetson();

% % Create Velodyne Lidar Object for ‘VLP16’ make
obj = velodynelidar(hwobj,mdlName,calibFile,‘Port’,2368);
% Start Receiving LiDAR Packets
start(obj);

if strcmp(mdlName,‘VLP16’)
lenOut = 120;
outStructLen = 28000;
else
lenOut = 70;
outStructLen = 48000;
end
% timePause = uint8(1);
outStruct = cell(2,lenOut);

for i=1:lenOut
outStruct{1,i} = zeros(outStructLen,3);
outStruct{2,i} = zeros(outStructLen,1,‘uint8’);
end

for i=1:lenOut

% Read a Point Cloud frame
pcFrame = read(obj);

outStruct{1,i} = pcFrame.Location(1:min(pcFrame.Count,outStructLen),:);
outStruct{2,i} = pcFrame.Intensity(1:min(pcFrame.Count,outStructLen));

pause(0.1);

end
% Stop receiving LiDAR Packets
stop(obj);

% xyz = pcFrame.Location;
% Intensity = pcFrame.Intensity;

end

Hi,
We don’t have experience in the use-case. Would see if other users can share experience.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.