Retune the dev simulation config

Bench and Gazebo settings only; the robot trees are untouched.

Planners: the position profile moves to PriestLocalPlanner, and the three
docking profiles all point at HybridDockingLocalPlanner instead of the Stanley
instances. Loop drops to 20 Hz, command_semantics back to twist for the sim
drive, max_vel_x to 1.20, recovery behaviours and the path monitor off while
the docking chain is under test.

PRIEST runs cem 3 with performance_metrics off and debug_level 0, which is the
configuration the CPU measurements were taken at. Metrics have to stay off for
any further benchmark.

The SBPL primitive path pointed into rl_ws, a workspace that is not on this
machine; it now points at the copy in sbpl_lattice_planner. sensor_store's
report_period goes to 0 to stop the periodic dump. The sim launch defaults
robot_type to T800 and re-enables depth_image_proc.

The VDA5050 charger flow replaces the pallet fixture: DetectCharger and the
charger marker, with the trailing back-off commented out. The rotate compound
action is renamed to lowercase to match what the config reader looks up.
This commit is contained in:
2026-08-27 13:22:26 +07:00
parent 4cdbc11470
commit c626c4d45d
15 changed files with 974 additions and 157 deletions

View File

@@ -24,23 +24,25 @@ position:
global_planner: CustomPlanner # vật chất hoá tuyến NURBS từ edge của VDA5050 Order.
# MÙ VẬT CẢN theo thiết kế — nó là route materializer, không
# phải search planner. Chỉ có bản makePlan(Order, ...).
local_planner: StanleyLocalPlanner
local_planner: PriestLocalPlanner
docking:
# goal_frame đã được ControlLoop quy thành pose tuyệt đối. DockPlanner dùng đúng contract
# makePlan(start, goal, plan), còn CustomPlanner chỉ xử lý makePlan(Order, start, goal, plan).
# đây là config default sẽ được dùng nếu config theo từng maker docking ở file maker_sources.yaml bị bỏ trống
global_planner: DockPlanner
local_planner: StanleyDockingLocalPlanner # instance Stanley riêng, đọc block cùng tên trong
# stanley_local_planner_params.yaml (copy đầy đủ + override)
local_planner: HybridDockingLocalPlanner # CÙNG plugin hybrid, instance RIÊNG: đọc block cùng tên
# trong hybrid_local_planner_params.yaml (bản sao ĐẦY ĐỦ
# + override). Chặng dock bật plan_tf_freeze và TẮT né
# vật cản, không đụng tới profile chạy tự do.
go_straight:
global_planner: TwoPointsPlanner
local_planner: StanleyGoStraightLocalPlanner # instance Stanley riêng, block cùng tên (path 2 điểm thẳng)
local_planner: HybridDockingLocalPlanner # instance Stanley riêng, block cùng tên (path 2 điểm thẳng)
rotate:
global_planner: TwoPointsPlanner
local_planner: StanleyRotateLocalPlanner # instance Stanley riêng: XY đã trong tolerance -> Phase B xoay về yaw goal
local_planner: HybridDockingLocalPlanner # instance Stanley riêng: XY đã trong tolerance -> Phase B xoay về yaw goal
# Đường lùi chung cho mọi profile: planner chính trả false hoặc plan rỗng thì move_base2 đổi sang
# planner này đúng MỘT lần cho request hiện tại. Backup cũng fail thì mới chạy recovery; request mới
@@ -72,7 +74,7 @@ docking_requires_marker: false
# ► Chỉnh: phải >= nhịp mà local planner giải xong một lần. Priest/Hybrid solve ~30 ms nên 30 Hz là
# sát trần — nếu log hiện nhiều dòng "solve took ... (limit ...)" thì HẠ xuống 20 Hz thay vì ép
# planner chạy nhanh hơn. Tăng lên >30 chỉ có nghĩa khi controller thật sự rẻ hơn 1/f giây.
controller_frequency: 30.0
controller_frequency: 20.0
# [s] Controller không ra lệnh (kể cả mất pose) thì robot DỪNG TẠI CHỖ và vẫn ở CONTROLLING;
# quá controller_patience mới vào RECOVERING(controlling_failed). Không còn nhánh "hỏng một cycle
@@ -158,13 +160,13 @@ oscillation_distance: 0.5
# `steering` là đổi nghĩa cho CẢ recovery, nên chỉ đổi khi robot thật sự là bicycle VÀ route
# recovery đã bỏ/thay hành vi xoay tại chỗ (bicycle không xoay tại chỗ được).
# Riêng việc chạy được bicycle thì `max_vel_theta` bên dưới đã đủ: 1.5708 không còn bị cắt.
command_semantics: steering
command_semantics: twist
# [m/s] Trần tốc độ tiến (semantics `steering`: tốc độ bánh steer). Phải > max_vel_x của local
# planner đang chạy — stanley 0.50, pnkx 1.2.
# ► Chỉnh: nới thêm ~20% so với planner nhanh nhất được phép chạy. Hạ xuống dưới trần planner là
# cắt cụt lệnh mỗi cycle mà planner không hề biết.
max_vel_x: 0.60
max_vel_x: 1.20
# [m/s] Trần tốc độ lùi, ÂM. 0 = cấm lùi hẳn. Stanley min_vel_x = -0.25.
# ► Chỉnh: giữ âm hơn trần lùi của planner. Đặt 0 khi robot không có cảm biến phía sau.
@@ -206,7 +208,7 @@ path_monitor:
# Công tắc CHUNG; tắt cái này là tắt cả hai phép đo bên dưới.
# ► Chỉnh: false = đưa hành vi về đúng như trước 2026-08-04d (chỉ còn controller_patience lo).
# Dùng làm đường lùi nhanh khi nghi cơ chế giám sát gây vấn đề ngoài hiện trường.
enabled: true
enabled: false
# Công tắc RIÊNG từng phép đo (2026-08-06). Trước đây chỉ tắt được bằng cách đặt ngưỡng về 0 —
# giá trị ma, lẫn với "quên khai".
@@ -277,7 +279,7 @@ runtime_stats_period: 0.0
# namespace `recovery`.
# ► Chỉnh: false = mọi lỗi đi thẳng tới ABORTED, không thử phục hồi. Chỉ dùng khi cô lập lỗi lúc
# debug; trên hiện trường để true.
recovery_behavior_enabled: true
recovery_behavior_enabled: false
# =================================================================================================
# Mission layer