This commit is contained in:
trung09122002
2026-09-19 19:42:18 +07:00
parent b927ef827d
commit 823e895d78
2 changed files with 22 additions and 1 deletions

View File

@@ -56,6 +56,22 @@ PerceptionOutput PerceptionPipeline::Process(const Image& depth, const CameraInf
CliffResult cr = cliff_.Process(depth, info, cam_to_base_, clock_.Now());
out.cliff_detected = cr.detected;
out.cliff_detail = cr.judged ? "judged" : CliffBailName(cr.bail);
// Bao LY DO ra log, khong chi ra web.
//
// cliff_detected = true co HAI nghia rat khac nhau:
// judged -> that su thay vuc
// <bail> -> detector khong phan xet duoc va fail_safe bat len
// Lop safety in cung mot cau cho ca hai, nen khong phan biet duoc tu log.
// Da mat nhieu thoi gian vi dieu do tren robot: "VUC phia truoc" lien tuc
// trong khi truoc mat trong khong.
if (cr.detected) {
VSLAM_WARN_THROTTLE(5.0,
"cliff: bao VUC, ly do=" << out.cliff_detail
<< (cr.judged ? " (thay vuc THAT)"
: " (KHONG phan xet duoc -> fail_safe)")
<< " -- mu lien tuc " << cr.bail_held << " s, n_cliff=" << cr.n_cliff);
}
if (!cr.edge_cloud.points.empty()) {
out.cloud_cliff = std::make_shared<const PointCloudXYZ>(std::move(cr.edge_cloud));
}