From 4590a214cfbc31bf3fe6cea0a3a0c438a0514f07 Mon Sep 17 00:00:00 2001 From: duongtd Date: Wed, 28 Oct 2026 14:11:01 +0700 Subject: [PATCH] config: enable detect_trolley, point PICKUP at the trolley, set the trolley footprint_dock - action_handlers_params.yaml: load the detect_trolley handler - compound_actions_params.yaml: PICKUP now runs DetectTrolley and docks to marker `trolley` instead of DetectPallet / marker `pallet` - maker_sources.yaml: trolley footprint_dock = outer box of the 4 legs of tci_trolley (0.75 x 0.547 m), simulation numbers until a real trolley is measured --- config/runtime/action_handlers_params.yaml | 2 +- config/runtime/compound_actions_params.yaml | 6 ++++-- config/runtime/maker_sources.yaml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/runtime/action_handlers_params.yaml b/config/runtime/action_handlers_params.yaml index abaeb7b..b83c5f9 100644 --- a/config/runtime/action_handlers_params.yaml +++ b/config/runtime/action_handlers_params.yaml @@ -39,7 +39,7 @@ actions: - {name: detect_lidar, type: DockPatternActionHandler} # Dò xe hàng 4 chân (gói trolley_detection_action). TẮT: bỏ comment dòng dưới để bật, SAU KHI # đã đo xe thật và sửa số trong khối `detect_trolley` bên dưới. - # - {name: detect_trolley, type: TrolleyDetectionActionHandler} + - {name: detect_trolley, type: TrolleyDetectionActionHandler} # --- detect: lấy mẫu frame đích rồi ghi ra một frame TF ổn định --------------------------------- # diff --git a/config/runtime/compound_actions_params.yaml b/config/runtime/compound_actions_params.yaml index 65a2201..890972f 100644 --- a/config/runtime/compound_actions_params.yaml +++ b/config/runtime/compound_actions_params.yaml @@ -56,8 +56,10 @@ vda5050_src: # --- PickUp: lấy kệ --------------------------------------------------------------------------- PICKUP: steps: - - {action: DetectPallet} - - {move_to: dock_target, profile: docking, marker: pallet} + # - {action: DetectPallet} + # - {move_to: dock_target, profile: docking, marker: pallet} + - {action: DetectTrolley} + - {move_to: dock_target, profile: docking, marker: trolley} # Lùi ra khỏi khe kệ. Quãng đường tương đối được quy ra pose tuyệt đối tại `submit`, từ pose # LÚC ĐÓ — lúc adapter sinh chặng thì robot còn chưa tới nơi. # ► Chỉnh: [m] âm = lùi. Đặt đủ dài để càng nâng ra hẳn khỏi khe kệ trước khi robot xoay; diff --git a/config/runtime/maker_sources.yaml b/config/runtime/maker_sources.yaml index 8e4b931..1085186 100644 --- a/config/runtime/maker_sources.yaml +++ b/config/runtime/maker_sources.yaml @@ -70,7 +70,7 @@ docking_marker_profiles: local_planner: HybridDockingLocalPlanner # Goal ở trọng tâm xe trolley (robot chui gầm) → cộng extent tâm→mặt từ footprint_dock. dock_anchor: center - footprint_dock: [[0.583,-0.48],[0.583,0.48],[-0.583,0.48],[-0.583,-0.48]] + footprint_dock: [[0.375,-0.2735],[0.375,0.2735],[-0.375,0.2735],[-0.375,-0.2735]] charger: global_planner: DockPlanner