Drop the simulation-only handlers and the disabled observation sources

The robot profile no longer carries the NoopActionHandler stub: on a real robot
a PickUp routed through it reports success while the fork never moves, and the
fleet master then dispatches the next leg believing the load is aboard. The
waiter and reporter handlers go with it.

Also removes the observation sources and the virtual-walls layer that were only
present commented out, so the file lists what the robot actually runs.
This commit is contained in:
2026-08-17 16:29:07 +07:00
parent 8b90aa6b87
commit 2c6e309ec9
4 changed files with 3 additions and 123 deletions

View File

@@ -31,18 +31,6 @@ actions:
- {name: detect_pallet, type: FrameSamplerActionHandler}
# Hai handler THẬT, chạy được cả trên robot: chúng không điều khiển thiết bị nào vì chính action
# đó không yêu cầu thiết bị nào.
- {name: waiter, type: WaitActionHandler}
- {name: reporter, type: LogReportActionHandler}
# ⚠ STUB MÔ PHỎNG, CHỈ DÀNH CHO SIM/DEV. `NoopActionHandler` chỉ log rồi báo thành công sau
# `duration` giây — nó KHÔNG nói chuyện với thiết bị nào. Trên robot thật, một `PickUp` chạy qua
# đây nghĩa là robot báo "đã nâng kệ" trong khi càng nâng chưa hề nhúc nhích, và fleet master sẽ
# giao chặng tiếp theo với giả định hàng đã ở trên xe. Thay bằng handler thật (nói chuyện với
# PLC/băng tải/càng nâng) trước khi chạy ngoài hiện trường.
- {name: sim_noop, type: NoopActionHandler}
# --- detect: lấy mẫu frame đích rồi ghi ra một frame TF ổn định ---------------------------------
detect_charger:
action_types: [DETECTCHARGER]
@@ -154,42 +142,7 @@ actions:
# ► Chỉnh: phải > settle_delay + sample_window (1.0 + 2.0) cộng dư địa cho perception khởi động.
timeout: 40.0
# --- waiter: đứng chờ một khoảng thời gian ------------------------------------------------------
waiter:
action_types: [WAIT]
# [s] Dùng khi action không kèm tham số `duration`.
# ► Chỉnh: đặt theo thời gian chờ điển hình của quy trình (mở cửa, người lấy hàng...).
default_duration: 2.0
# [s] Trần cứng; vượt trần thì action THẤT BẠI, không bị cắt ngắn.
# ► Chỉnh: cố ý fail thay vì cắt ngắn — cắt ngắn sẽ báo "xong" khi việc chưa xong. TĂNG nếu quy
# trình có bước chờ dài hợp lệ (sạc, chờ ca).
max_duration: 600.0
# --- reporter: chỉ ghi log, không điều khiển gì -------------------------------------------------
reporter:
action_types: [LOGREPORT]
# --- sim_noop: STUB, giả lập thiết bị ------------------------------------------------------------
sim_noop:
# ⚠ `PickUp` và `charge` KHÔNG có ở đây: chúng là compound action, adapter đã dịch chúng thành
# chuỗi chặng và GỠ khỏi danh sách action. Thứ tới được ActionRunner là các actionType do chuỗi
# đó sinh ra (`LiftFork`, `startCharging`) cộng với action thường của order.
#
# Đây đúng chỗ dễ trôi lệch nhất giữa hai bảng: khai `PickUp` ở đây thì handler không bao giờ
# được gọi, còn quên `LiftFork` thì chặng thiết bị ABORT giữa chừng với kệ đang trên càng.
#
# ► Chỉnh: mỗi lần thêm một step `{action: X}` vào compound_actions_params.yaml thì PHẢI thêm X
# vào đây (hoặc vào handler thật tương ứng).
action_types: [LIFTFORK, STARTCHARGING, DROPCONTAINER, DROP, MUTEDON, MUTEDOFF, PICK, DROP]
# [s] Thời gian giả lập thiết bị làm việc.
# ► Chỉnh: đặt ~= thời gian thật của thiết bị để timing trên sim giống hiện trường.
duration: 2.0
# [s] Timeout TẦNG 1 — trách nhiệm của chính handler.
# ► Chỉnh: phải > `duration`. Với handler THẬT, đặt theo hiểu biết thiết bị ("nâng kệ quá 20 s
# là bất thường" vs "sạc 30 phút là bình thường"), đừng dùng một con số chung.
timeout: 30.0
# ⚠ CỐ Ý KHÔNG KHAI: khoá `hang` (mặc định false) là TEST HOOK làm handler treo vĩnh viễn, chỉ
# dùng để kiểm đường timeout trong unit test. Khai `hang: true` trên robot = chặng đứng im cho
@@ -199,12 +152,3 @@ actions:
# 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".
FrameSamplerActionHandler:
library_path: libaction_core_frame_sampler_action_handler
WaitActionHandler:
library_path: libaction_core_wait_action_handler
LogReportActionHandler:
library_path: libaction_core_log_report_action_handler
NoopActionHandler:
library_path: libaction_core_noop_action_handler

View File

@@ -22,22 +22,8 @@ virtual_walls_map:
obstacles:
observation_sources:
# f_scan_marking: f_scan_marking f_scan_clearing b_scan pc_marking pc_clearing pc_r_marking pc_r_clearing
# topic: /f_scan
# data_type: LaserScan
# clearing: false
# marking: true
# inf_is_valid: true
# min_obstacle_height: 0.0
# max_obstacle_height: 0.25
# f_scan_clearing:
# topic: /f_scan
# data_type: LaserScan
# clearing: true
# marking: false
# inf_is_valid: true
# min_obstacle_height: 0.0
# max_obstacle_height: 0.25
# b_scan
b_scan:
topic: /b_scan
data_type: LaserScan
@@ -48,54 +34,6 @@ obstacles:
min_obstacle_height: 0.0
max_obstacle_height: 0.25
pc_marking:
topic: /camera/depth/points_proc
data_type: PointCloud2
clearing: false
marking: true
inf_is_valid: false
frustum_clearing_enabled: false
observation_persistence: 0.0
expected_update_rate: 0.5
obstacle_range: 2.5
raytrace_range: 3.0
min_obstacle_height: 0.1
max_obstacle_height: 1.0
pc_clearing:
topic: /camera/depth/data
data_type: DepthCameraData
clearing: false
marking: true
frustum_clearing_enabled: true
frustum_clearing_pixel_step: 8
frustum_min_range: 0.20
frustum_max_range: 3.5
pc_r_marking:
topic: /camera_right/depth/points_proc
data_type: PointCloud2
clearing: false
marking: true
inf_is_valid: false
frustum_clearing_enabled: false
observation_persistence: 0.0
expected_update_rate: 0.5
obstacle_range: 2.5
raytrace_range: 3.0
min_obstacle_height: 0.1
max_obstacle_height: 1.0
pc_r_clearing:
topic: /camera_right/depth/data
data_type: DepthCameraData
clearing: false
marking: true
frustum_clearing_enabled: true
frustum_clearing_pixel_step: 8
frustum_min_range: 0.20
frustum_max_range: 3.5
# Việc xoá vật cản (clearing) của camera depth do VoxelLayer đảm nhiệm bằng
# frustum clearing, lấy dữ liệu từ /camera/depth/image_raw +
# /camera/depth/camera_info. Nhánh /camera_right/depth/data cũng đi đường đó.

View File

@@ -2,7 +2,6 @@ global_costmap:
frame_id: map
plugins:
- {name: navigation_map, type: "StaticLayer" }
# - {name: virtual_walls_map, type: "StaticLayer" }
- {name: obstacles, type: "VoxelLayer" }
- {name: inflation, type: "InflationLayer" }
obstacles:

View File

@@ -1,7 +1,6 @@
local_costmap:
frame_id: odom
plugins:
# - {name: virtual_walls_map, type: "StaticLayer" }
- {name: obstacles, type: "VoxelLayer" }
- {name: inflation, type: "InflationLayer" }
obstacles: