From 3a1502f147b20c48fa5e96c72cc939093c45f8ee Mon Sep 17 00:00:00 2001 From: duongtd Date: Thu, 27 Aug 2026 13:45:15 +0700 Subject: [PATCH] Take the move_base2 debug switches onto the robot config move_base2 advances five commits, three of which matter here: the sensor key argument renamed to topic, the dead terminal_direction key dropped from the docking allow-list, and the diagnostic logs put behind switches. Only the switches need a config key, and they are added rather than tuned. All three default to true, which is exactly what this tree does today: every [move_base2][debug] line printed unconditionally, so nothing about the running robot changes until somebody deliberately turns a group off. The abort-detail line is not among them and cannot be silenced. Values tuned on the robot are untouched; this commit only adds keys. --- config/runtime/move_base_common_params.yaml | 27 +++++++++++++++++++++ src/Navigations/Packages/move_base2 | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/config/runtime/move_base_common_params.yaml b/config/runtime/move_base_common_params.yaml index 1e3a891..46ec4ae 100644 --- a/config/runtime/move_base_common_params.yaml +++ b/config/runtime/move_base_common_params.yaml @@ -305,3 +305,30 @@ mission_layer_enabled: true # nguyên nhân phổ biến nhất của lỗi "plugin build xong nhưng runtime báo không tìm thấy". MoveBase: library_path: libmove_base2 + +# --- Công tắc log chẩn đoán -------------------------------------------------------------------- +# +# Mọi dòng `[move_base2][debug]` trước đây in VÔ ĐIỀU KIỆN. Trên robot chạy cả ca, phần lớn chúng +# là tiếng ồn: chúng mô tả đường đi BÌNH THƯỜNG, và tiếng ồn thường trực làm dòng thật sự bất +# thường trôi mất giữa hàng nghìn dòng giống hệt nhau. +# +# ► Mặc định BẬT cả ba. Tắt là lựa chọn có ý thức, không phải thứ đổi sau lưng người đang dựa vào +# log để debug. +# +# Dòng LỖI không nằm trong nhóm nào ở đây và không tắt được — ví dụ `abort detail: recovery route +# exhausted`. Tắt được một dòng lỗi nghĩa là tồn tại cấu hình khiến robot hỏng trong im lặng. +debug: + # Chuyển trạng thái của state machine: `state -> CONTROLLING: valid plan available (...)`. + # ► Chỉ in khi ĐỔI trạng thái, không phải mỗi chu kỳ — rẻ, và thường là dòng đáng giữ nhất vì nó + # nói TẠI SAO đổi cùng trạng thái của từng runner lúc đó. Giữ bật trừ khi thật sự cần log sạch. + state: true + + # Controller nhận/từ chối plan, và path do recovery sinh ra. + # ► Một dòng mỗi lần lập plan. Tắt khi chạy mission dài và không quan tâm tuyến đi. + plan: true + + # Vì sao controller bị bỏ qua trong lúc CONTROLLING: thiếu pose, costmap quá hạn, hoặc controller + # không trả về lệnh hợp lệ. + # ► Nhóm ỒN NHẤT — có thể in mỗi chu kỳ khi có gì đó sai kéo dài. Nhưng cũng chính là nhóm trả + # lời câu "robot đứng im mà không tầng nào báo lỗi", nên ĐỪNG tắt khi đang truy lỗi. + skip: true diff --git a/src/Navigations/Packages/move_base2 b/src/Navigations/Packages/move_base2 index 8571943..c626c4d 160000 --- a/src/Navigations/Packages/move_base2 +++ b/src/Navigations/Packages/move_base2 @@ -1 +1 @@ -Subproject commit 857194367f05ecacfa17f428dee2aa31b0e693f0 +Subproject commit c626c4d45d04fc011d439830139f40e55447693c