reloc: LocalMatch + bench --split-id/--vpr-csv + phan tich ghep VPR/LiDAR; robot that: 85 -> 108 chot dung, 0 sai

This commit is contained in:
trung09122002
2026-09-29 10:26:00 +07:00
parent ca3b7854ea
commit 399a46139e
8 changed files with 549 additions and 92 deletions

View File

@@ -146,6 +146,15 @@ RelocMatch GlobalMatch(const LikelihoodField& field,
const std::vector<Point>& pts_odom,
const GlobalLocalizerConfig& cfg);
// Khop CUC BO: robot phai nam trong `radius` quanh `center` (frame map), MOI
// huong. De XAC MINH ung vien tu nguon khac (VPR). `odom_now`: pose robot
// trong frame odom luc gom -- rang buoc dat tren vi tri ROBOT, khong phai tam
// dam diem (o hanh lang tam lech robot nhieu met). score = -1 neu khong khop.
RelocHypothesis LocalMatch(const LikelihoodField& field,
const std::vector<Point>& pts_odom, const Pose2D& odom_now,
const Point& center, double radius,
const GlobalLocalizerConfig& cfg);
// Tich luy gia thuyet qua nhieu vong, truyen bang ODOM (pose toan cuc chua
// biet). "Streak" = so vong LIEN TIEP mot gia thuyet dung dau.
class HypothesisTracker {

View File

@@ -9,6 +9,7 @@
// canh bao -- cho toi khi goi `uncompressDataConst()`. Do dung la ly do
// `tools/probe_rtabmap` lan dau chay ra "1990 node, 0 o".
#include <set>
#include <string>
#include "vslam/vslam_common.h"
@@ -39,9 +40,14 @@ StatusResponse ExportOccupancyGrid(rtabmap::Rtabmap& slam, OccupancyGrid* out);
// Doc thang tu DB, khong can Rtabmap dang chay. Dung cho
// `tools/vslam_slam_bench` va cho viec doi DB cu sang PGM.
//
// `only_ids`: chi dung cac node co id trong tap nay (nullptr = moi node). De
// do relocalization CONG BANG tren mot phien: ban do tu nua dau, hoi bang nua
// sau -- scan dung de hoi khong duoc gop vao ban do.
StatusResponse ExportOccupancyGridFromDb(const std::string& db_path,
double cell_size, double range_max,
OccupancyGrid* out);
OccupancyGrid* out,
const std::set<int>* only_ids = nullptr);
} // namespace vslam