slope: bu nghieng scan giu CA vong scan LakiBeam -- lidar_core phat goc [0, 2pi) (angle_min 0), LevelScan dua ve [-pi, pi) roi tru nen bo het nua -pi..0: ban do that tu 06/10 chi con nua scan (325 vs 620-730 diem); RayIndex lay goc theo vong tron + test scan LakiBeam; log slope/scan ti le tia giu

This commit is contained in:
trung09122002
2026-10-07 14:57:49 +07:00
parent cc3df0ecb2
commit 61c3a75fb1
3 changed files with 67 additions and 3 deletions

View File

@@ -60,6 +60,13 @@ StatusResponse Runtime::Wire() {
LevelScan(*copy, laser_to_base_static_, roll, pitch,
cfg_->robot.geometry().wheel_radius, od, z, elev_.get(), level_cfg_,
lv.get(), &level_stats_);
// Ti le tia giu lai (cong don tu luc chay) -- san phang phai ~100%.
// 07/10: nua scan bi bo tu 06/10 ma khong dong log nao bao.
const ScanLevelStats& ls = level_stats_;
VSLAM_INFO_THROTTLE(30.0, "slope/scan: giu " << ls.kept << "/" << ls.rays << " tia ("
<< (ls.rays > 0 ? 100 * ls.kept / ls.rays : 0) << "%), bo cham san "
<< ls.dropped_floor << ", duoi dat " << ls.dropped_below << ", ngoai goc "
<< ls.rays - ls.kept - ls.dropped_floor - ls.dropped_below);
}
slam_scan = lv;
}