Files
trolley_detection_action/test/config/action_handlers_params.yaml
duongtd 641932b601 feat: take the detection frame from robot_base_frame, drop prior_frame
The search fan, prior and mount checks are now expressed in the context's
robot_base_frame, like DockPatternActionHandler. A leftover prior_frame equal
to it loads with one warning; a different one fails init.
2026-11-12 17:01:54 +07:00

126 lines
5.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Config CHỈ cho trolley_detection_action_test — không phải config chạy robot.
# Ba instance cùng plugin: tiến (lidar trước), lùi (lidar sau), và một instance khai SAI hướng để
# kiểm đường từ chối.
actions_trolley:
handlers:
- {name: detect_trolley, type: TrolleyDetectionActionHandler}
- {name: detect_trolley_back, type: TrolleyDetectionActionHandler}
- {name: detect_trolley_wrong, type: TrolleyDetectionActionHandler}
detect_trolley:
action_types: [DetectTrolley]
output_frame: dock_target
scan_topic: /f_scan
entry_direction: forward
settle_delay: 0.0 # [s] test tự điều khiển đồng hồ
timeout: 5.0 # [s]
default_profile: tci_trolley
min_range: 0.10 # [m]
max_range: 3.0 # [m]
range_sigma: 0.01 # [m]
sample_window: 1.0 # [s]
min_samples: 3
max_spread_xy: 0.05 # [m]
max_spread_yaw: 0.10 # [rad]
debug:
detect: true
profiles:
tci_trolley:
cart_opening: 0.517 # [m]
cart_depth: 0.720 # [m]
leg_shape: box
leg_width: 0.030 # [m]
min_legs: 3
# [-] Tỷ lệ plateau liên tiếp gần nhất trong run sáng bị trải cự ly; 0 tắt, cần bật tape và bloom.
# Tăng giúp loại lõi bloom dốc, nhưng dễ mất chân thật; giảm cứu thêm chân nhưng có thể nhận lõi méo.
# Ngưỡng quá thấp nguy hiểm vì pose sai; phải nhỏ hơn 1. KIT dán băng gương dùng 0.65 để giữ
# chân có dốc ở mép và loại lõi bị bloom; chỉ dùng sau khi kiểm chứng trên scan của lidar.
tape_plateau_min_fraction: 0.0
# [m] σ tối đa cho bias khi mọi góc đều sáng; 0 tắt. Tăng nhận xa hơn nhưng dễ sai pose;
# giảm bỏ nhiều trường hợp. Ngưỡng lớn nguy hiểm do bias lẫn với tịnh tiến; miền 0–0.1.
tape_range_bias_all_max_std: 0.0
# Khi tape_enabled: false, bốn khoá tape dưới đây bị bỏ qua và được liệt kê lúc boot;
# có thể giữ giá trị đã chỉnh khi tháo dải. Miền giá trị vẫn được kiểm tra.
tci_trolley_tape_off:
cart_opening: 0.517
cart_depth: 0.720
leg_shape: box
leg_width: 0.030
tape_enabled: false
tape_bloom_max_angle: 0.10
tape_range_bias_sigma: 0.05
tape_plateau_min_fraction: 0.65
tape_range_bias_all_max_std: 0.02
tci_trolley_plateau:
cart_opening: 0.517 # [m] Khoảng cách chân cạnh vào của xe test.
cart_depth: 0.720 # [m] Khoảng cách chân dọc xe test.
leg_shape: box
leg_width: 0.030 # [m] Bề rộng chân test.
tape_enabled: true
tape_bloom_max_angle: 0.10 # [rad] Góc lọc bloom cho test.
# [-] Ngưỡng plateau: tăng loại nhiều lõi dốc hơn, giảm dễ nhận lõi méo gây sai pose;
# 0 tắt, phải nhỏ hơn 1 và cần tape cùng bloom. KIT băng gương dùng 0.65 để cứu mép dốc.
tape_plateau_min_fraction: 0.65
# [m] σ tối đa cho bias mọi góc sáng; 0 tắt, cần tape và sigma > 0.
# Tăng nhận xa hơn nhưng dễ sai pose; giảm từ chối nhiều hơn; > 0.1 nguy hiểm và bị cấm.
# 0.02 chỉ để test, KIT cần replay xác nhận trước khi sử dụng.
tape_range_bias_sigma: 0.05
tape_range_bias_all_max_std: 0.02
tci_trolley_prior:
cart_opening: 0.517
cart_depth: 0.720
leg_shape: box
leg_width: 0.030
min_legs: 3
has_prior: true
# [m] Tâm xe trong base_link = 0.454 (lidar) + 1.26. Trong frame lidar xe ở 1.26, lệch
# 0.454 > search_radius: test chỉ qua khi prior được tính trong base_link.
prior_x: 1.714
prior_y: 0.0
prior_yaw: 3.14159
prior_yaw_tolerance: 0.35
search_radius: 0.30
detect_trolley_back:
action_types: [DetectTrolleyBackward]
output_frame: dock_target
scan_topic: /b_scan
entry_direction: backward
settle_delay: 0.0
timeout: 5.0
default_profile: tci_trolley
sample_window: 1.0
min_samples: 3
max_spread_xy: 0.05
max_spread_yaw: 0.10
profiles:
tci_trolley:
cart_opening: 0.517
cart_depth: 0.720
leg_shape: box
leg_width: 0.030
# Khai `forward` nhưng đọc lidar SAU: phải fail ngay ở scan đầu, không được ghi goal ngược.
detect_trolley_wrong:
action_types: [DetectTrolleyWrong]
output_frame: dock_target
scan_topic: /b_scan
entry_direction: forward
settle_delay: 0.0
timeout: 5.0
default_profile: tci_trolley
sample_window: 1.0
min_samples: 3
max_spread_xy: 0.05
max_spread_yaw: 0.10
profiles:
tci_trolley:
cart_opening: 0.517
cart_depth: 0.720
leg_shape: box
leg_width: 0.030
# Bảng symbol -> thư viện cho Boost.DLL.
TrolleyDetectionActionHandler:
library_path: libtrolley_detection_action_handler