Commit Graph

65 Commits

Author SHA1 Message Date
82e2b53d1f config(runtime): priest_mpcc footprint_padding 0.03, slow_speed 0.25
User-set robot values: priest/footprint_padding 0.05 -> 0.03 (matches the
robot's hand edit and the T800 sim; r_o = 0.055, body gate fresh 0.045,
followed 0.015 m) and mpcc/slow_speed 0.15 -> 0.25 (the T800 sim value).
2026-11-25 17:20:32 +07:00
fbc3678192 sync: priest_mpcc body-clearance ruler, slow-down by side
- priest_mpcc_local_planner 8bb3b30 -> 56bcf84 (main): one body-clearance
  ruler for the MPCC gate, crawl and rollouts; S1/S1b and F3 slow down by
  side.
- config/runtime/priest_mpcc_local_planner_params.yaml: new keys only, at
  the T800 sim values: mpcc/exact_body_clearance true,
  mpcc/slow_directional true, hybrid/gate_body_clearance true,
  hybrid/gate_body_tolerance 0.01. No existing value changed.
- doc/config_guide: the four keys documented; crawl_margin note.
2026-11-25 17:13:30 +07:00
cdcdb4f31c hiep update 2026-11-23 16:07:27 +07:00
d10bfd0ee3 sync: lane route R2.14, costmap zero_is_valid, PRIEST rectangle/crawl, move_base2 config
Submodules:
- lane_route_core 9447509, lane_route_planner 4853576 (mid-edge attach, preferred
  lanes, goal_in_obstacle fast fail, allow_unknown)
- costmap_2d 55c7359 (zero_is_valid for laser scans)
- move_base2 605dbc8 (state_machine travel mark, runtime config)
- priest_mpcc_local_planner 8bb3b30 (rectangle footprint, crawl along PRIEST)

Config (values as in the T800 dev tree):
- lane_route_planner: allow_unknown false
- costmap_common: lidar_obstacles f_scan/b_scan zero_is_valid false
- priest_mpcc: footprint_model rectangle, crawl_* (enabled), debug/crawl;
  obstacle_point_radius 0.025, obstacle_cost_threshold 254, collision_margin 0.03,
  slow_speed 0.15
- doc/config_guide updated for every new key
2026-11-20 16:46:09 +07:00
e948f3291c build: pin submodules with tests off by default
Bumps 29 submodules to their main. Every package's tests now default to
OFF in both catkin and standalone builds, and move_base2/recovery_core
no longer need nav_test_harness unless their tests are enabled.
2026-11-17 20:47:35 +07:00
b38a8163bf config(runtime): tighten PriestMpcc goal tolerances, 3 solver threads
xy_goal_tolerance 0.04 -> 0.02 m, yaw_goal_tolerance 0.02 -> 0.01 rad,
goal_regression_watch_dist 0.5 -> 0.2 m, optimizer_threads 4 -> 3.
2026-11-16 14:41:30 +07:00
a180bed9ad fix(robot_cpp): keep owned YAML node copies while walking param paths
yaml-cpp map iterators return the key/value pair through a temporary proxy,
so binding a pointer or reference to it->second dangles after the full
expression and throws "invalid node" on yaml-cpp 0.9+. Copy the pair and
keep owned child nodes alive during traversal.

Also add debug logs to PluginLoaderHelper::findLibraryPath for the
global_costmap symbol (namespace, param path, library path env, resolved path).
2026-11-16 14:41:30 +07:00
3a8219c762 chore: pull costmap_2d (rolling StaticLayer fix) and lane_route (detour upgrade), add the new lane_route keys
Submodules:
- costmap_2d 74bc39b: StaticLayer-family layers (forbidden, preferred,
  unpreferred, critical) are redrawn over the whole window in a rolling
  costmap; NO_INFORMATION cells no longer overwrite the master.
- lane_route_core 6367f13, lane_route_planner f66764e: when a verified graph
  route is a suspicious detour, try the lattice once and take it only if it is
  at least detour_upgrade_min_saving cheaper.

config/runtime/lane_route_planner_params.yaml (new keys only, existing values
unchanged; values as in the T800 dev tree, also the C++ defaults):
detour_upgrade_enabled true, detour_upgrade_time_limit_s 2.0,
detour_upgrade_min_saving 0.15, detour_upgrade_max_extra_zone_deviation_m 0.5.
doc/config_guide/runtime/lane_route_planner_params.md documents them.
2026-11-16 14:02:28 +07:00
64a403a28b docs(config): one-line comments in config, detailed Vietnamese guides in doc/config_guide
Every YAML under config/ keeps only a one-line trailing comment per key ('# [unit] meaning') and a
line-1 pointer to its guide. doc/config_guide/ mirrors config/ (runtime/<file>.md) and holds the
full explanations, field measurements and history moved out of the old comment blocks, with a
README index. Blank lines follow one layout rule. Parsed values are unchanged except the field
edits below.

Field edits from the robot:
- detect_wall_reflector wall_pair: wall_min_span 0.65 -> 0.20 (visible wall ~0.31 m at the KIT
  station), width_tolerance and spacing_tolerance 0.010 -> 0.015
- maker_sources: wall_station added to the allow-list; wall_station footprint_dock emptied
- dock_global_params: pivot_check_costmap true -> false
- costmap_common_params: navigation_map map_pkg / map_file removed
2026-11-12 22:28:17 +07:00
97a901cec9 config(runtime): wall station values from the robot, trolley tape off
detect_wall_reflector wall_pair offset_x 0.85 -> 0.4 (KIT tail 0.325 + ~0.075 m gap) and the
matching wall_station dock_face_offset 0.4; wall_station dock_pivot_safety_margin 0.5,
dock_straight_length 0.5, dock_maximum_cusp_distance 2.0. tci_trolley tape_enabled false.
Comments now give the KIT numbers instead of the sim footprint.
2026-11-12 17:04:46 +07:00
fb36ffd7a9 chore: pull detectors that use robot_base_frame and an optional core threshold, drop the obsolete keys
dock_pattern_detector 95c7df9 -> 3c7b126 (tape_core_intensity / tape_plateau_min_fraction optional),
wall_reflector_detection_action b5da961 -> 48e1e9a and trolley_detection_action 775c168 -> 641932b
(prior_frame replaced by robot_base_frame), move_base2 154fb7d -> ee3657f.
action_handlers_params.yaml: remove prior_frame (both detectors) and the wall_pair
tape_core_intensity 240 / tape_plateau_min_fraction 1.0, which equal their new defaults.
The trolley tape_plateau_min_fraction 0.65 is a leg-matcher key and stays.
2026-11-12 17:02:43 +07:00
1b6aa9157c chore: pull dock_planner (per-marker straight length, cusp distance cap) and move_base2 (marker binding), add their new config keys
dock_planner 07e2fd3 -> 422a505, move_base2 5882082 -> 154fb7d.
New key maneuver/maximum_cusp_distance: 0.0 (no cap, behaviour unchanged).
maker_sources.yaml documents mating_edge, dock_face_offset, dock_pivot_safety_margin,
dock_straight_length and dock_maximum_cusp_distance; no marker declares the two
new per-marker keys, so every existing value stays as tuned on the robot.
2026-11-12 16:29:52 +07:00
83d40ffdc0 feat: add wall_reflector_detection_action, bump dock_pattern_detector, add its config
- New submodule wall_reflector_detection_action b5da961 (branch main) and
  its add_subdirectory after trolley_detection_action.
- dock_pattern_detector 5c1688a -> 95c7df9: ReflectorPairMatcher for two
  flat reflective strips on a wall (narrow 3/9 cm strips supported).
- config/runtime:
  - action_handlers: detect_wall_reflector handler ENABLED for a robot
    trial; profile wall_pair (strip 0.03 / spacing 0.09, provisional
    nanoScan3 intensity 245, other numbers from sim, not measured yet);
    WallReflectorDetectionActionHandler library_path.
  - compound_actions: GOTOWALLSTATION = DetectWallReflectors, then
    move_to wall_reflector_target with marker wall_station.
  - maker_sources: wall_station profile, deliberately NOT in the
    maker_sources allow-list, so the move_to leg of GOTOWALLSTATION is
    rejected until detection is proven on the robot and the docking tail
    limit-cycle bug is fixed.
2026-11-12 13:57:57 +07:00
5c9e7b9364 chore: pull lane_route (R2.12), priest_mpcc (solver thread team) and move_base2 (EnvMonitor pose jump), add their new config keys
Submodules:
- lane_route_core 4cb395f, lane_route_planner cca1265: zone deviation cost, graph/lattice
  completeness fixes, endpoint spin trim (R2.12).
- priest_mpcc_local_planner a9e7d13: solver uses its own futex thread team instead of OpenMP;
  OMP_WAIT_POLICY=PASSIVE is no longer needed.
- move_base2 5882082: EnvMonitor ignores relocalization pose jumps, confined gate veto on proven progress.

config/runtime (new keys only, existing values unchanged; values as in the T800 dev tree, at the user's request):
- env_monitor_params.yaml: pose_jump_reject 0.5, stall/progress_veto true.
- lane_route_planner_params.yaml: zone_deviation_weight 2.0, output_endpoint_spins false;
  route_too_long_* comments now say they are compatibility keys.
2026-11-12 10:27:47 +07:00
8ea9e6e0fe fix(lane_route): bump lane_route_core and lane_route_planner for the standalone output directory
The standalone build left liblane_route_planner.so in its subdirectory of
build_robot, so PluginLoaderHelper could not find it and move_base2 failed
to load LaneRoutePlanner. Both packages now write their .so files to
CMAKE_BINARY_DIR, like the other plugin packages.

lane_route_core    447ce46 -> d36921f
lane_route_planner ab8fc7a -> 4bed23b
2026-11-10 22:33:28 +07:00
c81f7beb80 config(runtime): LaneRoutePlanner with zone layers, costmap shared keys under root:
- move_base_common: position global_planner LaneRoutePlanner.
- costmap_common_params.yaml uses the root: layout. forbidden, preferred and
  unpreferred blocks are active (track_unknown_space false, trinary), a
  direction block (DirectionalLayer, max_deviation_deg 45) is added, and
  lidar_obstacles reads f_scan and b_scan.
- Plugin lists move to costmap_global_params_plugins.yaml (navigation_map,
  forbidden, preferred, unpreferred, lidar_obstacles, inflation, direction) and
  costmap_local_params_plugins.yaml (forbidden, lidar_obstacles, inflation_layer;
  depth_obstacles commented). The *_plugins_no_virtual_walls.yaml files are removed.
- directional_layer_params.yaml: enabled true, max_deviation_deg 45, debug_state false.
- action_handlers: drop the unused v_wide detect_lidar profile.
- Comment cleanup in costmap_global_params.yaml and costmap_local_params.yaml.
2026-11-10 17:11:15 +07:00
c28c5a1725 feat: add lane_route_core and lane_route_planner, pull costmap_2d, move_base2, dock_pattern_action
- New submodules lane_route_core (447ce46) and lane_route_planner (ab8fc7a) on
  main, built after sbpl_lattice_planner in the parent CMakeLists.txt.
- costmap_2d 5034029 (background reference graph, shared keys under root:),
  move_base2 42b03e0, dock_pattern_action c125bd0 (entry_direction).
- config/runtime: new keys only, with the dev values: reference_graph_* (global
  on, local and shared default off), forbidden/preferred/unpreferred blocks,
  detect_lidar entry_direction backward, new lane_route_planner_params.yaml.
  Existing robot values are unchanged.
2026-11-10 16:42:02 +07:00
29517e7808 docs: pull costmap_2d (DirectionalLayer guide), update the C++ host guide, add directional_layer_params.yaml (disabled)
cpp_host_guide: initialize() is synchronous and needs TF first, send the static map before initialize() (SBPL of detour_path exits after 2 s on an empty costmap), costmap readiness, map dispatch and replay, EMERGENCY/LOST, 44 interface functions. The directional layer file only carries the schema; the layer is in no plugin list here.
2026-11-04 14:09:29 +07:00
a202cbd945 chore: pull costmap_2d (TF wait log) and dock_pattern_detector (taped/untaped tests) 2026-11-04 13:36:31 +07:00
97207e5124 feat: pull costmap_2d, sbpl_lattice_planner and move_base2 (direction zones, costmap readiness), add costmap_ready_timeout
costmap_ready_timeout is 0 (legacy, no readiness wait) until it is tried on the robot. DirectionalLayer is not in any plugin list here; its packaged default is disabled.
2026-11-04 13:28:29 +07:00
0d1d6a1772 fix: pull dock_pattern_detector and trolley_detection_action (tape_enabled false now ignores tuned tape keys), update the tape comments 2026-10-30 14:22:06 +07:00
b168d8a814 fix: pull dock_pattern_detector and trolley_detection_action, add tape_range_bias_all_max_std 0.02 for the all-taped KIT trolley 2026-10-30 10:59:34 +07:00
149059e1ec fix: sync detect_lidar/detect_trolley tuning + charger mating_edge from the robot, pull dock_planner and move_base2 2026-10-30 10:06:41 +07:00
ead5ef394b fix: add pivot_backoff_max_distance and pivot_check_costmap (KIT values from the 29/10 run), sync minimum_turning_radius/straight_length 2026-10-30 10:04:36 +07:00
eaf5862403 fix: update dock_pattern_detector + trolley_detection_action, add tape_plateau_min_fraction 2026-10-30 09:45:15 +07:00
35ccf0350c chore: bump trolley detector submodules, add mirror-tape keys, long-side cart size
- dock_pattern_detector 347896e and trolley_detection_action 1a76e77: mirror-tape bloom
  segmentation and range-bias estimate.
- detect_trolley: add tape_legs, tape_min_points, tape_bloom_max_angle and
  tape_range_bias_sigma. All off or neutral, so untaped detection is unchanged.
- Cart size 0.762 x 0.480 (entry on the long side) and the matching trolley footprint_dock.
2026-10-29 13:17:39 +07:00
403668db50 chore: bump hybrid_local_planner to d3b12d1, add goal_away_margin, docking tuning
- hybrid_local_planner c11d69c -> d3b12d1: the terminal approach no
  longer ends on pose noise. On the KIT robot (29/10) every trolley
  docking stopped 6-7 cm short with xy_goal_tolerance 0.015.
- hybrid_local_planner_params.yaml: new key goal_away_margin 0.01 m in
  HybridLocalPlanner and HybridDockingLocalPlanner. This is the code
  default, so it changes no behaviour by itself.
- HybridDockingLocalPlanner tuning from the robot run:
  acc_lim_x 0.1 -> 0.3, yaw_goal_tolerance 0.03 -> 0.02,
  global_plan_viapoint_sep 0.12 -> 0.25,
  creep_min_velocity_reverse 0.01 -> 0.03. debug_level stays 0; raise it
  locally on the robot only while chasing a fault.
2026-10-29 09:22:43 +07:00
ba8daf774f chore: bump trolley detector submodules, add detect_trolley keys, real trolley size
- dock_pattern_detector c568e90 -> 979bef3. This includes cb401e6
  (cart_dim_tolerance widens the confidence score) and 979bef3 (attached
  legs, zero range as no echo, confidence ties ranked by fit). Do not
  deploy cb401e6 without 979bef3: with confidence saturated, the nearer of
  two tied hypotheses won, even when it had taken a post beside a leg
  (3.4 cm off).
- trolley_detection_action bfdcac5 -> 0000f64: the handler reads the new
  keys and logs them.
- action_handlers_params.yaml detect_trolley: new keys
  zero_range_is_no_echo and profiles/tci_trolley/accept_attached_legs,
  both false (old behaviour) until tried on the robot. The KIT /f_scan
  reports no echo as 0, so set both to true for the occlusion test. The
  range_sigma and cart_dim_tolerance comments now match the dev tree.
- Real trolley measured centre-to-centre: cart_opening 0.517 -> 0.480,
  cart_depth 0.720 -> 0.762.
- maker_sources.yaml trolley footprint_dock: the outer leg box of that
  trolley, +-0.395 x +-0.255 m (centre-to-centre plus half a 30 mm leg).
2026-10-28 16:42:53 +07:00
4590a214cf config: enable detect_trolley, point PICKUP at the trolley, set the trolley footprint_dock
- action_handlers_params.yaml: load the detect_trolley handler
- compound_actions_params.yaml: PICKUP now runs DetectTrolley and docks to
  marker `trolley` instead of DetectPallet / marker `pallet`
- maker_sources.yaml: trolley footprint_dock = outer box of the 4 legs of
  tci_trolley (0.75 x 0.547 m), simulation numbers until a real trolley is
  measured
2026-10-28 14:11:01 +07:00
43e82bb18c sync: pin dock_pattern_detector, costmap_2d; add trolley_detection_action (handler off)
- dock_pattern_detector -> c568e90 (LegPatternMatcher, needed by the new action)
- costmap_2d -> 3539afb (yaml-cpp linked into depth_camera_obstacle_layer_test)
- add submodule trolley_detection_action (bfdcac5) and its add_subdirectory
  in the root CMakeLists.txt
- config/runtime/action_handlers_params.yaml: new keys only (detect_trolley
  block, TrolleyDetectionActionHandler library_path). The handler line in
  `handlers:` stays commented, so the robot does not load it until a real
  trolley is measured (doc/MEASURE_AND_CONFIGURE.md in the new package).
2026-10-28 14:09:25 +07:00
2f6c0b1636 config: add keys for v_shape, occlusion_guard, attach_distance, f_scan expected_update_rate
Keys only, every new feature off: v_shape any, occlusion_guard false, attach_distance 0.12, expected_update_rate 0.0. Add inactive profile kit_charger (v_shape convex); default_profile unchanged. move_base_common_params.yaml: comment only, backup planner is for profile position. No existing value changed.
2026-10-27 13:24:44 +07:00
e25786d61c sync: pin move_base2, dock_pattern_detector, dock_pattern_action, costmap_2d to main
move_base2 c3c6491: backup_global_planner only for profile position.
dock_pattern_detector edc6b30: v_shape gate (any | concave | convex).
dock_pattern_action 5bbcf37: load v_shape, measuring guide.
costmap_2d 757b381: DepthCameraObstacleLayer occlusion_guard and attach_distance.
2026-10-27 13:24:44 +07:00
b46b2febdd Sync submodules to main, add priest_mpcc_local_planner, take the KIT robot config
Submodules, each pinned to its main:
- costmap_2d a63c084 -> 9b93a45: every layer reads its default file, then
  "<costmap>/<plugin>", which copyParentParameters() fills from the
  shared "<plugin>:" block. DepthCameraObstacleLayer now follows the same
  flow and has a default file. A bad layer, a missing default file or a
  wrong-typed shared key stops the costmap, so the host never reports
  READY.
- move_base2 8977e5e -> ea7f965: the depth camera layer type only takes
  PointCloud2.
- sbpl bd89924 -> ce7d0af and sbpl_lattice_planner d3a9b3f -> c98a5ac:
  vendored sbpl renamed to robot_sbpl (librobot_sbpl.so). The apt
  libsbpl.so on LD_LIBRARY_PATH shadowed it; with the new name the
  planner loads the copy that has the abort flag.
- common_msgs b3e0857 -> 0da063e (RouteGraph.h).
- priest_mpcc_local_planner added at 99fda77 (branch = main). Same tree
  as the p4r-feasible-reference branch the robot runs.

CMakeLists.txt: guard on the robot_sbpl target; add priest_mpcc_local_planner.

config/runtime: taken from the KIT robot, which is now the reference; all
29 YAML files equal the robot's on 22/10/2026. move_base_common selects
PriestMpccLocalPlanner. Costmap:
- local inflation_layer block named after its plugin (0.3 / 10, chosen on
  purpose);
- lidar voxel column 0.15 m x 8;
- keys no code reads are removed;
- the unused virtual-wall blocks are commented out;
- config/depth_camera_obstacle_layer_params.yaml is new.

priest_local_planner stays at main f7aa178 (not the robot's
feature/path-first-avoid). It is not the selected local planner.
2026-10-22 11:07:25 +07:00
c1b4d82390 config: sửa tay config/runtime trên robot (base_link, priest, sbpl, costmap, recovery)
Gom 11 file config người dùng đã sửa trực tiếp trên rb_ws (lấy từ stash):
- robot_base_frame / rear_axle_frame: base_footprint -> base_link (các file costmap, stanley, dock, ...).
- priest_local_planner_params.yaml: đồng bộ khối tham số mới.
- sbpl_global_params.yaml, recovery_behaviors_params.yaml: chỉnh tay sau revert Voronoi.
- costmap_*: tắt lớp forbidden/preferred/unpreferred bằng comment.
- stanley_local_planner_params.yaml, dock_global_params.yaml: chỉnh nhỏ.

Chưa kiểm tra từng giá trị trên robot thật; xem lại trước khi triển khai.
2026-10-03 16:30:44 +07:00
3113992c1e sync: ghim submodule về bản không có Voronoi
Sau hai commit revert (b1c9bcd, 839f77d) cây đã bỏ route_graph và addRouteGraph,
nhưng bản revert đưa cả 9 submodule về pin cũ. Commit này giữ các bump không liên
quan Voronoi và ghim lại đúng bản đã revert trên main:

- move_base2 -> 8977e5e (revert Voronoi, giữ comment EnvMonitor và num_obs_proj 200)
- sbpl_lattice_planner -> d3a9b3f (revert Voronoi + ARA* + smoother)
- robot_sensor_ports -> d09b7f4 (bỏ đăng ký RouteGraph)
- common_msgs -> b3e0857 (trước RouteGraph)
- hybrid_local_planner -> c11d69c, priest_local_planner -> f7aa178,
  sbpl_recovery -> 4d3cc01, recovery_core -> d057b22 (bump không liên quan Voronoi)

Đã kiểm tra: không pin nào chứa voronoi/route_graph/addRouteGraph; mọi commit đều
có trên origin của gói tương ứng.
2026-10-03 16:11:19 +07:00
839f77d3d1 Revert "feat: nang 9 submodule + them route_graph moi - route graph corridor, anytime ARA*, path smoother"
This reverts commit 2107648f8a.
2026-10-03 16:10:42 +07:00
b1c9bcdea2 Revert "fix: sot navigation.h khi dong bo route graph - addRouteGraph() chua co trong BaseNavigation"
This reverts commit 929ce11384.
2026-10-03 16:10:42 +07:00
929ce11384 fix: sot navigation.h khi dong bo route graph - addRouteGraph() chua co trong BaseNavigation
pnkx_nav_core khong phai submodule nen khong tu keo theo T800_ws (commit c52cbe5). Thieu ham
nay + include RouteGraph.h lam move_base2 (NavigationServer::addRouteGraph override) khong
match virtual nao trong base, build vo tai navigation_server.cpp/move_base2_plugin.cpp
("marked override but does not override"). Ap dung tay dung noi dung T800_ws pnkx_nav_core.
2026-09-22 16:03:06 +07:00
2107648f8a feat: nang 9 submodule + them route_graph moi - route graph corridor, anytime ARA*, path smoother
Bump submodule (fast-forward, khong doi gi tay ben trong):
  move_base2, sbpl_lattice_planner, sbpl, sbpl_recovery, recovery_core, hybrid_local_planner,
  robot_sensor_ports, priest_local_planner (branch main, cherry-pick don doc), common_msgs
  (RouteGraph message).

Them submodule moi: src/Libraries/route_graph (thu vien thuan thuat toan, khong ROS/costmap/tf3
- graph tuyen + corridor mask + doi chieu hash voi map; sbpl_lattice_planner link vao).

CMakeLists.txt: them add_subdirectory(route_graph) TRUOC sbpl_lattice_planner (rang buoc link
that, thieu la build standalone vo o find_package).

config/runtime (chi them schema/comment, KHONG doi gia tri da tune):
  sbpl_global_params.yaml: them final_epsilon/eps_step/repair_time/return_first_solution
    (final_epsilon = initial_epsilon hien tai -> trung hoa tinh nang, hanh vi cu giu nguyen);
    them khoi voronoi_corridor + smooth_path (schema day du tu cay dev, CA HAI enabled: false -
    tinh nang moi, chua kiem chung tren robot).
  sensor_store_params.yaml: them topic /route_graph (data_type RouteGraph) - khai de kho khong
    tu choi khi host gui, KHONG tu bat tinh nang (voronoi_corridor.enabled con false).

Chua verify tren robot that: route graph corridor, path smoother, anytime ARA* (final != initial)
deu MOI, chua build/chay tren rb_ws. Cong tac tat het tru allow_unknown/debug_plan da xac nhan
truoc do.
2026-09-22 15:56:35 +07:00
e74fcc2ec5 config: don xac cu config/runtime/mprim, sua base_footprint, bo sung mprim moi + tai lieu recovery/costmap
- Xoa toan bo config/runtime/mprim/*.yaml,*.py,*.m cu (mqtt_general.yaml, sbpl_global_params.yaml,
  ekf.yaml...) - xac chet khong package nao doc (da xac nhan qua grep + mqtt_connection_guide.md).
- Them config/runtime/mprim/diff_r106_tip3_5cm.mprim, tro primitive_filename ve duong deploy
  /etc/pnkx_nav_core/config/runtime/mprim/diff_r106_tip3_5cm.mprim.
- costmap_global_params.yaml: robot_base_frame base_link -> base_footprint; them cac layer
  obstacles/forbidden/preferred/unpreferred.
- recovery_behaviors_params.yaml: viet lai tai lieu theo bon phep do cua PathMonitor/EnvMonitor
  (4/9, 6/9/2026).
- Cac file con lai (action_handlers, costmap_common, costmap_local, dock_global,
  move_base_common, sbpl_global, stanley_local_planner_params): dieu chinh theo do dac robot that.
2026-09-18 14:37:42 +07:00
708f1923d8 feat: nang submodule sbpl_lattice_planner/move_base2 - log chan doan SBPL fail + snapshot costmap
Bump submodule:
  sbpl_lattice_planner 7456e99 -> 34c74cb: audit goal/start truoc khi search, kiem tra 2D
    reachability (h=INF reject som), phan biet NO SOLUTION do TIMEOUT hay EXHAUSTED, dong solved:
    them expands/h_2d/phase.
  move_base2 9f504ee -> 1e8abf2: PlannerRunner doc snapshot costmap qua capability
    "<alias>ExternalGrid" thay vi giu Costmap2D mutex suot makePlan() - het nghen map-update
    thread 6-14s moi luot SBPL. Kem 0d33321 (go schema hybrid path-tracking da revert o
    priest_local_planner, khong lien quan tinh nang nay).

config/runtime (chi them schema/comment, KHONG doi gia tri da tune):
  costmap_global_params.yaml: cap nhat comment snapshot_for_readers - capability da co that,
    van giu false toi khi kiem chung tren robot that.
  sbpl_global_params.yaml: them allow_unknown (khai tuong minh = true, GIU nguyen hanh vi dang
    chay - truoc day thieu khoa nay code ngam dinh true), debug_plan (true, chi la log thong
    tin), debug_grid_window (0, tat).

Da build/ctest/sim tren may dev (T800_ws) cho move_base2; sbpl_lattice_planner moi kiem
g++ -fsyntax-only, chua build va chay sim thuc te - dong bo theo yeu cau, cho ban build/test
that tren robot roi xac nhan.
2026-09-18 13:51:49 +07:00
2e16a66814 config(action_handlers): thêm input_frame cho detect_pallet
Frame THÔ do perception publish cho pallet.
2026-09-17 15:50:41 +07:00
03372d0ce2 chore: bump priest_local_planner + move_base2 submodule pointers
priest_local_planner f2839dc..d7b0dca: đồng bộ công việc từ nhánh dev/fix
vào main (runtime velocity limits, priest_controller mở rộng).
move_base2 8d9932c..9f504ee: config priest hybrid_mode/blend/tolerance
tune trong cây config riêng của move_base2 (chưa đụng cây runtime top-level
của rb_ws).
2026-09-17 15:39:44 +07:00
fafa638b5a chore: thêm submodule stanley_local_planner
https://git.pnkr.asia/DuongTD/stanley_local_planner.git, branch main,
pin 5845ec2 (khớp T800_ws hiện tại).

Path src/Algorithms/Packages/local_planners/stanley_local_planner theo
đúng bảng map T800_ws/src/AMR_T800/Test/stanley_local_planner. Thêm
add_subdirectory vào root CMakeLists.txt cạnh 3 local planner sinh đôi
(hybrid/mppi/priest), cập nhật comment Ba -> Bốn.

Config config/runtime/stanley_local_planner_params.yaml đã có sẵn từ
trước (library_path: libstanley_local_planner khớp target), chưa cần
đổi gì.
2026-09-15 15:27:09 +07:00
2921fede24 feat(nav): emergency stop latch xuyên BaseNavigation + C API
Copy nội dung sau fix từ T800_ws pnkx_nav_core (branch
dev_recovery_and_manager_mission, commit f4a5c96) — rb_ws khớp byte-for-byte
bản trước fix nên copy thẳng.

CẤP THIẾT: move_base2 submodule (đã bump lên 8d9932c) đã có
NavigationServer::emergency()/clearEmergency() override — thiếu commit này
thì BaseNavigation ở rb_ws không khai virtual tương ứng, override không
khớp base, rb_ws build gãy ngay.

BaseNavigation thêm 2 virtual MỚI Ở CUỐI vtable: emergency(),
clearEmergency() — không đổi chữ ký method cũ (ABI: rebuild đồng bộ
libmove_base.so + C API + mọi host). State EMERGENCY = 14 append cuối enum,
giá trị cũ không đổi (đã verify cả bên C mirror nav_c_api.h).

emergency(): lệnh 0 ngay, huỷ chặng đang chạy (báo CANCELLED đúng 1 lần),
xoá hàng đợi mission, chốt state. Hiệu lực TRƯỚC KHI hàm trả về trên chính
thread gọi (getTwist/getFeedback đổi ngay cả khi control thread đang block
trong plugin); dọn dẹp thật (planner, recovery, action, mission layer)
chạy ở chu kỳ kế tiếp. Trong lúc chốt: moveTo/executeInstantActions bị từ
chối, pause/resume/cancel bị bỏ qua. clearEmergency() đưa về PENDING,
không tự chạy lại — host phải gửi goal mới.

C API: navigation_emergency() / navigation_clear_emergency() trong
nav_c_api_2.h.

Đã verify: virtual signature emergency()/clearEmergency() khớp override
trong move_base2/src/navigation_server.cpp; EMERGENCY=14 append cuối enum
cả hai bên C/C++, không đụng giá trị enum cũ.
2026-09-15 15:21:41 +07:00
1485e7c19c fix(robot_cpp): per-call-site throttle window trong log_*_throttle
Copy nội dung sau fix từ T800_ws pnkx_nav_core (branch
dev_recovery_and_manager_mission, commit 374a09c) — rb_ws trước đó khớp
byte-for-byte bản trước fix nên copy thẳng, không patch tay.

static local dùng chung 1 window cho cả hàm nên nhiều điểm gọi giẫm lên
nhau (controller_runner có 11 điểm gọi log_error_throttle, điểm nó in
trước sẽ cấm điểm kia im cả cửa sổ). Chuyển sang bảng lock-free keyed
theo return address (__builtin_return_address) + format pointer, mỗi
call site giữ window riêng.

Kèm theo:
- color_enabled chuyển std::atomic<bool>, tránh data race khi control
  loop / sensor callback / planner thread cùng gọi log.
- is_color_supported() cache kết quả qua std::call_once, bỏ getenv() lặp
  lại mỗi dòng log trong control loop.
- NaN/âm trong throttle giờ là "không throttle" thay vì câm log vĩnh
  viễn.
- thêm test_console_throttle.cpp + đăng ký ConsoleThrottleTest qua
  add_test trong CMakeLists.txt (chạy khi BUILD_TESTS=ON).
2026-09-15 15:20:30 +07:00
2ea09b5ba9 docs: thêm hướng dẫn nhúng nav core vào host C++ thuần
Đưa doc/cpp_host_guide.md từ T800_ws pnkx_nav_core (branch
dev_recovery_and_manager_mission, commit 384e668). Tài liệu thuần, không
đụng code.
2026-09-15 15:18:57 +07:00
7d3d830acf feat(priest): thêm schema slew_reseed_gap, zeta_from_start_tangent, elite blend (B2)
Đưa 6 khoá mới từ cây dev sang, elite_blend_enabled giữ FALSE đúng theo
comment gốc cây dev ("BẬT trên cây sim để đo thực địa. Cây robot thật vẫn
tắt.") — chưa có số đo trên robot thật. zeta_from_start_tangent giữ false
(cây dev cũng đã thử và tắt). slew_reseed_gap KHÔNG có công tắc bật/tắt —
sửa một glitch có thật (robot nhích 0.07-0.33 m sau recovery/replan), lấy
cùng giá trị 0.3s với cây dev.

Mã đọc các khoá này đã có sẵn trong priest_local_planner submodule (pinned
ở f2839dc, cùng bản với origin/main) — chỉ thiếu khai báo trong config,
trước nay rơi default C++ âm thầm.
2026-09-15 15:17:18 +07:00
61ed48c465 chore: bump move_base2 submodule pointer
8bc4895..8d9932c: emergency()/clearEmergency() propagation lên BaseNavigation,
10 config key trước đây rơi default âm thầm, tune runtime sim params.
2026-09-15 15:13:57 +07:00
98e6109d24 feat: add the same 10 previously-missing config keys, same default values
Mirrors Test/move_base2 commit (T800_ws) — every new key uses the exact
C++ default, silencing the "missing param" boot warnings without changing
any runtime behaviour. Every existing tuned value (controller_frequency
30.0, planner_patience 2.0, recovery_behavior_enabled false, watchdog_period
0.0, ...) is untouched; parsed and diffed key-by-key against the dev tree
before committing.

Placed at this tree's own existing anchors, which have drifted slightly
from the dev copy's ordering (recovery_behavior_enabled sits before the
Watchdog block here, after it there) — content is identical, only the
insertion point differs to match what's actually around it.
2026-09-12 22:40:22 +07:00