map,lidar,web: ban do theo lan nhin MOI NHAT + scan dung gio. Luoi 2D: GridGlobal/* (3 lan nhin xuyen qua -> trong, truoc ~9; truoc 07/10 khong truyen vao bo ghep luoi); lop camera + 3D: xoa voxel ma >= 2 node sau nhin xuyen qua (VoxelCarver) -- nguoi dung roi di thi quay lai quet la mat. LiDAR: stamp_offset -55 ms + chinh meo theo chieu quet (do tren ban do that 28/09 + 01/10); web: robot troi muot
This commit is contained in:
@@ -65,6 +65,31 @@ void LevelScan(const LaserScan& in, const Transform& laser_to_base, double roll,
|
||||
const ElevationMap* em, const ScanLevelerConfig& cfg, LaserScan* out,
|
||||
ScanLevelStats* stats);
|
||||
|
||||
// ================== CHINH MEO SCAN (deskew) ==================
|
||||
// LiDAR QUAY chup tung tia o mot thoi diem khac nhau trong vong quet, con
|
||||
// stamp la MOT thoi diem (luc het vong). Robot dang quay w thi tia chup truoc
|
||||
// stamp `lag` giay da lech w * lag -- 0.8 rad/s, vong 40 ms: tia dau va tia
|
||||
// cuoi lech 1.8 do, o 5 m la 16 cm.
|
||||
//
|
||||
// Vong quet bat dau o goc `start_rad` (khung laser) va di theo chieu `dir`
|
||||
// (+1: goc TANG theo thoi gian, -1: goc GIAM), het mot vong trong `period_s`.
|
||||
// LakiBeam: theta = (flip ? -a : a) + angle_offset, azimuth a tang tu 0 ->
|
||||
// start = angle_offset, dir = flip ? -1 : +1. Chieu nay DO tren ban do that
|
||||
// 28/09 + 01/10: dir -1 lam scan khop tot hon, +1 te hon.
|
||||
struct SweepTiming {
|
||||
double start_rad = 0.0;
|
||||
int dir = -1;
|
||||
double period_s = 0.04;
|
||||
};
|
||||
|
||||
// Dua moi tia ve khung robot LUC STAMP: robot da quay them w * lag va tien
|
||||
// v * lag (w rad/s, v m/s theo truc x than) sau khi tia duoc chup. Xep lai vao
|
||||
// o goc gan nhat, giu tia gan nhat moi o; o khong con tia nao -> NaN. Tia khong
|
||||
// huu han va sentinel cua sector mask (> range_max) giu nguyen o cu, nhu
|
||||
// LevelScan.
|
||||
void DeskewScan(const LaserScan& in, const Transform& laser_to_base, const SweepTiming& tm,
|
||||
double w, double v, LaserScan* out);
|
||||
|
||||
} // namespace vslam
|
||||
|
||||
#endif // VSLAM_SCAN_LEVELER_H
|
||||
|
||||
Reference in New Issue
Block a user