HesaiFileReader firetime correction implementation

조회 수: 12 (최근 30일)
James
James 2025년 6월 16일
답변: Shishir Reddy 2025년 6월 18일
Hello,
I'm working with processing LiDAR data from a Hesai Lidar. When you receive the lidars, you are pointed to download both an angle correction and firetime correction .csv file. In the HesaiFileReader function you can point to the angular correction csv, but not the firetime correction csv. My main question is if the HesaiFileReader already has this firetime correction built in or if I will need to implement this correction.
Thanks

답변 (1개)

Shishir Reddy
Shishir Reddy 2025년 6월 18일
Hi James
The 'HesaiFileReader' function in MATLAB supports specifying an angle correction through a CSV file, but it does not automatically apply the firetime correction. If precise timing is important in your application then the firetime offsets has to be applied manually.
Kindly refer the following steps to get an overview of the manual handling of firetime correction -
1. Loading the Firetime Correction Table
firetimeTable = readtable('firetime_correction.csv');
2. Reading the point cloud data using 'HesaiFileReader'
reader = HesaiFileReader('your_file.pcap', 'CorrectionsFile', 'angle_correction.csv');
ptCloud = readFrame(reader, 1);
3. Applying the Firetime Correction:
% Pseudocode
for each point in point cloud
channel = getChannel(point);
timeOffset = firetimeTable.TimeOffset(channel);
correctedTimestamp = originalTimestamp + timeOffset * 1e-9; % Convert ns to seconds
end
For more information regarding 'readFrame' function, kindly refer the following documentation - https://www.mathworks.com/help/vision/ref/velodynefilereader.readframe.html
I hope this helps.

카테고리

Help CenterFile Exchange에서 Filtering, Conversion, and Geometric Operations에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by