feat: resume driving during a stationary recovery; host intrusion detector

- recovery_resume: while an allowed stationary behavior (detour_path)
  runs, probe the local planner; its command never reaches the arbiter;
  after N moving cycles cancel the recovery and resume the current plan,
  capped per leg
- host the env_monitor_core IntrusionDetector (EnvContext, footprint)
- runtime config: recovery_resume keys, priest_fallback keys, evade
  max_tf_gap / view_loss_timeout, SBPL detour options, env_monitor tuning
This commit is contained in:
2026-11-27 22:06:59 +07:00
parent 6c0b9e110a
commit ab9ed67f97
15 changed files with 457 additions and 120 deletions

View File

@@ -232,6 +232,9 @@ PriestMpccLocalPlanner:
contact_escape_time: 1.5 # [s] (mpcc, F4) phải ra khỏi chỗ chạm trong chừng này; quá thì giữ rồi recovery.
priest_candidates: 4 # (mpcc) số quỹ đạo PRIEST dự phòng ngoài quỹ đạo tốt nhất. Tăng = nhiều phương án
# khi quỹ đạo tốt nhất cắt vật (~0.1 ms mỗi quỹ đạo). 0 = chỉ tốt nhất. Trần 16.
priest_fallback_enabled: true # [bool] MPCC hết lệnh thì chạy lệnh PRIEST có bao tốc độ theo khoảng hở thân
priest_fallback_min_clearance: 0.015 # [m] khoảng hở tối thiểu thân tới tâm ô; giảm = sát hơn, quệt nhiều hơn
priest_fallback_check_length: 1.5 # [m] đoạn quỹ đạo PRIEST được kiểm phía trước
debug: true # log nhóm debug/hybrid: đổi bên lái, đổi tham chiếu và lý do, đổi mode MPCC,
# tổng kết mỗi leg. Công tắc còn lại ở mục Debug ngay dưới. Log lỗi không tắt được.