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:
@@ -41,9 +41,22 @@ StatusResponse Runtime::Wire() {
|
||||
auto copy = std::make_shared<LaserScan>(*s);
|
||||
sanitizer_->Apply(copy.get());
|
||||
|
||||
// Di tren doc: ban BU NGHIENG + bo tia cham san cho SLAM / dinh vi lai.
|
||||
// An toan va web giu ban tho. Tat thi hai con tro la MOT.
|
||||
// Ban cho SLAM / dinh vi lai: CHINH MEO (LiDAR that) roi BU NGHIENG (doc).
|
||||
// An toan va web giu ban tho. Tat ca hai thi hai con tro la MOT.
|
||||
LaserScanPtr slam_scan = copy;
|
||||
if (deskew_on_) {
|
||||
// w ~ gyro 200 Hz qua EKF (lech 0.008 rad/s x 40 ms: khong dang ke),
|
||||
// v theo encoder. Kep de mot mau van toc hong khong be cong scan.
|
||||
double w = 0.0, v = 0.0;
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(odom_mu_);
|
||||
w = std::max(-2.0, std::min(2.0, ekf_->vyaw()));
|
||||
v = std::max(-1.0, std::min(1.0, ekf_->vx()));
|
||||
}
|
||||
auto dsk = std::make_shared<LaserScan>();
|
||||
DeskewScan(*copy, laser_to_base_static_, sweep_, w, v, dsk.get());
|
||||
slam_scan = dsk;
|
||||
}
|
||||
if (slope_on_ && cfg_->slope.level_scan) {
|
||||
Pose2D od;
|
||||
double z = 0.0;
|
||||
@@ -57,7 +70,7 @@ StatusResponse Runtime::Wire() {
|
||||
auto lv = std::make_shared<LaserScan>();
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(elev_mu_);
|
||||
LevelScan(*copy, laser_to_base_static_, roll, pitch,
|
||||
LevelScan(*slam_scan, 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%.
|
||||
|
||||
Reference in New Issue
Block a user