This commit is contained in:
trung09122002
2026-09-19 15:33:52 +07:00
parent 48bd5377dc
commit 3b281174d0
22 changed files with 1913 additions and 119 deletions

View File

@@ -27,6 +27,7 @@
// theo luong, de review thay ngay cai nao cham vao cai nao.
#include <atomic>
#include <functional>
#include <memory>
#include <map>
#include <mutex>
@@ -221,6 +222,24 @@ class Runtime {
bool slam_should_save_ = false;
// Tran toc do dang dung (m/s): tu robot.yaml, hoac --max-speed ghi de.
double speed_limit_ = 0.35;
// Gia toc thuc su dung. Bang robot.yaml, TRU khi `--max-speed` noi tran --
// khi do no noi theo cung ti le, xem ghi chu trong runtime.cc.
double accel_limit_ = 0.30;
// Sai so vs ground truth, de ghi log dinh ky. Chi co nghia khi chay sim.
// Lay ground truth cua mo phong. Rong khi khong chay sim.
//
// Dung std::function chu khong con tro toi SimSource: `wiring.cc` khong
// thay dinh nghia cua `SourceHolder`, va keo them mot include vao day chi
// de doc mot Pose2D la khong dang.
std::function<Pose2D()> gt_fn_;
// Ground truth CHOT cung luc voi EKF, duoi `odom_mu_`. Doc tuoi luc chup
// snapshot roi dem voi pose cu la do DO TRE chu khong phai sai so.
Pose2D gt_at_ekf_;
bool have_gt_at_ekf_ = false;
double gt_err_max_ = 0.0;
double gt_err_last_log_ = 0.0;
#ifdef VSLAM_HAVE_SLAM
SlamMode slam_mode_ = SlamMode::kMapping;
#endif