This commit is contained in:
trung09122002
2026-09-22 09:31:16 +07:00
parent b5f0956b1d
commit 1efef2ef47
6 changed files with 157 additions and 11 deletions

View File

@@ -58,8 +58,12 @@ void EncodeScan(const LaserScan& scan, UnixTime stamp, std::string* out);
// Giam mau xuong `max_points` bang cach lay buoc deu, roi luong tu hoa theo
// `quant_m`. Bo diem NaN.
//
// `delta` quy diem ve he base_footprint HIEN TAI truoc khi ma hoa. Ap o day
// chu khong tren ca dam may vi o day da qua buoc deu: quy 40 k diem roi vut
// di 36 k la lang phi thuan tuy. Dong nhat = khong bu.
void EncodeCloud(const PointCloudXYZ& cloud, UnixTime stamp, uint32_t max_points,
float quant_m, std::string* out);
float quant_m, const Pose2D& delta, std::string* out);
// RLE hang-chinh. Xem rle.h.
// `type` cho phep dung chung bo ma hoa cho ban do SLAM (kMapFull) va ban do

View File

@@ -145,6 +145,12 @@ struct WebSnapshot {
LaserScanPtr scan;
PointCloudXYZPtr cloud;
// Phep bien doi quy cloud tu he base_footprint LUC CHUP ve he
// base_footprint HIEN TAI. Trinh duyet ve cloud bang pose moi nhat, nen
// mot dam may 0.5 s tuoi se bi dat lech dung `v * 0.5 s` neu khong bu.
// Dong nhat khi khong biet pose luc chup -- xem Runtime::WebLoop.
Pose2D cloud_delta;
bool have_cloud_delta = false;
OccupancyGridPtr map; // ban do SLAM dung
// Ban do THE GIOI cua bo mo phong (khung nhin "Gazebo"). Null khi chay
// that -- luc do khong co su that nao de doi chieu.