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
- 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.
- 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.
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.
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.
- 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.
- 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.
- 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).
- 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
- 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).
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.
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.
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.
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.
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.
- 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.
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.
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).
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ì.
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ũ.
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).
Đư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.
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.
Applies cleanly from T800_ws commit 2b0993b: this repo's nav_c_api_2.h/.cpp/
GUIDE.md were byte-identical to the pre-fix baseline (verified before
applying), so this is the same patch, not a manual reconstruction.
- NavComponentStatus struct + navigation_get_component_status(): lazy
dlsym of the MoveBaseComponentStatus alias (see previous commit's two new
headers); returns 0 rows if the loaded .so doesn't export it, so an old
libmove_base2.so is not a crash, just no data.
- Doc: PREEMPTING is now a truthful "still winding down" state (see
move_base2 commit 8bc4895, already pulled) — a host must poll to
quiescence before resending, not resend on PREEMPTING as if it meant
"acknowledged".
Kept for a future C# host per user request — the C API is the intended
integration point for that.
Bumps 7 submodule pointers to the same fix already on T800_ws (branch
dev_recovery_and_manager_mission there, this repo is on new-1.0 — the two
branches share no common history, so this is a submodule pull + a manual
reapply of two new headers, not a merge or cherry-pick):
sbpl ca1ba36 -> bd89924 (SBPLPlanner abort flag)
sbpl_lattice_planner 9c1667e -> 7456e99 (Preemptable + shared search budget)
recovery_core c03d16f -> 254c7fc (onCancelRequested + ABI guard)
sbpl_recovery 8f9326b -> ea79686 (detour search on a worker thread)
action_core a6bc3df -> 669c3f7 (pause/resume + kCancelled + ABI guard)
dock_pattern_action 302dd11 -> cc1ea74 (pause/resume)
move_base2 7d00c5a -> 8bc4895 (the lifecycle contract itself)
pnkx_nav_core's own two new in-tree headers (robot_nav_core::Preemptable,
move_base_core::component_status_probe.h) are added here by hand, same
content as T800_ws commit 2b0993b — required for sbpl_lattice_planner and
move_base2 (now pulled above) to even compile; not a cherry-pick since
new-1.0 and dev_recovery_and_manager_mission have no common ancestor.
config/runtime/move_base_common_params.yaml: added the new keys only, every
existing value (planner_patience 2.0, max_planning_retries 0, twist
semantics, recovery_behavior_enabled false, ...) is untouched.
settle_timeout: 2.0 and the two stopped_measured_*_eps keys are on, same as
the dev tree — this is the correctness fix itself (cancel/pause now wait
for real quiescence instead of reporting done while a component is still
unwinding), and it changes report timing only, not any commanded velocity.
The watchdog block is added but left OFF (watchdog_period: 0.0, dev tree
has 0.1) — allocated_time: 10.0 in this tree's own sbpl_global_params.yaml
means a legitimate long search could trip a naive planner_timeout as a
false "hung"; leaving a brand-new diagnostic capability off until it's
calibrated against real search/recovery/action timing on this robot matches
the policy for new features in this config tree.
Not brought over (flagged for a separate decision, see chat):
nav_c_api_2.h/.cpp changes from T800_ws commit 2b0993b — this repo has no
config/move_base_common_params.yaml at the top level (only config/runtime/),
so it may not run the standalone c_api tree at all; and the two branches'
disjoint history makes a blind reapply of an EXISTING file's diff riskier
than the two brand-new headers above. Needs a decision, not a mechanical
pull.
Not pushed to origin/new-1.0 — local commit only, pending confirmation.
Sửa tay theo commit 37e44eb (T800_ws pnkx_nav_core, branch
dev_recovery_and_manager_mission) thay vì cherry-pick, theo yêu cầu.
- two_points_planner.cpp: nhánh suy biến (start == goal, ca quay tại chỗ)
đọc theta chưa khởi tạo trước khi dùng trong cos()/sin(). Khởi tạo bằng
yaw hiện tại của start.
- tf_help.cpp: canTransform() nhận std::string *error_msg chưa khởi tạo —
tf3 ghi qua con trỏ đó khi transform thất bại, tức ghi vào vùng nhớ bất
kỳ. Đổi sang std::string thật + log tên hai frame khi thất bại.
- tf_help.cpp: transformPose() gọi transform() rồi return true vô điều
kiện ở cả nhánh chính lẫn nhánh ExtrapolationException — lookup hỏng để
lại out_pose mặc định (yaw 0) mà vẫn báo thành công. Trả thẳng kết quả
của transform().
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Đưa schema/comment cho tính năng quay tại chỗ từ T800_ws sang cây config
robot thật, KHÔNG đụng giá trị đã tune (controller_frequency 30Hz,
recovery_behavior_enabled=false, debug_level=0 giữ nguyên):
- hybrid_local_planner_params.yaml: thêm block HybridRotateLocalPlanner.
control_period tính lại theo controller_frequency thật của rb_ws
(30 Hz -> 0.033333333 s), KHÔNG chép nguyên 0.05 của cây dev (20 Hz).
- move_base_common_params.yaml: rotate.local_planner đổi
HybridDockingLocalPlanner -> HybridRotateLocalPlanner (kích hoạt theo
yêu cầu — planner mới, xác nhận cần chạy thử trên robot thật).
- compound_actions_params.yaml: thêm doc turn_param, kích hoạt compound
action ROTATE (giữ quy ước ALL-CAPS sẵn có trong file, không đổi theo
cây dev vì CHARGE/PICKUP/UNDOCK/GOSTRAIGHT cố ý CHƯA đổi tên — xem
ghi chú riêng, cần xác nhận contract fleet trước khi đổi).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Đưa relative_yaw trong resolveDeferredGoal + đổi binding rotate sang
HybridRotateLocalPlanner từ T800_ws (180c0e1..7d00c5a).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Đưa tính năng HybridRotateLocalPlanner (quay tại chỗ) từ T800_ws sang:
- mission_adapters ab0bed7: đọc angle_deg từ actionParameters, quy sang relative_yaw
- hybrid_local_planner d5a4bf0: thêm HybridRotateLocalPlanner core + adapter
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Đưa common_msgs từ b68545e lên b3e0857. Hai commit đó bỏ khối
ros::message_traits / ros::serialization / ros::message_operations khỏi
Accel.h và Imu.h, rồi vá lại Imu.h cho tự đứng được: bỏ operator<< còn gọi
Printer đã xoá, include thẳng <boost/array.hpp> cho các trường covariance.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
move_base2 2a8e416..180c0e1
- feat(sensor_gateway): đẩy static map sang PreferredLayer và UnpreferredLayer
- config: cây sim dùng lại f_scan + b_scan, tắt logger, viết lại doc route recovery
(chỉ đổi comment/schema đồng bộ với dev tree — không đụng
rb_ws/pnkx_nav_core/config/runtime, cây giá trị đã tune hiện trường)
common_msgs a07145a..b68545e
- refactor: drop the ROS message traits and serializers from Accel and Imu
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lượt đồng bộ 09d9ea9 hôm nay kéo costmap_2d lên a5be6f9 ("body_clearance — một
nguồn hình học thân duy nhất cho cả stack") vì lúc đó đó là đỉnh origin/main.
Nhưng cây T800 KHÔNG chạy commit đó: local `main` bên T800 đang dừng ở a63c084
do commit body_clearance làm robot chạy tệ. Trỏ cây phát hành vào một commit mà
cây phát triển đã bỏ là đưa lên robot đúng thứ vừa bị loại.
Không gói nào ở đây phụ thuộc a5be6f9: priest_local_planner đang ở f2839dc, bản
này KHÔNG dùng body_clearance (đã kiểm bằng grep trên cây commit) và cây file
của nó TRÙNG KHỚP bit-đối-bit với priest đang chạy ở T800.
a63c084 là tổ tiên của a5be6f9 nên đây là lùi thẳng, không rẽ nhánh. Khi nào
body_clearance được sửa và T800 nhận lại thì kéo tiếp bằng pull --ff-only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013rayqed51UoUzE7QDRmM9K
Trước commit này robot chạy default C++ trong im lặng cho 27 tham số mà
`priest_config.cpp` có đọc — đúng kiểu hỏng "máy tôi chạy được mà robot thì
không". Khai tường minh cả 27 để nhìn thấy và chỉnh được.
GIÁ TRỊ ĐẶT = ĐÚNG DEFAULT C++, nên hành vi robot KHÔNG đổi so với trước. Mỗi
khoá ghi kèm `(dev: X)` là giá trị cây sim đang chạy, để bật từng nhóm rồi chạy
thử chứ không chép cả loạt. Với nhóm này 0 nghĩa là TẮT / giữ hành vi cũ.
Các nhóm: trần êm ái (accel/decel_comfort, jerk_limit, angular_jerk_limit,
max_angular_accel, decel_emergency); feed-forward omega (filter_tau,
curvature_floor/margin/window); xoay tại chỗ (in_place_yawrate_max); về đích
(goal_brake_decel, goal_regression_margin/watch_dist, xy_latch_release_speed);
khai bất khả thi (infeasible_residual/streak/cooldown); co giãn cửa sổ dự báo
(clear_residual, clear_streak_cycles, lateral_std_clear_scale,
horizon_hysteresis_buckets, horizon_restore_delay_cycles); trượt điểm cuối
(terminal_slide_max_dist); head slowdown (release_cost, scale_slew); và
debug_plan trong khối Debug.
Xoá `collision_check_enabled` và `collision_check_time`: cổng va chạm sau solve
đã bị gỡ khỏi priest (thay bằng khai bất khả thi, và verdict kContact của
EnvMonitor bên move_base2) nên không dòng mã nào còn đọc chúng. Bốn khoá
`collision_check_*_offset` / `_cost_threshold` VẪN SỐNG — chúng khai hình chữ
nhật thân robot cho các phép dò còn lại — nên giữ nguyên.
Kiểm bằng parse: tập khoá PriestLocalPlanner của rb_ws giờ TRÙNG KHỚP cây dev
(thiếu 0, thừa 0); không một giá trị đang có nào bị đổi.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013rayqed51UoUzE7QDRmM9K
Submodule (fast-forward, không đổi nhánh):
move_base2 c626c4d -> 2a8e416 EnvMonitor thay PathMonitor; trigger
collision riêng; ngân sách recovery
theo dịch chuyển; bỏ hai công tắc
mission_layer_enabled và
docking_requires_marker
sbpl_recovery d1fd723 -> 8f9326b bỏ mô hình detour, lập lại cả đường
sbpl_lattice_planner 6fbc29f -> 9c1667e log eps/cost thật + mprim R=1.06 m
priest_local_planner 86be89f -> f2839dc đồng bộ nhánh dev
costmap_2d a63c084 -> a5be6f9 body_clearance
Config — CHỈ đổi schema, không đổi một giá trị nào đang có:
bỏ move_base_common_params.yaml: mission_layer_enabled, docking_requires_marker
(hai khoá vừa bị xoá khỏi move_base2), và cả khối path_monitor (PathMonitor
đã bị gỡ khỏi mã, EnvMonitor thay chỗ — khối này không còn ai đọc; nó vốn
cũng đang enabled: false nên hành vi không đổi).
bỏ recovery_behaviors_params.yaml: planning_distance / sample_step /
rejoin_clearance / max_rejoin_distance — bốn khoá của mô hình detour cũ,
plugin không đọc từ 2/9.
thêm move_base_common_params.yaml: recovery_reset_min_travel: 0.10
thêm recovery_behaviors_params.yaml: routes.collision (trigger va chạm giờ có
route riêng; rỗng là guard không được vũ trang) và detour_path.lock_costmap
(bằng đúng mặc định C++, khai tường minh).
thêm env_monitor_params.yaml — cây config của EnvMonitor. Khác cây dev đúng một
chỗ: logger.enabled false (ghi JSONL mỗi tick là công cụ replay/ML, không
chạy thường trực ngoài hiện trường).
CHƯA đồng bộ, cố ý: 27 khoá mới của PriestLocalPlanner, các instance action
(dev có reporter/sim_noop/waiter, đây có detect_pallet) và observation_sources
(dev dùng point cloud, đây dùng f_scan) — đó là hiệu chỉnh hiện trường và cấu
hình phần cứng, không phải schema.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013rayqed51UoUzE7QDRmM9K
It was the one submodule of twenty-nine still pinned to a development branch,
af66991 on dev_cam_intel, left there while main was six weeks stale and held a
different clearing design.
main now carries that same work as a63c084, and the two commits share a tree
hash - 144a9bb - so this moves the pointer without changing a byte of source.
The release tree tracks release branches again.
The add, get and remove sensor functions spelled their first argument five
different ways - map_name, laser_scan_name, point_cloud_name,
point_cloud2_name, odometry_name - each reading like a free-form label. It is
not one. It is the key that has to match the topic a costmap layer names in
observation_sources and the entry in sensor_store_params.yaml, and a key that
matches nothing is accepted in silence: an empty costmap with no error
anywhere. The parameter is now called topic everywhere, and addStaticMap
carries the note about what silence costs.
addDepthCameraData keeps its ConstPtr and gains the reasoning, because the
asymmetry invites being tidied up. Every other sensor is reduced by the host
first - a scan is 5.5 KB, a depth cloud is voxel-filtered from 3.26 MB to 24 KB
- and copying all of them measures about 25 microseconds per second of runtime.
A depth image arrives whole at 398 KB because the voxel layer needs the full
frame for its clearing frustum, which costs roughly 250 times the other four
together. That is what earns a pointer, and the price is a contract nothing
enforces: the caller must not touch the data afterwards.
Parameter names and documentation only. No signature, no behaviour, no ABI;
this header now matches the one in the development tree byte for byte.
move_base2 advances five commits, three of which matter here: the sensor key
argument renamed to topic, the dead terminal_direction key dropped from the
docking allow-list, and the diagnostic logs put behind switches.
Only the switches need a config key, and they are added rather than tuned. All
three default to true, which is exactly what this tree does today: every
[move_base2][debug] line printed unconditionally, so nothing about the running
robot changes until somebody deliberately turns a group off.
The abort-detail line is not among them and cannot be silenced. Values tuned on
the robot are untouched; this commit only adds keys.