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 <noreply@anthropic.com>
This commit is contained in:
@@ -1602,7 +1602,7 @@ void Runtime::RelocStep(const LaserScan& scan, const Pose2D& odom) {
|
|||||||
reloc_settle_scans_ = 0;
|
reloc_settle_scans_ = 0;
|
||||||
const Pose2D est = Pose2DCompose(m.map_from_odom, odom);
|
const Pose2D est = Pose2DCompose(m.map_from_odom, odom);
|
||||||
VSLAM_INFO("slam: reloc TIM THAY (" << est.x << ", " << est.y << ", "
|
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.");
|
<< " -- cho dung yen de tinh chinh truoc khi dat pose.");
|
||||||
SetRelocStatus("TIM THAY -- dung yen de tinh chinh", true);
|
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_lost_pending_ = false;
|
||||||
reloc_watch_next_ = now + std::chrono::seconds(1);
|
reloc_watch_next_ = now + std::chrono::seconds(1);
|
||||||
char buf[160];
|
char buf[160];
|
||||||
std::snprintf(buf, sizeof(buf), "DA DINH VI (%.2f, %.2f, %.0f do) sau %d vong, ty le %.2f",
|
std::snprintf(buf, sizeof(buf), "DA DINH VI (%.3f, %.3f, %.3f rad) sau %d vong, ty le %.2f",
|
||||||
pose.x, pose.y, pose.theta * 180.0 / M_PI, reloc_cycle_, reloc_settle_ratio_);
|
pose.x, pose.y, pose.theta, reloc_cycle_, reloc_settle_ratio_);
|
||||||
SetRelocStatus(buf, false);
|
SetRelocStatus(buf, false);
|
||||||
VSLAM_INFO("slam: " << buf << " (" << how << ") -- dat pose ban dau cho RTAB-Map; diem "
|
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 "
|
"tham chieu " << reloc_ref_score_ << ", se dinh vi lai neu tut duoi "
|
||||||
|
|||||||
Reference in New Issue
Block a user