config(runtime): wall reflector station for the Gazebo test (detect + GoToWallStation)
- action_handlers: detect_wall_reflector (WallReflectorDetectionActionHandler, rear /b_scan, backward entry) with the sim profile sim_wall_pair: strips 0.03 m wide, 0.09 m apart, Gazebo laser_retro intensity, offset_x 0.85. SIM-ONLY numbers; the robot profile lives in rb_ws. - compound_actions: GoToWallStation = DetectWallReflectors, then move_to wall_reflector_target with profile docking and marker wall_station. - maker_sources: wall_station in the allow-list and its profile (DockPlanner + HybridDockingLocalPlanner, dock_anchor mating_edge, dock_face_offset 0.85 = offset_x, dock_straight_length 0.3).
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# ► Chỉnh: chỉ thêm/bớt TÊN, cách nhau bằng khoảng trắng. Giữ danh sách tối thiểu — mỗi tên thừa là
|
||||
# một đường vào chưa được kiểm chứng. Sẽ bỏ hẳn khi `dockTo` được chuyển sang dock_sequences khai
|
||||
# báo trong compound_actions_params.yaml.
|
||||
maker_sources: trolley charger dock_station pallet
|
||||
maker_sources: trolley charger dock_station pallet wall_station
|
||||
|
||||
# Marker có entry ở đây dùng CẶP PLANNER RIÊNG. Marker rỗng, hoặc chỉ có trong `maker_sources` mà
|
||||
# không nằm trong bảng này, sẽ dùng cặp `docking` mặc định của move_base_common_params.yaml.
|
||||
@@ -141,3 +141,24 @@ docking_marker_profiles:
|
||||
# Goal teach ở tâm mặt pallet → dock không đóng góp khoảng dừng, footprint_dock bị bỏ qua.
|
||||
dock_anchor: center
|
||||
footprint_dock: [[0.5,-0.5],[0.5,0.5],[-0.5,0.5],[-0.5,-0.5]]
|
||||
|
||||
# Trạm dừng trước tường có hai dải phản quang (DetectWallReflectors → `wall_reflector_target`).
|
||||
# Goal = pose base_link lúc đã dừng (bộ dò cộng sẵn offset_x của profile tường), mặt tường nằm
|
||||
# sau đuôi robot đúng `dock_face_offset` → cùng ngữ nghĩa với `charger`: mating_edge, nên
|
||||
# DockPlanner bỏ qua footprint_dock (khai cho đủ khoá, không vào công thức).
|
||||
wall_station:
|
||||
global_planner: DockPlanner
|
||||
local_planner: HybridDockingLocalPlanner
|
||||
dock_anchor: mating_edge
|
||||
footprint_dock: [[0.05,-1.0],[0.05,1.0],[-0.05,1.0],[-0.05,-1.0]]
|
||||
# [m] PHẢI bằng `offset_x` của profile tường đang dùng (detect_wall_reflector, sim_wall_pair:
|
||||
# 0.85): khoảng từ goal base_link tới mặt tường. Lệch thì planner tính sai chỗ còn được xoay.
|
||||
# ► Chỉnh: đổi offset_x của profile thì đổi số này theo; trong (0, 2.0] m.
|
||||
dock_face_offset: 0.85
|
||||
# [m] Khe hở thêm cho vòng quét khi xoay tại chỗ gần tường. Tăng an toàn hơn nhưng có thể cấm
|
||||
# xoay khi robot đã gần trạm.
|
||||
dock_pivot_safety_margin: 0.10
|
||||
# [m] Ghi đè terminal/straight_length chỉ cho marker này; không khai thì dùng mặc định.
|
||||
# Tăng thì đoạn lùi/tiến thẳng cuối dài hơn, nhưng cần xuất phát xa goal hơn; nếu không planner
|
||||
# có thể chuyển sang hình có cusp hoặc xoay.
|
||||
dock_straight_length: 0.3
|
||||
|
||||
Reference in New Issue
Block a user