Commit Graph

7 Commits

Author SHA1 Message Date
180c0e1cd4 config: cây sim dùng lại f_scan + b_scan, tắt logger, viết lại doc route recovery
costmap_common_params.yaml
  observation_sources quay về "f_scan b_scan"; bốn nguồn depth camera
  (pc_marking, pc_clearing, pc_r_marking, pc_r_clearing) bị comment lại kèm
  nguyên khối tham số để bật lại chỉ bằng cách bỏ dấu #. Lý do: các nguồn
  PointCloud2/DepthCameraData của Gazebo publish theo sim time, so hạn bằng wall
  clock nên hay bị coi là stale và khoá bánh khi RTF thấp. Sau thay đổi này cây
  sim khớp schema đang chạy ở rb_ws (cùng tập observation_sources).

env_monitor_params.yaml
  logger/enabled: true -> false. Ghi JSONL mỗi tick nặng chỉ cần khi lấy dữ liệu
  replay/ML, không phải chế độ chạy thường trực.

recovery_behaviors_params.yaml
  Chỉ sửa comment, không đổi khoá hay giá trị. Bảng route và phần mô tả từng
  trigger được viết lại theo verdict của EnvMonitor (kStall -> oscillation,
  kUnreachable -> path_blocked, kContact -> collision) thay vì đánh số "Phép đo
  1..4" của PathMonitor đã xoá ngày 6/9/2026. Bổ sung: off_path hiện không còn
  nguồn cấp cờ (giữ route cho đủ hợp đồng sáu trigger của StateMachine); phân
  vai rõ giữa env_monitor_params.yaml (KHI NÀO giơ cờ) và file này (giơ cờ rồi
  thì chạy behavior nào); ghi chú phanh của kContact thuộc apply_command nên vẫn
  chạy kể cả khi route collision rỗng.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 13:47:33 +07:00
96df99fed2 config: priest — bật gate G1 + bao êm ái cho cây sim
10 khoá mới khớp priest_local_planner (gate theo khoảng cách, accel/decel/
jerk comfort, trần gia tốc góc, head slowdown slew) và bật
collision_check_enabled sau khi gate đổi sang phân mức dừng/giảm tốc.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-28 22:34:31 +07:00
c626c4d45d 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.
2026-08-27 13:22:26 +07:00
31c5b218cb docs: viết lại comment các file config bằng tiếng Việt
File YAML là thứ người vận hành mở ra sửa khi đứng cạnh robot, nên comment phải
đọc hiểu ngay. Mỗi tham số ghi đủ đơn vị, ý nghĩa và hệ quả khi tăng/giảm. Tên
key, plugin, frame, topic và thuật ngữ đã chuẩn hoá giữ nguyên tiếng Anh.
Không đổi một giá trị nào.
2026-08-15 13:37:50 +07:00
383a04fe29 Report why an action failed instead of a bare "action failed"
FrameSamplerActionHandler already builds a precise reason for each way it can
fail: too few samples, detection too scattered, could not publish the output
frame, raw frame never appeared. All four reached the log as the same four
words, because control_loop read the tick, kept only the status, and dropped
the message, while the state machine passed a hard-coded string to finish().

Three field runs in a row could not be diagnosed for that reason: the detector
was healthy, the host confirmed pallet_raw was published and resolvable, and
the only thing navigation said was "action failed".

The handler message now travels through StateMachineInput into the terminal
reason, so it reaches the host feedback as well as the log, and control_loop
logs it directly - as an error when the action fails, as info when it succeeds,
where it carries the sample count worth comparing against the next failure.

StateMachineOutput::reason is a const char* and enter() stores the pointer
rather than copying, so the composed string lives in a StateMachine member.
Building it in a local would return a pointer into destroyed memory - every
other reason in that class is a string literal, so nothing had hit this before.
Two tests cover it: the message reaches the reason, and the reason survives the
StateMachineInput that carried it.

Config in this tree follows the same split as the robot: per-marker dock_anchor
and footprint_dock in maker_sources.yaml, detect handlers separated into
detect_charger and detect_pallet.
2026-08-13 15:01:48 +07:00
20ae52ea84 update 2026-08-09 19:17:02 +07:00
d8babff20b optimal 2026-07-30 09:24:47 +07:00