HesaiFileReader firetime correction implementation
조회 수: 12 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Filtering, Conversion, and Geometric Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!