Commit Graph

7 Commits

Author SHA1 Message Date
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
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
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
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