feat: tiep nhan route graph (Voronoi) cho global planner + anytime ARA* schema, don doc EnvMonitor
- navigation_server: them addRouteGraph(topic, RouteGraph), day vao sensor_store cung namespace addStaticMap; consumer (SBPLLatticePlanner) tu doi chieu map_hash. - PlannerRunner: them setSensorReader()/attachSensors() - trao SensorReader cho global planner nao ke thua robot_sensor_ports::SensorConsumer, goi TRUOC initialize() (dynamic_cast, giong co che ControllerRunner dang dung). - sensor_store_params.yaml: khai topic /route_graph (data_type RouteGraph, capacity 1). - sbpl_global_params.yaml (config/runtime): dong bo schema initial_epsilon/final_epsilon/ eps_step/repair_time/return_first_solution + khoi voronoi_corridor (xem pnkx_nav_core c52cbe5, Test/sbpl_lattice_planner cho code doc cac khoa nay). - launch: them arg launch_prefix (vd "stdbuf -oL" - robot::log_* dung printf khong flush, qua `| tee` bi block-buffer 8 KB lam log dung o dong cu du node con chay); them route_graph_maps_dir/route_graph_topic cho amr_node doc file voronoi.json theo map dang kich hoat. - docs: xoa PLAN_LIFECYCLE_CANCEL_PAUSE_RESUME.md (don sang Test/docs/move_base2/), sua duong dan ENV_MONITOR_PLAN.md trong comment cac header EnvMonitor lien quan.
This commit is contained in:
@@ -61,6 +61,20 @@ sensor_store:
|
||||
capacity: 1
|
||||
max_age: 0.5
|
||||
|
||||
# --- Route graph tiêm từ host (KHÔNG phải cảm biến) -------------------------------------------
|
||||
# Graph tuyến (Voronoi) biên dịch sẵn từ map tĩnh, host đẩy vào bằng `addRouteGraph("/route_graph", ...)`
|
||||
# ngay sau `addStaticMap`. Consumer: `SBPLLatticePlanner` (khối `voronoi_corridor`, khoá
|
||||
# `route_graph_topic` phải trùng chuỗi này) — đọc ở initialize() và đầu mỗi makePlan, tự đối chiếu
|
||||
# `map_hash` với static layer; lệch thì bỏ, chạy full search như không có graph.
|
||||
# ► Bỏ khối này = host gửi cũng bị kho từ chối (log một dòng) -> planner không bao giờ thấy graph.
|
||||
- topic: /route_graph
|
||||
data_type: RouteGraph
|
||||
# Chỉ bản mới nhất: map mới thì graph mới, bản cũ vô nghĩa.
|
||||
capacity: 1
|
||||
# [s] Graph theo map, không có "tuổi" thật — đặt lớn để consumer không chê stale. Consumer
|
||||
# không dùng max_age để quyết, chỉ so hash với map.
|
||||
max_age: 86400.0
|
||||
|
||||
# --- Ví dụ, đang TẮT ---------------------------------------------------------------------------
|
||||
# Mở ra khi có consumer thật sự đọc. ⚠ MỘT mẫu depth đã hàng MB — đừng nâng `capacity` mà chưa đo.
|
||||
# - topic: /camera/depth/data
|
||||
|
||||
Reference in New Issue
Block a user