9 Commits

Author SHA1 Message Date
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
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
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
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
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
256d280b71 pnkx_nav_core 1.0 — every package with a remote is a submodule, and the root CMake builds them all
A single commit on an orphan branch: the whole tree as it should land on a
robot, with no history from the branch it grew out of.

The rule applied: a package that has its own remote becomes a submodule; a
package that only ever lived inside this repository stays as ordinary files.
That comes to 29 submodules, 18 registered here for the first time. They were
sitting in the tree as plain clones, which looks right locally and is empty on
the robot - a clone of this repository would have carried the directory names
and none of the contents.

.gitignore is fixed at the source rather than patched per path. The rule
**/[Pp]ackages/* comes from the Visual Studio template and targets NuGet's
generated packages/ folder; here Packages/ is a SOURCE directory, so it hid
whole packages from git status - and a missing package then becomes invisible
to exactly the command you would use to look for one. It cost move_base2,
dock_pattern_action and sbpl_recovery, and sbpl_recovery surfaced only by
walking the tree for .git directories and diffing against .gitmodules. The
exception now re-includes src/*/Packages/** wholesale, placed immediately after
the NuGet rule so the build-artifact rules further down still win. Listing
paths one by one is what let one slip in the first place.

The root CMakeLists.txt described a tree that no longer exists. Its second half
was a migration shim that looked for a sibling Test/ directory from AMR_T800
and added packages out of it; PNKX_NAV_CORE_BUILD_TEST_PACKAGES defaults to ON,
so with the migration finished it would have hit FATAL_ERROR at configure time.
That is gone, and every package is added in dependency order at its real
in-tree path.

Three guard names are traps worth naming, because a guard that never matches
adds the subdirectory twice on a re-entrant configure:
  - src/Libraries/angles is project robot_angles_prv, and a DIFFERENT package
    called angles lives at src/Algorithms/Libraries/angles. Both are in the
    tree; guarding on `angles` would silently skip the first.
  - dock_pattern_action's library target is dock_pattern_action_handler.
  - move_base2's is move_base2_core.

sbpl_recovery and dock_pattern_action had no standalone branch - catkin was
required at top level, so a build without it died at configure time pointing at
packages that are present. Both now detect the mode and name their CMake
targets directly in standalone, and both drop their plugin at the top of the
build tree, because boost::dll loads by filename and PluginLoaderHelper
resolves that against the build directory: left in a subdirectory a plugin
builds and is then invisible at runtime.

grid_map_core and image_geometry were added because hybrid_local_planner and
depth_image_proc link robot_grid_map_core and robot_image_geometry, and neither
was in the tree - found by scanning every CMakeLists for internal library names
and diffing against the targets the tree defines, then confirmed by the build.

Every submodule points at the tip of the branch it was already pinned to, not
blindly at main. costmap_2d stays on dev_cam_intel; that branch exists for a
reason, and this tree carries field calibration that does not belong on main.

config/ is flattened into config/runtime/, matching the layout the nav core
reads. The .zip snapshots of old package states are gone - manual backups, not
build inputs.

Verified: cmake configure returns 0 and a full standalone build returns 0,
producing 48 shared libraries with nothing gated off.
2026-08-27 10:54:54 +07:00