From fb36ffd7a9af8d454c0d76bfc7e25b473f3ec2ff Mon Sep 17 00:00:00 2001 From: duongtd Date: Thu, 12 Nov 2026 17:02:43 +0700 Subject: [PATCH] chore: pull detectors that use robot_base_frame and an optional core threshold, drop the obsolete keys dock_pattern_detector 95c7df9 -> 3c7b126 (tape_core_intensity / tape_plateau_min_fraction optional), wall_reflector_detection_action b5da961 -> 48e1e9a and trolley_detection_action 775c168 -> 641932b (prior_frame replaced by robot_base_frame), move_base2 154fb7d -> ee3657f. action_handlers_params.yaml: remove prior_frame (both detectors) and the wall_pair tape_core_intensity 240 / tape_plateau_min_fraction 1.0, which equal their new defaults. The trolley tape_plateau_min_fraction 0.65 is a leg-matcher key and stays. --- config/runtime/action_handlers_params.yaml | 18 +++++++----------- .../Packages/actions/trolley_detection_action | 2 +- .../actions/wall_reflector_detection_action | 2 +- src/Libraries/dock_pattern_detector | 2 +- src/Navigations/Packages/move_base2 | 2 +- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/config/runtime/action_handlers_params.yaml b/config/runtime/action_handlers_params.yaml index ce88a79..a309e7a 100644 --- a/config/runtime/action_handlers_params.yaml +++ b/config/runtime/action_handlers_params.yaml @@ -69,8 +69,6 @@ actions: scan_topic: /b_scan # [-] Lùi vào tường; đổi forward phải đổi lidar và kiểm lại heading. entry_direction: backward - # [frame] Prior/quạt theo thân robot; đổi frame phải là frame gắn cứng, sai lệch làm sai ROI. - prior_frame: base_link # [-] Profile dùng khi order không mang khoá `reflector_profile`. default_profile: wall_pair # [-] Khóa trong actionParameters để chọn profile; đổi phải đồng bộ phía gửi order. @@ -129,14 +127,15 @@ actions: # xe 3/11/2026: lõi dải 240–255, tường 195–215, một điểm sáng không phải dải tới 243. # ► PHẢI đo lại với dải trên tường, ở tầm xa nhất định dùng: dải bẩn/xa có thể tụt dưới ngưỡng. # `/b_scan` là lidar khác thì thang khác hẳn — đo, đừng chép. + # Ngưỡng duy nhất của dải. Chỉ khi lidar có bloom nằm giữa hai mức mới thêm + # tape_core_intensity (mặc định bằng tape_min_intensity) và tape_plateau_min_fraction + # (mặc định 1.0). tape_min_intensity: 240.0 - tape_core_intensity: 240.0 # [tia] Ít nhất 3 tia core; tăng chống nhiễu nhưng dải 30 mm ở xa hoặc nhìn xiên không đủ tia. tape_min_points: 3 - # [rad, tỉ lệ] Bloom lidar thật CHƯA đo: 0 = không mask thêm, core chiếm toàn run. Đo độ loang - # quanh dải trong bag rồi mới bật. + # [rad] Bloom lidar thật CHƯA đo: 0 = không mask thêm. Đo độ loang quanh dải trong bag rồi + # mới bật. tape_bloom_max_angle: 0.0 - tape_plateau_min_fraction: 1.0 # [m] Bound mép và trần lượng tử, số theo sim; tăng trần nhận góc xấu hơn nhưng sai số lớn hơn. edge_bias_bound: 0.002 max_edge_uncertainty: 0.03 @@ -686,9 +685,6 @@ actions: # backward = lùi vào (lidar sau, heading goal trỏ RA cạnh vào). Đổi cái này thì đổi `scan_topic` # và dấu `prior_x`/`prior_yaw` theo. entry_direction: forward - # Frame khai `prior_*` và `search_fov`. base_link: lidar có thể gắn lệch tâm robot (hook_150: - # 0.454 m), khai trong frame lidar là lệch đúng ngần ấy. - prior_frame: base_link # [s] Chờ robot đứng hẳn trước khi lấy mẫu. Tăng nếu thân robot còn rung khi vừa dừng. settle_delay: 0.4 # [s] Hết giờ mà chưa chốt -> kFailed. Phải > settle_delay + sample_window + hold_time. @@ -825,7 +821,8 @@ actions: # (1.6 m, 3 chân); ca yếu 0.021–0.05 bị loại. Sửa detect fail khi đứng gần (opening đo 0.70–0.72 so # với 0.762) và goal dừng thiếu ~3 cm. CHƯA chạy thử trên robot; chưa có dữ liệu xa hơn 1.6 m. tape_range_bias_all_max_std: 0.02 - # Prior (D3): vùng tìm xe so với robot, trong `prior_frame`. TẮT: robot dò ở điểm do server + # Prior (D3): vùng tìm xe so với robot, trong frame thân robot (`robot_base_frame` của + # move_base2, `base_link` trên robot này). TẮT: robot dò ở điểm do server # đặt, không cố định so với xe — prior chặt loại luôn xe thật (log 28/10: robot đứng cách tâm # xe 2.30 m, xoay 17.7° → "too few legs"). Tắt prior thì lấy xe điểm tin cao nhất trong # `max_range`; robot phải thấy >= `min_legs` chân, tức tâm xe cách lidar <= ~2.5 m. Hai xe @@ -855,7 +852,6 @@ actions: # output_frame: dock_target # scan_topic: /b_scan # entry_direction: backward - # prior_frame: base_link # Bảng symbol -> thư viện cho Boost.DLL. KHÔNG phải tham số tinh chỉnh — thiếu `library_path` là # 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". diff --git a/src/Algorithms/Packages/actions/trolley_detection_action b/src/Algorithms/Packages/actions/trolley_detection_action index 775c168..641932b 160000 --- a/src/Algorithms/Packages/actions/trolley_detection_action +++ b/src/Algorithms/Packages/actions/trolley_detection_action @@ -1 +1 @@ -Subproject commit 775c16820b3213a1cc1f6dc0e805c7bf19edfa55 +Subproject commit 641932b6015f36a101f4f4ac926d86301cd9e9ba diff --git a/src/Algorithms/Packages/actions/wall_reflector_detection_action b/src/Algorithms/Packages/actions/wall_reflector_detection_action index b5da961..48e1e9a 160000 --- a/src/Algorithms/Packages/actions/wall_reflector_detection_action +++ b/src/Algorithms/Packages/actions/wall_reflector_detection_action @@ -1 +1 @@ -Subproject commit b5da961449b32617a5285a11d153cb48f36d5d85 +Subproject commit 48e1e9a0ed126b348a8dcd50be30f9cf6838a8a6 diff --git a/src/Libraries/dock_pattern_detector b/src/Libraries/dock_pattern_detector index 95c7df9..3c7b126 160000 --- a/src/Libraries/dock_pattern_detector +++ b/src/Libraries/dock_pattern_detector @@ -1 +1 @@ -Subproject commit 95c7df90556fa0196851ce2d76967f395d522a37 +Subproject commit 3c7b126f1e043a546c2ceba9743b204d44c8b013 diff --git a/src/Navigations/Packages/move_base2 b/src/Navigations/Packages/move_base2 index 154fb7d..ee3657f 160000 --- a/src/Navigations/Packages/move_base2 +++ b/src/Navigations/Packages/move_base2 @@ -1 +1 @@ -Subproject commit 154fb7d0911cd635817166a8f3f917963dc1b89c +Subproject commit ee3657fefb41c5181d46b627cc53a44de6e9ccde