reloc: --slam-reloc(-auto) tu dinh vi lai trong node (tu xoay/tu di, nguoi luon thang); web ve robot mo o vi tri doan; sieu am cho xoay; LocalMatch gioi han huong

This commit is contained in:
trung09122002
2026-09-29 11:16:04 +07:00
parent 399a46139e
commit 60853531aa
15 changed files with 883 additions and 27 deletions

View File

@@ -52,6 +52,13 @@ struct SlamSnapshot {
std::string voxels_source = "off";
uint32_t voxel_cells = 0;
uint32_t voxel_epoch = 0;
// Trang thai dinh vi lai tu dong (--slam-reloc): "XOAY TAI CHO 120/300 do",
// "NHAP NHANG ... di chuyen roi xoay tiep", "DA DINH VI ...". Rong = khong bat.
std::string reloc;
// CHUA dinh vi xong: `pose` chi la vi tri DOAN (ung vien so 1 cua vong khop
// gan nhat, hoac odom tu 0 truoc vong dau) -> web ve robot MO + dong chu.
bool reloc_pending = false;
};
struct TeleopSnapshot {