Commit Graph

78 Commits

Author SHA1 Message Date
5e7fa3ccf6 config: dong bo schema hybrid_mode + tracker/blend cho priest_local_planner
Sync tu Test/move_base2/config/runtime (cay sim, hybrid_mode=1) va
Test/priest_local_planner/cfg (robot that, hybrid_mode=0) — chi dong bo
KHOA + comment, hybrid_mode giu 0 (tat) o day cho toi khi chay thu. Xem
doc/HYBRID_TRACK_AVOID_PLAN.md o priest_local_planner.
2026-09-16 18:51:26 +07:00
454d5389bc config: tune hybrid/priest/recovery params sau do 27/8-14/9
- hybrid docking: global_plan_viapoint_sep 0.2 -> 0.12 (do 27/8: sep
  0.2 khien khop noi cong->thang mang herr -0.10 rad, lech ngang phong
  toi 30mm; ha xuong khop sac hon ~40%). Ghi lai lich su do de khoi lap
  lai thu nghiem 26/8 (sep 0.2 -> 0.3 lam xau ~50%).
- priest: them nhom key on dinh nghiem doan thoang (lateral_std_clear_*,
  clear_residual, clear_streak_cycles - do 28/8 omega nhay khi thoang),
  hysteresis/delay cho horizon (horizon_hysteresis_buckets,
  horizon_restore_delay_cycles - tranh doi hinh ca batch khi nhay bucket
  hoac hut 1 chu ky do arc), nhom infeasible_residual/streak/cooldown
  (solver tu khai bat kha thi, TAT tren robot that cho toi khi chay
  thu), va nhom accel_comfort/jerk cho lenh xuat em hon max_acceleration
  cua solver.
- recovery: them trigger collision -> detour_path (2026-09-04, truoc do
  rong = guard khong vu trang); go 4 key planning_distance/sample_step/
  rejoin_clearance/max_rejoin_distance da het tac dung tu khi detour
  chuyen sang lap lai ca duong; khai lock_costmap=true tuong minh (gia
  tri = default cu, hanh vi khong doi).
2026-09-15 15:07:37 +07:00
2b0993bd53 feat: lifecycle contract for move_base2 cancel/pause/resume + component status probe
- robot_nav_core::Preemptable (new header): mixin a BaseGlobalPlanner may
  implement to accept a preempt() cut during makePlan(), no vtable break for
  planners that don't.
- move_base_core::component_status_probe.h (new): ComponentStatusEntry +
  boost::dll alias name ("MoveBaseComponentStatus") a host can probe to read
  per-component phase (idle/busy/stopping/paused/hung) without linking
  move_base2 directly.
- nav_c_api_2.h/.cpp: NavComponentStatus struct and
  navigation_get_component_status() — lazy dlsym of the probe above, returns
  0 rows if the loaded .so doesn't export it. Doc: PREEMPTING is now a
  truthful "still winding down" state, not "acknowledged", and a host must
  poll to quiescence rather than resend immediately.
- move_base_common_params.yaml: settle_timeout, stopped_measured_linear/
  angular_eps, watchdog_period + per-component stall budgets (Vietnamese
  comments, matches the schema). Also fixes a wrong comment on
  max_planning_retries: 0 means escalate on the FIRST failure, not
  "unlimited" (-1 is unlimited) — the inverted comment likely caused the
  dev machine's max_planning_retries: 0.

Root cause and measurements: Test/move_base2/docs/PLAN_LIFECYCLE_CANCEL_PAUSE_RESUME.md.

Excluded from this commit (pre-existing, unrelated): config/hybrid_local_planner_params.yaml,
config/priest_local_planner_params.yaml, config/recovery_behaviors_params.yaml (dock/PRIEST
tuning, dated before this work), src/Libraries/common_msgs and src/Libraries/costmap_2d
(submodule pointer bumps from other work), src/Libraries/robot_cpp console throttle changes
and doc/cpp_host_guide.md (separate, unrelated task).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 22:06:17 +07:00
ab3a6c68c7 config: bring the nav core config tree up to the current planner schema
hybrid_local_planner_params.yaml gains 120 keys and drops 12, including a whole
HybridDockingLocalPlanner block that was not here at all. The additions are the
two-tier velocity limits the planner has been reading for a while - acc_lim_*
bounding the DWA sampling window, output_acc_lim_*/output_decel_lim_* clamping
the command on its way out - plus min_velocity, min_yawrate and the blend
distances. The removed keys are the old rejoin_* group, which no longer exists
in the planner.

A config tree that names keys the planner does not read, and omits keys it
does, fails silently: the plugin falls back to its C++ defaults and nobody is
told. That is the "works on my machine, not on the robot" shape.

The comments are rewritten around what the two tiers actually decide, because
the split is not obvious from the key names: DWA owns forward velocity and is
the only tier that can command a turn in place, while Pure Pursuit only steers,
through omega = |v| * pp_weight_omega * sin(err) / lookahead - a law that
degenerates at v = 0, which is why steering authority returns to DWA below
pp_min_steering_velocity.

mppi_local_planner_params.yaml is real tuning: goal tolerances tightened from
0.10/0.10 to 0.03/0.02, the control weights zeroed, goal_capture_radius and
goal_overshoot_margin added, and the stale LocalPlannerAdapter block dropped.

move_base_common_params.yaml is a typo in a comment - #ybridLocalPlanner. The
active value is untouched.

All three parse; the key sets were compared with a YAML load rather than by eye.
2026-08-27 09:35:56 +07:00
e2f2f55660 feat(dock_planner): bump submodule và bổ sung schema động học vào config
Con trỏ submodule dock_planner: a301987 -> 1f04a95 (mô hình động học
differential/ackermann + maneuver straight-pivot-straight).

config/dock_global_params.yaml thêm ba khoá mới khớp với loader:
- kinematics/model: ackermann | differential
- kinematics/minimum_turning_radius: chỉ dùng khi model=differential
- maneuver/pivot_fallback_extension, maneuver/pivot_safety_margin

Giá trị mặc định giữ nguyên hành vi cũ: model=ackermann,
pivot_fallback_extension=0.0 (tắt maneuver mới). Comment đầu file mô tả lại
ba kiểu đường và thứ tự planner thử dựng.
2026-08-25 12:15:39 +07:00
3a991c2e2a config: khoá metrics/debug/snapshot cho costmap (mặc định tắt) + bump costmap_2d
Đồng bộ schema từ cây move_base2/config/runtime: performance_metrics_enabled,
performance_metrics_period, debug_level, snapshot_for_readers — bản này là
default trung tính nên toàn bộ để tắt/0/false; cây đang chạy khi test là
move_base2/config/runtime (ở đó metrics+snapshot bật).

Bump submodule costmap_2d 3196a19 -> 84c8378: debug metrics updateMap +
snapshot API cho reader (chi tiết ở log submodule).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 20:19:59 +07:00
fccd377505 config: cập nhật comment goal_blocked_check_radius — dò đĩa nửa thân (priest 6d78767)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 21:36:09 +07:00
5456dfef3b config: khoá goal_blocked_check_radius (0 = tắt) cho priest — đồng bộ 8182297
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 21:18:32 +07:00
de677ccc14 config: khoá hold_timeout 10 s cho priest — đồng bộ 245d656
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 21:01:07 +07:00
970dc165cd config: khoá weight_velocity_deficit (mặc định 0 = tắt) — đồng bộ priest 73bbdd1
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 16:16:17 +07:00
ab3ee1ae97 config: khoá head_slowdown_inscribed_scale (mặc định 1.0) — đồng bộ priest 2455707
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 16:05:21 +07:00
f00fb6a887 config: comment debug_command priest theo format mới (priest eb413f5)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 15:30:25 +07:00
6118cb7b7b config: comment head slowdown — trọng số độ-gần-thời-gian (priest ea05d0d)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 15:25:51 +07:00
9da19da7e5 config: head slowdown priest sang bản so tương đối + head_slowdown_release_cycles (vẫn TẮT)
Đồng bộ schema với priest_local_planner 6d75b73.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 15:20:48 +07:00
98efe89312 feat(config): khoá side_switch_feasible_res + head_slowdown cho priest (mặc định TẮT)
Đồng bộ schema với priest_local_planner 50375f2 — guard đổi bên theo tính
thực thi + giảm tốc theo đầu quỹ đạo. Giữ tắt tới khi thử trên robot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 15:11:00 +07:00
87cbcf8957 feat(config): khoá obstacle_time_discount cho priest (mặc định TẮT 0.0/1.0)
Đồng bộ schema với priest_local_planner 8405e29 — co ellipse vật cản theo
thời gian horizon, trị vòng rộng đầu mission. Giữ tắt tới khi thử trên robot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 13:30:27 +07:00
802a528d85 config: đồng bộ schema khoá rotate_settle_yawrate cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 10:45:45 +07:00
210ba931f1 config: đồng bộ schema khoá side_infeasible_res cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 10:19:33 +07:00
3d630d0bad config: cập nhật comment rotate_to_path cho PriestLocalPlanner
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 10:06:05 +07:00
5ed80df405 config: đồng bộ schema khoá rotate_to_path_enabled cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 09:53:22 +07:00
21886bc2fb config: đồng bộ schema khoá start_violation_ramp_time cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 09:37:39 +07:00
4a66099492 config: đồng bộ schema khoá t_fin_min cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 22:59:05 +07:00
64929b60cf config: đồng bộ schema khoá omega_ff_min_speed cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 22:35:09 +07:00
0ff610eed7 config: đồng bộ schema khoá goal_approach_distance cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 22:26:40 +07:00
b43d1b94df config: đồng bộ schema khoá xy_latch_release_factor cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 22:10:59 +07:00
b979276e63 config: đồng bộ schema 3 khoá mới của PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 21:56:53 +07:00
a230e0665f config: đồng bộ schema proj_early_exit + footprint circles cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 21:37:16 +07:00
fce619feae config: đồng bộ schema khoá side_hysteresis cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 20:56:26 +07:00
64863c2286 config: đồng bộ schema khoá obstacle_corridor cho PriestLocalPlanner (tắt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 20:31:52 +07:00
14e0fdf720 config: đồng bộ schema khối debug + cổng va chạm cho PriestLocalPlanner
Chỉ thêm khoá mới (debug_level 0, collision_check_enabled false) — không đổi
giá trị tuning nào; đồng bộ tập khoá với cây move_base2/config/runtime.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-18 20:27:27 +07:00
9009564f56 docs: viết lại comment cây config bằng tiếng Việt, bỏ ba khoá chết
dock_global_params bỏ maneuver/straight_lateral_tolerance,
maneuver/straight_yaw_tolerance và terminal/direction: DockPlannerConfig::load
không đọc khoá nào trong số đó, riêng terminal/direction còn gợi ý sai rằng chiều
đoạn cuối cấu hình được trong khi nó được suy ra từ phía robot đứng. Bổ sung
direct_entry_min_curve_room và straight_length. Không đổi giá trị nào khác.
2026-08-15 13:38:03 +07:00
599bce1731 config: update the installed planner profiles to the current schema
custom_global_params documents the CustomPlanner namespace and drops the stale
SBPL keys; dock_global_params moves to the straight-terminal DockPlanner schema
and keeps its 1.0 m terminal padding.
2026-08-15 13:09:39 +07:00
771ee5d5e7 add new file 2026-08-10 13:21:31 +07:00
ad28a413cc add new file nav_c_api2 and function 2026-08-06 19:50:46 +07:00
565e18bfb8 Add recovery and mission manager structure 2026-07-03 17:37:39 +07:00
62a2fed488 fix lỗi xoay khi về đích 2026-04-27 14:24:40 +07:00
1a19e38b2d update 2026-04-25 16:26:12 +07:00
0d10ec2208 update config 2026-04-25 15:35:10 +07:00
9c14054d3f update reduce speed 2026-04-24 12:32:47 +07:00
498a85a199 update lan 1 2026-04-24 11:23:35 +07:00
d681201698 update 2026-04-23 20:10:57 +07:00
5d4d77155b update khi lui 2026-04-23 17:11:47 +07:00
58d925f2be fix 2026-03-26 14:42:26 +07:00
483ca24418 fix 2026-03-23 17:55:50 +07:00
d38f6b3954 update 2026-03-20 16:06:47 +07:00
9a4bb95c4c update param yaml 2026-03-20 07:09:05 +00:00
e90a84c229 update 2026-03-19 10:34:46 +00:00
180a646e35 add docking to 2026-03-19 04:02:08 +00:00
c36f3737ba Merge branch '3.0' of https://git.pnkr.asia/HiepLM/pnkx_nav_core into 3.0 2026-03-19 09:40:33 +07:00
f0d987da39 update Kalman Filter 2026-03-19 09:40:32 +07:00