refactor: xoá PathMonitor và PathCheckPort, EnvMonitor là bộ giám sát duy nhất; gộp refreshSnapshot
Xoá hạ tầng giám sát cũ đã tắt từ 5/9 (path_monitor/enabled: false), −2947 dòng: - ControlLoop: PathMonitorConfig, updatePathMonitor / updateProgressMonitor / applyCollisionGuard / planIsBlocked / resetPathMonitor / rebuildPlanArcLength, toàn bộ member bốn phép đo, luật "plan mới bẩn thì giữ plan cũ" trong collectPlannerResult. Bốn cổng StateMachineInput giữ nguyên (off_path không còn nguồn, đặt false). - ports/path_check_port.h, CostmapPathCheck trong NavigationRuntime. - plan_inspector: bỏ checkPlan / checkMotion / PlanBlockResult / MotionCheckParams / MotionBlockResult; giữ planarTransform, nearestIndex, trackedNearestIndex, crossTrackError. - Config: readPathMonitor, MoveBase2Config::path_monitor, validate; xoá config/runtime/path_monitor_params.yaml; comment YAML/state_machine đổi sang tên verdict EnvMonitor. - Test: FakePathCheckPort, 30 test WalkingSkeletonPathMonitor/CollisionGuard, 13 test PlanInspectorCheck/Motion, 2 test validate thân guard. P0(b): ControlLoop::step() gọi EnvironmentPort::refresh() một lần đầu cycle (không phụ thuộc env_monitor/enabled); ControllerRunner::setSnapshotRefreshedByLoop(true) làm ba refreshSnapshot() trong runner thành no-op — monitor và controller đọc cùng một lưới, một bản copy mỗi cycle. Test: env_monitor 43, grid_analysis 33, plan_inspector 11, walking_skeleton 57, config_validation 32, scenario 12, state_machine 100, navigation_server 56, controller_runner 28, velocity_arbiter 29, planner_runner 31 — pass. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xXjFjr2DQ6rhmhHSW4fk4
This commit is contained in:
@@ -204,8 +204,8 @@ acc_lim_x: 1.0
|
||||
acc_lim_theta: 1.20
|
||||
|
||||
# =================================================================================================
|
||||
# Giám sát tuyến (path_monitor) — ĐÃ TÁCH sang `path_monitor_params.yaml` (3/9/2026).
|
||||
# Đừng khai lại `path_monitor:` ở đây: NodeHandle merge mọi file, hai bản sẽ đè nhau theo thứ tự
|
||||
# Giám sát môi trường — xem `env_monitor_params.yaml` (EnvMonitor thay PathMonitor, 6/9/2026).
|
||||
# Đừng khai lại `env_monitor:` ở đây: NodeHandle merge mọi file, hai bản sẽ đè nhau theo thứ tự
|
||||
# thư mục (không xác định) và người chỉnh sẽ thấy "sửa mãi không ăn".
|
||||
# =================================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user