optimal
This commit is contained in:
@@ -8,6 +8,7 @@ mission_adapters:
|
||||
mission_sources:
|
||||
- {name: goal_src, type: GoalSourceAdapter}
|
||||
- {name: vda5050_src, type: VDA5050SourceAdapter}
|
||||
- {name: instant_src, type: InstantActionSourceAdapter}
|
||||
|
||||
mission_timeout: 0.0 # [s] 0 = tắt
|
||||
clear_queue_on_failure: false # false = chỉ bỏ chặng lỗi, giữ phần còn lại của order
|
||||
@@ -20,6 +21,11 @@ GoalSourceAdapter:
|
||||
VDA5050SourceAdapter:
|
||||
library_path: libmission_adapters_vda5050_source
|
||||
|
||||
# Cùng .so, alias thứ hai. plugin_registry_test khoá đúng điểm này: hai symbol khác nhau trong một
|
||||
# thư viện phải nạp được thành hai adapter với hai schema khác nhau.
|
||||
InstantActionSourceAdapter:
|
||||
library_path: libmission_adapters_vda5050_source
|
||||
|
||||
# ── Các case lỗi mà plugin_registry_test cố ý dựng ra ────────────────────────────────────────────
|
||||
#
|
||||
# Mỗi case là một namespace riêng để test gọi loadFromConfig(nh, "<namespace>") mà không phải sinh
|
||||
@@ -105,3 +111,18 @@ vda5050_bad_profile:
|
||||
invalid_name:
|
||||
steps:
|
||||
- {move: 0.5, profile: dock}
|
||||
|
||||
# ── instant_src ───────────────────────────────────────────────────────────────────────────────────
|
||||
#
|
||||
# CỐ Ý không khai `compound_actions` ở đây: adapter phải đọc bảng của `vda5050_src`. Khai bảng thứ
|
||||
# hai là đúng cái bệnh hai-bản-lệch-nhau mà việc dùng chung sinh ra để tránh.
|
||||
instant_src:
|
||||
compound_actions_from: vda5050_src
|
||||
|
||||
# Trỏ tới một nguồn không khai bảng nào: hợp lệ, adapter chạy không có compound action nào.
|
||||
instant_src_no_table:
|
||||
compound_actions_from: registry_test_empty
|
||||
|
||||
# compound_actions_from rỗng -> configure() phải trượt ngay lúc boot.
|
||||
instant_src_empty_source:
|
||||
compound_actions_from: ""
|
||||
|
||||
Reference in New Issue
Block a user