From 153bb1bcb0523cffd4b261962ff94a50076300a4 Mon Sep 17 00:00:00 2001 From: trung09122002 Date: Thu, 1 Oct 2026 11:06:56 +0700 Subject: [PATCH] reloc: dong DA DINH VI / TIM THAY hien yaw bang rad, cung don vi voi o POSE tren web Co-Authored-By: Claude Opus 5.5 --- app/src/runtime.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/runtime.cc b/app/src/runtime.cc index cc61b8b..ac09b31 100644 --- a/app/src/runtime.cc +++ b/app/src/runtime.cc @@ -1602,7 +1602,7 @@ void Runtime::RelocStep(const LaserScan& scan, const Pose2D& odom) { reloc_settle_scans_ = 0; const Pose2D est = Pose2DCompose(m.map_from_odom, odom); VSLAM_INFO("slam: reloc TIM THAY (" << est.x << ", " << est.y << ", " - << est.theta * 180.0 / M_PI << " do), ty le " << m.ratio() + << est.theta << " rad), ty le " << m.ratio() << " -- cho dung yen de tinh chinh truoc khi dat pose."); SetRelocStatus("TIM THAY -- dung yen de tinh chinh", true); } @@ -1707,8 +1707,8 @@ void Runtime::RelocFinish(const Pose2D& map_from_odom, const Pose2D& odom, reloc_lost_pending_ = false; reloc_watch_next_ = now + std::chrono::seconds(1); char buf[160]; - std::snprintf(buf, sizeof(buf), "DA DINH VI (%.2f, %.2f, %.0f do) sau %d vong, ty le %.2f", - pose.x, pose.y, pose.theta * 180.0 / M_PI, reloc_cycle_, reloc_settle_ratio_); + std::snprintf(buf, sizeof(buf), "DA DINH VI (%.3f, %.3f, %.3f rad) sau %d vong, ty le %.2f", + pose.x, pose.y, pose.theta, reloc_cycle_, reloc_settle_ratio_); SetRelocStatus(buf, false); VSLAM_INFO("slam: " << buf << " (" << how << ") -- dat pose ban dau cho RTAB-Map; diem " "tham chieu " << reloc_ref_score_ << ", se dinh vi lai neu tut duoi "